Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[PORTING GUIDE] Dolby Digital Plus for Kitkat

OP ocoot

22nd December 2014, 02:49 PM   |  #1  
ocoot's Avatar
OP Senior Member
Flag Semarang, Central Java
Thanks Meter: 680
 
602 posts
Join Date:Joined: Apr 2012
More






Requirements :
1. Knowledge about decompile/compile *.jar files
2. Deodex


How-to:
1. Download dolby framework HERE then extract it

2. Decompile your framework.jar

3. Copy dolby folder from extraced file above (step 1) to your decompiled framework.jar *smali/android/pastehere
nb: if you have already installed dolby-framework inside your framework.jar, please delete it first before paste from my dolby-framework

4. Compile your framework.jar

5. Move to services.jar, we need to disable signature on this step (this is maybe make it stuck on dolby logo when opening the dolby app)
nb: if you already patch your services.jar, skip step 5-9

6. Decompile your services.jar and look for /com/android/server/pm/PackageManagerService.smali

7. Find this method:

Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
-
-
-
-
.end method
8. Replace with

Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .locals 7

    const/4 v0, 0x0

    return v0
.end method
9. Save your services.jar and recompile your services.jar

10. Download dolby_flashable.zip HERE

11. Open dolby_flashable.zip with WinRAR or anything. now, drag and drop services.jar+framework.jar modded to dolby_flashable/system/framework/pastehere

12. Goto your custom recovery

13. Wipe cache and dalvik-cache

14. Flash dolby_flashable.zip

15. Done


NB:
1. Another mirror/s is not allowed!
2. If you have another audio tweaks installed like viper/dsp/etc, please uninstall first (it may cause conflict/FC)
3. If you have any issues about compiling *.jar files, try this one -> Baksmali manager i am use it for compile/decompile *.jar files
nb: i'm forget who share that tool, so i just can say thankyou!
4. Free space /system () 10MB
5. May will be work on all device running on KITKAT, so let me know it works or not
6. Backup first before doing anything to prevent bootloop
7. If you find any bugs/issues happened, please tell me


Thanks to:
Google
Dolby Mobile Audio
PopKat ROM Devs from Cherry Mobile Philippines
Nouvrizal Malta for share PopKat ROM
Ghifari for tester
Ifal for tester
Riyono for guide port Dolby to JB
one_love_420 for guide how to disable signature
Last edited by ocoot; 23rd December 2014 at 06:30 PM. Reason: rewrite guide to make it easy to understand
The Following 10 Users Say Thank You to ocoot For This Useful Post: [ View ]
22nd December 2014, 05:37 PM   |  #2  
ocoot's Avatar
OP Senior Member
Flag Semarang, Central Java
Thanks Meter: 680
 
602 posts
Join Date:Joined: Apr 2012
More
Q&A
Q: I've stuck/FC when opening dolby. how to solve?
A: uninstall another soundmod/sound tweaks or follow @aki_007 http://forum.xda-developers.com/show...6&postcount=15

Q: Still stuck on dolby logo when opening app, how?
A: Try to disable signature using Lucky Patcher


Confirmed working on:

1. Mediatek devices
2. Xperia Z1s T-Mobile KitKat 4.4.4
Last edited by ocoot; 6th January 2015 at 12:05 PM.
The Following 2 Users Say Thank You to ocoot For This Useful Post: [ View ]
23rd December 2014, 10:34 AM   |  #3  
Senior Member
Flag lucknow
Thanks Meter: 121
 
261 posts
Join Date:Joined: Jan 2014
More
Quote:
Originally Posted by ocoot

Confirmed working on:

1. Mediatek devices .

Stuck at dolby logo when opening apk on Gionee M2 /MT6582/KK 4.4.2 AOSP based
23rd December 2014, 11:12 AM   |  #4  
eyesfortech's Avatar
Member
Thanks Meter: 24
 
63 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Unhappy
Thanks mate! I am trying now to port this on my Mediatek device. I will let you know if there will be any issues.

---------- Post added at 06:12 PM ---------- Previous post was at 05:39 PM ----------

Quote:
Originally Posted by ocoot

How-To:
1. Decompile your framework.jar
2 Download the DolbyDigital-KK.rar and extract. You'll find 2 folders inside, copy the dolby folder (inside folder framework.jar from downloaded file) to your decompiling file
3. And then recompile your framework.jar
4. Copy your framework.jar after finished compiling to flashable folder/system/framework
5. Repack flashable folder to the ZIP
6. Go to your custom recovery
7. Wipe cache and dalvik-cache
8. Flash the file
9. Done

Hi Mate,

I've tried 2 ways since it was not clear in your steps where the framework.jar/android/dolby will go, is it:

1. inside the main framework.jar
or
2. inside framework.jar/smali - since there's an android folder there.

OUTPUT:
1. When I tried to recompile the first one, there's no error but the Dolby app is not opening - FC
2. When I tried to recompile the second, I got an error from the APKtool (tried 2 different APKtools)
Code:
Projects\framework.jar\smali\android\dolby\DsClient$1.smali[207,15] mismatched input '"className"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/dolby/DsClient$1.smali
	at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
	at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
	at brut.androlib.Androlib.buildSources(Androlib.java:299)
	at brut.androlib.Androlib.build(Androlib.java:285)
	at brut.androlib.Androlib.build(Androlib.java:258)
	at brut.apktool.Main.cmdBuild(Main.java:236)
	at brut.apktool.Main.main(Main.java:88)
Hope you can clear this up. Thanks'
23rd December 2014, 05:03 PM   |  #5  
ocoot's Avatar
OP Senior Member
Flag Semarang, Central Java
Thanks Meter: 680
 
602 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by aki_007

Stuck at dolby logo when opening apk on Gionee M2 /MT6582/KK 4.4.2 AOSP based

try again bro, i've already update my guide for make it easy to understanding so, goodluck.

Quote:
Originally Posted by eyesfortech

Thanks mate! I am trying now to port this on my Mediatek device. I will let you know if there will be any issues.

---------- Post added at 06:12 PM ---------- Previous post was at 05:39 PM ----------



Hi Mate,

I've tried 2 ways since it was not clear in your steps where the framework.jar/android/dolby will go, is it:

1. inside the main framework.jar
or
2. inside framework.jar/smali - since there's an android folder there.

OUTPUT:
1. When I tried to recompile the first one, there's no error but the Dolby app is not opening - FC
2. When I tried to recompile the second, I got an error from the APKtool (tried 2 different APKtools)

Code:
Projects\framework.jar\smali\android\dolby\DsClient$1.smali[207,15] mismatched input '"className"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/dolby/DsClient$1.smali
	at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
	at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
	at brut.androlib.Androlib.buildSources(Androlib.java:299)
	at brut.androlib.Androlib.build(Androlib.java:285)
	at brut.androlib.Androlib.build(Androlib.java:258)
	at brut.apktool.Main.cmdBuild(Main.java:236)
	at brut.apktool.Main.main(Main.java:88)
Hope you can clear this up. Thanks'

try this tool bro -> http://www.mediafire.com/download/32...li_manager.rar
i didn't have any issues about compiling jar files when use that tool and also check again my guide, i'm already update my post

thanks
23rd December 2014, 05:20 PM   |  #6  
Senior Member
Flag lucknow
Thanks Meter: 121
 
261 posts
Join Date:Joined: Jan 2014
More
Quote:
Originally Posted by ocoot

..

Can you please mod it for me as I have tried so much but failed to make it work correctly (Including Riyono's guide ) , I am uploading my framework and services .
thanks for your support.
Attached Files
File Type: jar framework.jar - [Click for QR Code] (3.76 MB, 32 views)
File Type: jar services.jar - [Click for QR Code] (1.80 MB, 16 views)
Last edited by aki_007; 23rd December 2014 at 05:39 PM.
23rd December 2014, 05:32 PM   |  #7  
ocoot's Avatar
OP Senior Member
Flag Semarang, Central Java
Thanks Meter: 680
 
602 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by aki_007

have you uploaded different smali files and the flashable zip from the previous one .
Can I use lucky patcher to disable signature

it's a same files, i'm just make it to be 2 file to make it easy understanding. i didn't know, i never try lucky patcher. why you not try my guide? hehehe
23rd December 2014, 05:40 PM   |  #8  
Senior Member
Flag lucknow
Thanks Meter: 121
 
261 posts
Join Date:Joined: Jan 2014
More
Quote:
Originally Posted by ocoot

it's a same files, i'm just make it to be 2 file to make it easy understanding. i didn't know, i never try lucky patcher. why you not try my guide? hehehe

Please read my previous comment
23rd December 2014, 06:25 PM   |  #9  
ocoot's Avatar
OP Senior Member
Flag Semarang, Central Java
Thanks Meter: 680
 
602 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by aki_007

Please read my previous comment

try this one https://www.dropbox.com/s/jerhpq1v1y...hable.zip?dl=0
The Following User Says Thank You to ocoot For This Useful Post: [ View ]
23rd December 2014, 06:42 PM   |  #10  
eyesfortech's Avatar
Member
Thanks Meter: 24
 
63 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Thanks mate.. will give a shot your baksmali manager.. hope it ends my misery

Post Reply Subscribe to Thread

Tags
dolby, dolby kitkat
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes