Jump to content

Dolby Mobile update.zip


Recommended Posts

Guest nameless'
Posted

Hello guys,

I'd like to make an update.zip to include Dolby Mobile improvements on every rom.

I think I have isolated all related files for Dolby Mobile (Well, actually, I think there are some unnecessary files, but well, we'll see that later...)

The fact is that I don't have time to flash a new rom for testing it (I'm still running streamounay with the latest leaked bin, so Dolby is already included).

So, if some people are interested in testing it, tell me and I'll upload it, otherwise I'll test it when I will have some free time, and then post the package update if I go successfull.

WARNING :

- This has been totally untested, I don't know if it could harm your liquid.

- I didn't wrote the script update (no time to do it, and not sure how to do it yet, didn't searched).

Honestly, I'm not really sure I have ALL files needed, but maybe it works, who knows...

So if I post my zip, it's just a standard (non-signed) zip, you'll have to write the update script to test it, and off course I'm not responsible of anything that could happen.

The zip size is 3.58 MB

As you want guys :angry:

Guest vache
Posted

Dolby is not just "somes files".

Many fonction are in Settings.apk, framework.jar, services.jar & android.policy.jar, audio libraries.

But share your update, i'm curious to see if it can work :angry:

Guest nameless'
Posted

Yeah, that's what I thought about *.jar related files, but didn't had the time to explore them to see the differences yet...

Here is it : http://www.megaupload.com/?d=5PN5PFJ0

@all : Do not flash this zip like this, it WON'T work ! (no update script written)

Guest xian1243
Posted (edited)

I'd like to test it, and I could try and do some work too. :angry: Your download link is bad BTW. You need to baksmali the .jar files, and compare differences... there a a few in the framework.jar... and a ton in services.jar. Good luck

Edited by xian1243
Guest nameless'
Posted

?? The link is working for me ?

If you confirm it's not working, I'll upload it elsewhere

Guest HustlinDaily
Posted

The file you are trying to access is temporarily unavailable.

Guest xaueious
Posted

I'm not one to test this, but I am interested in seeing this work.

Guest matthewye
Posted
I'm not one to test this, but I am interested in seeing this work.

You selfish bastard.

Guest xian1243
Posted

Ok guys, I'm going to try to get this working. No guarantees.

Any ideas before I cut up the code like a butcher?

Guest Rajit
Posted
Ok guys, I'm going to try to get this working. No guarantees.

Any ideas before I cut up the code like a butcher?

Xian I wish you the best of luck... if you can pull this off, the forum would literally start worshipping you.. plus all of us can then boast of having the best sound quality in the android world!!!

Also I think some files in system / etc like audiofilter.csv might be worth checking out.....

Guest Rajit
Posted (edited)
It's not used. :angry:

Just like nexus one. :-)

But I wasn't aware of it...

Edited by Rajit
Guest nameless'
Posted

Well, after investigating a few more time, I think it's far from working (I knew that, otherwise it would be too easy, and should had already done...), but I was hopping it would be easier than what I thought...

I have decompiled some jar to see the diffs between a standard rom and Acer Stream rom, and I didn't get something that could be really usefull, apart the fact that I found 2 class in services.jar that are related to Dolby stuff : HdmiObserver$1 and HdmiObserver

Otherwise, I didn't found any usefull stuff (But I didn't decompiled all jar, just services.jar and core.jar), I think it's possible to get Dolby mode working on every rom, but it will take a lot of time to have it working, and I don't have enough time to do it.... (Decompiling, finding the diff, implementing the stuff in standard rom, testing,...)

For the one interested, here are the jar that have changed between Liquid and Stream Rom :

- framework.jar

- core.jar

- services.jar

- framework-res.apk

- spp_test.jar

- input.jar

- android.policy.jar

Sorry guys, hope someone will be able to do it...

Guest xaueious
Posted (edited)

vache I thought you and malez are trying to get this to work...

I don't understand bytecode and I'm not a programmer but... from a quick look, for sure related files include:

Settings.apk

framework.jar

libandroid_runtime.so

libmedia.so

libaudioflinger.so

From settings.apk, it sets com/android/settings/AcerDobly and calls a function: Set_DolbyMobile_On in android/media/AudioManager

I don't see the function in stock AOSP: http://developer.android.com/reference/and...dioManager.html

Activity is AcerDolby.smali

Reference AOSP

[platform/frameworks/base.git] / media / java / android / media /

http://android.git.kernel.org/?p=platform/...f101d;hb=eclair

AudioManager is in framework.jar

There's a function in AudioManager called Set_DolbyMobile_On, then it points to AudioService. Next AudioService calls AudioSystem

But all that's in AudioSystem for that function is:

.method public static native Set_DolbyMobile_On(Z)I

.end method

At this point I have no idea what that means :angry:

It calls native code, so maybe that's already .so time

Anyways from this point on we know we need the Dolby activity from Settings.apk, the calls to AudioManager and AudioSystem in framework.jar, and a .so file or two that has the native code for the dolby stuff.

Corresponding file here in AOSP:

http://android.git.kernel.org/?p=platform/...2cb4b;hb=eclair

There are native functions being called that are not in AOSP, such as "Set_Bass_Depth" and "Set_DolbyMobile_On", Set_EQ_Mode

For Set_Bass_Depth AND Set_DolbyMobile_On, there are references in libandroid_runtime.so, libmedia.so, libaudioflinger.so

If we can port the dolby activity into a separate app that would make things easier? I don't know...

Anyways this also might mean that whatever work we do to port this to Eclair will guarantee that it wont make it to Froyo, until there's a Stream leak for Froyo and someone figures out how to decompile those things.

Settings.apk requires so much stuff in Stream framework that it will break for sure. For framework.jar, we might only need the required smali files.

If we can separate the HDMI stuff out we have less to worry about

Edited by xaueious

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.