Hướng dẫn port Dolby Digital Plus cho đầu android Kitkat 4.x



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

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:

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

.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

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:
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

Nguồn bài viết: https://forum.xda-developers.com/android/software/porting-guide-dolby-digital-plus-kitkat-t2980724