• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Mod][Port] Dolby Digital Plus For Android Jelly Bean

Search This thread

riyono

Senior Member
Hi All, Yeah ... This Is My Second Thread On XDA-Developers Forum :D
Now I Will Share Guide How To Port Dolby Dolby Digital Plus For Universal Devices :good:

Requirement :
JB 4.1.2 / 4.2.2, 4.3 Not Tested
Not For KitKat 4.4.+
Custom Recovery Installed : CWM/TWRP
Not Installed Other Sound Enhancement, Crash :cool:
Notepad++
Deodexed Rom
Tool For De/Recompiling Jar (Recomended Apktool Modded : http://goo.gl/f5DnCp)
Free Space /system (±) 50MB

Download :
Dolby Mobile : http://d-h.st/xK5 Mirror : http://goo.gl/XwruZs
Smali Framework : http://d-h.st/IUb Mirror : http://goo.gl/UWizMb

Screenshot_2014-06-29-21-11-26.png
Screenshot_2014-06-29-21-11-41.png


Screenshot_2014-06-29-21-12-07.png


Screenshot_2014-06-29-21-12-13.png

Step 1 :
Download Smali Framework (Framework_Dolby.zip) , Then Extract
Decompile framework.jar
Add Smali Files On framework From Extracted Framework_Dolby.zip
Look Like This : \smali\android\dolby
See ScreenShot 1 - See ScreenShot 2
Recompile framework.jar

Step 2 (Skip This Step If services.jar Has Been Disabled Signature) :
# Disable Signature From services.jar #
Decompile services.jar
Open smali\com\android\server\pm\PackageManagerService.smali With Notepad++
Find This Method :
Code:
.method static compareSignatures
Delete That Line Until Its End Method :
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
-
-
-
- Delete Until Its End Method
-
-
-
.end method
And Replace With :
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .registers 9

    const/4 v0, 0x0

    return v0
.end method
Save
Recompile services.jar

# Disable Signature Using Lucky Patcher #
How To Disable Signature Check Using Lucky Patcher
Download Lucky Patcher And Install
Open Lucky Patcher
Tap Toolbox - Patch To Android - Disassemble Signature Manager
Apply And Automatic Reboot

Step 3 :
Open Dolby_Mobile.zip With WinRAR/7zip
Drag framework.jar & services.jar Modded To Dolby_Mobile/system/framework

Try Flash The Dolby_Mobile.zip Using CWM/TWRP

Note :
Delete system/vendor/etc/audio_effects.conf If There
Please Backup Your Current Rom First
Force Close : framework.jar Problem
Stuck : Disable Signature Problem

Please Don't Mirror this Link :fingers-crossed:
If You Like, Please Click Thanks Button :good:
Sorry For My Bad English


Video Tutorial By @Jay_Kapoor24


Credit & Thanks To :
Allah SWT
Dolby Mobile
HTC Sensation Forum
Smartfren Andromax C Indonesia
Smartfren Andromax U Indonesia
Smartfren Andromax U2 Indonesia
Max Droiders Team Dev
MAAaD
Riyono
@DavidMKD For Superuser Mod
And Many More, I Can't Remember , Please PM Me If Any Of You That I've Missed :highfive:
 
Last edited:

wertzPH

Senior Member
May 27, 2012
166
28
thanks for the mod. it works great on jb 4.2.2... just some quick questions, manual equalizer settings doesn't seems to stay on higher levels. im using this for music. when i set equalizer to have deeper bass or higher treble it doesn't stay on top, it drops to middle setting. is it suppose to do that? ive tried to set it on different music profiles(rich,focus, open and both custom).

thanks
 

riyono

Senior Member
thanks for the mod. it works great on jb 4.2.2... just some quick questions, manual equalizer settings doesn't seems to stay on higher levels. im using this for music. when i set equalizer to have deeper bass or higher treble it doesn't stay on top, it drops to middle setting. is it suppose to do that? ive tried to set it on different music profiles(rich,focus, open and both custom).

thanks

try Custom profiles or play music with headphones
 

eagledipesh

Senior Member
Jan 8, 2011
720
165
Project Treble
firstly thanks for the tutorials.

I am facing some issues here, i am trying to port this mod to CM 11 4.4.4 and when i try to recompile the framework.jar i get this error.
Please check the attached log file.
 

Attachments

  • 2014-07-13-10-19-58.txt
    35.4 KB · Views: 191

riyono

Senior Member
tried on my tab 2 running slimkat and it wouldn boot. got to boot animation but it kept repeating, had to dirty flash rom. aww well

try disable signature using Lucky Patcher

firstly thanks for the tutorials.

I am facing some issues here, i am trying to port this mod to CM 11 4.4.4 and when i try to recompile the framework.jar i get this error.
Please check the attached log file.

try decompile .jar file using Apktool
 

kingdj

Senior Member
Mar 18, 2013
398
220
sweet city,pangkalanbun
try disable signature using Lucky Patcher



try decompile .jar file using Apktool

already finish whole process without error.flashing, booting no fc then i open dolby app bingooo its fc,stuck whats else make error????

im running cusrom imperium v27 jb 4,3 on samsung s3 gt i9300

any idea would be much better

i can choose sound dolby option on my sound setting

here are yhe log cat from my device hope you can figure out whats the problem.

thank you mate good job:good:
 

Attachments

  • Log_2014-07-15_04-10-48.txt
    4.9 KB · Views: 69

riyono

Senior Member
already finish whole process without error.flashing, booting no fc then i open dolby app bingooo its fc,stuck whats else make error????

im running cusrom imperium v27 jb 4,3 on samsung s3 gt i9300

any idea would be much better

i can choose sound dolby option on my sound setting

here are yhe log cat from my device hope you can figure out whats the problem.

thank you mate good job:good:

you using other sound enhancement?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    Hi All, Yeah ... This Is My Second Thread On XDA-Developers Forum :D
    Now I Will Share Guide How To Port Dolby Dolby Digital Plus For Universal Devices :good:

    Requirement :
    JB 4.1.2 / 4.2.2, 4.3 Not Tested
    Not For KitKat 4.4.+
    Custom Recovery Installed : CWM/TWRP
    Not Installed Other Sound Enhancement, Crash :cool:
    Notepad++
    Deodexed Rom
    Tool For De/Recompiling Jar (Recomended Apktool Modded : http://goo.gl/f5DnCp)
    Free Space /system (±) 50MB

    Download :
    Dolby Mobile : http://d-h.st/xK5 Mirror : http://goo.gl/XwruZs
    Smali Framework : http://d-h.st/IUb Mirror : http://goo.gl/UWizMb

    Screenshot_2014-06-29-21-11-26.png
    Screenshot_2014-06-29-21-11-41.png


    Screenshot_2014-06-29-21-12-07.png


    Screenshot_2014-06-29-21-12-13.png

    Step 1 :
    Download Smali Framework (Framework_Dolby.zip) , Then Extract
    Decompile framework.jar
    Add Smali Files On framework From Extracted Framework_Dolby.zip
    Look Like This : \smali\android\dolby
    See ScreenShot 1 - See ScreenShot 2
    Recompile framework.jar

    Step 2 (Skip This Step If services.jar Has Been Disabled Signature) :
    # Disable Signature From services.jar #
    Decompile services.jar
    Open smali\com\android\server\pm\PackageManagerService.smali With Notepad++
    Find This Method :
    Code:
    .method static compareSignatures
    Delete That Line Until Its End Method :
    Code:
    .method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    -
    -
    -
    - Delete Until Its End Method
    -
    -
    -
    .end method
    And Replace With :
    Code:
    .method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
        .registers 9
    
        const/4 v0, 0x0
    
        return v0
    .end method
    Save
    Recompile services.jar

    # Disable Signature Using Lucky Patcher #
    How To Disable Signature Check Using Lucky Patcher
    Download Lucky Patcher And Install
    Open Lucky Patcher
    Tap Toolbox - Patch To Android - Disassemble Signature Manager
    Apply And Automatic Reboot

    Step 3 :
    Open Dolby_Mobile.zip With WinRAR/7zip
    Drag framework.jar & services.jar Modded To Dolby_Mobile/system/framework

    Try Flash The Dolby_Mobile.zip Using CWM/TWRP

    Note :
    Delete system/vendor/etc/audio_effects.conf If There
    Please Backup Your Current Rom First
    Force Close : framework.jar Problem
    Stuck : Disable Signature Problem

    Please Don't Mirror this Link :fingers-crossed:
    If You Like, Please Click Thanks Button :good:
    Sorry For My Bad English


    Video Tutorial By @Jay_Kapoor24


    Credit & Thanks To :
    Allah SWT
    Dolby Mobile
    HTC Sensation Forum
    Smartfren Andromax C Indonesia
    Smartfren Andromax U Indonesia
    Smartfren Andromax U2 Indonesia
    Max Droiders Team Dev
    MAAaD
    Riyono
    @DavidMKD For Superuser Mod
    And Many More, I Can't Remember , Please PM Me If Any Of You That I've Missed :highfive:
    4
    Woooww :good: Mastah,will try... :D :highfive:

    ur welcome :cool:
    don't call me Mastah :fingers-crossed:
    2
    Woooww :good: Mastah,will try... :D :highfive:
    2
    First of all thanks for little guide and port of this mod.
    Now what i've done, for KK 4.4.4 i9300 roms we don't need anymore lucky patcher, i've found a way how to mod services.jar to work with cm11 4.4.4 roms.
    So let's go...
    you have to decompile services.jar (for me best was 1.4.2 smali/baksmali files) and change following in two smali files:

    in ...SMALI\out\com\android\server\pm\PackageManagerService$InstallParams.smali

    before
    Code:
        iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
    
        iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
    
        if-ge v[COLOR="Red"]7[/COLOR], v8, :cond_68

    after:
    Code:
        iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
    
        iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
    
        if-ge v[COLOR="Blue"]8[/COLOR], v8, :cond_68

    and in
    ...\SMALI\out\com\android\server\pm\PackageManagerService.smali

    before
    Code:
        .line 2764
        :goto_5
        [COLOR="Red"]return v6[/COLOR]
    
        .line 2745
        :cond_6
        const/4 v6, [COLOR="red"]-0x1[/COLOR]
    
        [COLOR="red"]goto :goto_5[/COLOR]

    after
    Code:
        .line 2764
        :goto_5
        [COLOR="blue"]const/4 v6, 0x0[/COLOR]
    
        .line 2745
        :cond_6
        const/4 v6, [COLOR="blue"]0x0[/COLOR]
    
        [COLOR="blue"]return v6[/COLOR]

    and in the same file a little bit lower

    before
    Code:
        invoke-static {v3, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    
        [COLOR="red"]move-result v3[/COLOR]
    
        if-[COLOR="red"]ne[/COLOR]z v3, :cond_206

    after
    Code:
        invoke-static {v3, v0}, Lcom/android/server/pm/PackageManagerService;->compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    
       [COLOR="Blue"] const/4 v3, 0x0[/COLOR]
    
        if-[COLOR="blue"]eq[/COLOR]z v3, :cond_206

    and recompile services.jar

    tried with temasek V126 and 140 without patch and lucky patcher, just flashed modded services.jar and it works :D
    cheers.
    Let me know that it works on any device ect.
    Cheers