FORUMS
Remove All Ads from XDA

[MOD][4.0.3+][32-bit] Dolby Digital Plus (Huawei) [r9]

1,042 posts
Thanks Meter: 1,329
 
Post Reply Email Thread
This is basically the Dolby Digital Plus audio effect ported from the latest Huawei Ascend P6 beta kitkat rom.
I also ported the configuration app which you can launch from the launcher.

- Notes
If you flash this on Lollipop, make sure you uncheck "Use NuPlayer" in Developer options!!
When having FC's, put SELinux in permissive!!! SELinuxModeChanger
This started out as a Nexus 4 only project, but should work on any device now

- Versions
v1 - 20/03/2014
- Initial release

v2 - 20/03/2014
- Added /system/etc/dolby_config.xml
- Modified DolbyMobileAudioEffectService to load config from /system/etc instead of /data/cust/.../xml
- Added revert

v2.1 - 20/03/2014
- GlobalDolbyEffect uses default theme now, not Light anymore
- Flash this update after flashing v2 (it only updates the apk)

v2.2 - 23/03/2014
- Removed unused permissions from DolbyMobileAudioEffectService
- Resigned DolbyMobileAudioEffectService with CM platform key
- Flash this update after flashing v2 (it only updates the apk)

v3 - 25/03/2014
- Two versions now, one for stock based roms, one for CM based roms
- In CM based version, the DolbyMobileAudioEffectService uses shareduserid android.uid.system. This should make the service running without
a notification.

v4 beta - 27/03/2014
- Merged DolbyMobileEffectService into GlobalDolbyEffect
- Disabled call to startForeground (This disables the notification, but now the service could be killed by the system in case of memory shortage)
- When connecting a headset, a notification icon will be shown and you can change presets by clicking on the notification.
- Still in beta, I'm still testing it, but it seems to run fine, and the service wasn't killed yet in a few hours of listening to music.
Feedback is welcome !

v5 - 23/05/2014
- Target sdk changed to 17
- GlobalDolbyEffect.apk signed with private key

r6 beta - 26/11/2014
- New install script
- On lollipop or higher, new app folder structure is used. On older versions old structure is used.
- Audio_effects.conf is patched now, not overwritten, flashing this mod doesn't disable other effects.
- Added audio effects api v2 library, so it should work on <4.3 versions
- Revert zip patches audio_effects.conf now, so no other effects will be disabled during revert.

r7 - 09/12/2014
- Materialized icon
- Added addon.d script, on supported roms it survives rom updates now
- Reverter deletes addon.d script

r8 - 03/01/2014
- Hide from recents

r9 - 08/01/2015
- Also hide alert dialog from recents
- Final release, i don't think i can improve it much further.

Downloads

XDA:DevDB Information
Dolby Digital Plus (Huawei), App for the Google Nexus 4

Contributors
worstenbrood

Version Information
Status: Stable
Current Stable Version: r9
Stable Release Date: 2015-01-08

Created 2014-12-02
Last Updated 2015-01-08
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-03-20-09-23-47.png
Views:	101648
Size:	150.4 KB
ID:	2640115   Click image for larger version

Name:	Screenshot_2014-03-20-12-56-38.png
Views:	108217
Size:	79.8 KB
ID:	2640312   Click image for larger version

Name:	Screenshot_2014-03-20-12-56-54.png
Views:	107868
Size:	84.3 KB
ID:	2640313  
The Following 81 Users Say Thank You to worstenbrood For This Useful Post: [ View ] Gift worstenbrood Ad-Free
 
 
tykate
20th March 2014, 03:11 AM |#2  
Guest
Thanks Meter: 0
 
More
Thanks for the new mod!

Does it require DSP along with it, or does it work without it?
20th March 2014, 03:13 AM |#3  
worstenbrood's Avatar
OP Senior Member
Thanks Meter: 1,329
 
Donate to Me
More
Quote:
Originally Posted by tykate

Thanks for the new mod!

Does it require DSP along with it, or does it work without it?

It doesn't need DSP manager. If you have DSP manager, enabling one of the options in there will disable the dolby effect. Once you disable all effects in DSP manager, the dolby kicks back in.
The Following 3 Users Say Thank You to worstenbrood For This Useful Post: [ View ] Gift worstenbrood Ad-Free
tykate
20th March 2014, 03:25 AM |#4  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by worstenbrood

This is basically the Dolby Digital Plus audio effect ported from the latest Huawei Ascend P6 beta kitkat rom.
I also ported the configuration app which you can launch from the launcher.

- Notes
This mod works in combination with DSP Manager other effects may be disabled by flashing this mod.

- Versions
v1 - 20/03/2014 - Initial release

- Git
https://bitbucket.org/worstenbrood/d...ital_plus_mako

Quote:
Originally Posted by worstenbrood

It doesn't need DSP manager. If you have DSP manager, enabling one of the options in there will disable the dolby effect. Once you disable all effects in DSP manager, the dolby kicks back in.

is there a revert?
20th March 2014, 03:47 AM |#5  
worstenbrood's Avatar
OP Senior Member
Thanks Meter: 1,329
 
Donate to Me
More
Quote:
Originally Posted by tykate

is there a revert?

Not yet :// I'll make one tomorrow
The Following 3 Users Say Thank You to worstenbrood For This Useful Post: [ View ] Gift worstenbrood Ad-Free
21st March 2014, 11:19 AM |#6  
ravinder0003's Avatar
Senior Member
Thanks Meter: 611
 
More
Thumbs up
Quote:
Originally Posted by worstenbrood

It doesn't need DSP manager. If you have DSP manager, enabling one of the options in there will disable the dolby effect. Once you disable all effects in DSP manager, the dolby kicks back in.

superb bro... clearly hear the difference ... surround sound effects also there ...
Also, very easy to switch between DSP and dolby ...turn on dsp turn off dsp... no need to delete or revert anything

thanks again buddy ...
The Following 2 Users Say Thank You to ravinder0003 For This Useful Post: [ View ] Gift ravinder0003 Ad-Free
21st March 2014, 02:57 PM |#7  
Member
Thanks Meter: 5
 
More
thx my nigga.. its so good.. thx..
21st March 2014, 11:57 PM |#8  
bamsbamx's Avatar
Senior Member
Flag Bilbo
Thanks Meter: 574
 
Donate to Me
More
It seems not working for me on Purity rom.... When I click the checkbox it doesnt happen anything. Cant check the box

Tried before and after flashing DSP Manager

EDIT: Reading the logcat it says: mDolbyMobileSystem = null
22nd March 2014, 12:45 AM |#9  
worstenbrood's Avatar
OP Senior Member
Thanks Meter: 1,329
 
Donate to Me
More
Quote:
Originally Posted by bamsbamx

EDIT: Reading the logcat it says: mDolbyMobileSystem = null

Thats not necessarily a bad thing, could you provide a full (or filtered on dolby) logcat after changing a preset in the app ?
22nd March 2014, 12:54 PM |#10  
bamsbamx's Avatar
Senior Member
Flag Bilbo
Thanks Meter: 574
 
Donate to Me
More
Quote:
Originally Posted by worstenbrood

Thats not necessarily a bad thing, could you provide a full (or filtered on dolby) logcat after changing a preset in the app ?

Well, it doesnt give so much info:

Code:
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffectOn() FAILED: mDolbyMobileSystem = null.
E/DolbyMobileAudioEffectClient(14802): setGlobalEffectOn() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): getGlobalAudioHeadsetByPass() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffectByPass() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getGlobalAudioPreset() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffect() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
22nd March 2014, 03:03 PM |#11  
worstenbrood's Avatar
OP Senior Member
Thanks Meter: 1,329
 
Donate to Me
More
Quote:
Originally Posted by bamsbamx

Well, it doesnt give so much info:

Code:
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffectOn() FAILED: mDolbyMobileSystem = null.
E/DolbyMobileAudioEffectClient(14802): setGlobalEffectOn() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): getGlobalAudioHeadsetByPass() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffectByPass() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getGlobalAudioPreset() FAILED: mDolbyMobileSystem == null
E/DolbyMobileAudioEffectClient(14802): setDolbyEffect() FAILED: mDolbyMobileSystem = null
E/DolbyMobileAudioEffectClient(14802): getDolbyEffectOn() FAILED: mDolbyMobileSystem = null

Is the dolbymobileaudioeffectservice running ? Do you see the notification ?

Sent from my Nexus 4 using xda app-developers app
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes