Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,115 Members 51,595 Now Online
XDA Developers Android and Mobile Development Forum

[TIP] Installing DSP-based equalizer on Android 2.2 stock ROMs.

Tip us?
 
mrcrassic
Old
#1  
mrcrassic's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 352
Join Date: Sep 2007
Location: New York
Default [TIP] Installing DSP-based equalizer on Android 2.2 stock ROMs.

As most of you know, alankila published a modified AudioFlinger library that gives rooted Android installations much-needed DSP capabilities. (See here.) This has been upstreamed to Cyanogen-6 development branch and has been released in CM6 stable and a few other cooked ROMs. However, there wasn't much information on installing it on stock ROMs with locked bootloaders/recovery images (i.e. will only accept Google-signed update ZIPs), so here's a tutorial on how to do that. This has been tested working on my Nexus One running FRF91 and the stock HTC Passion bootloader and recovery image.

NOTE. You must be root!

1) Download the attached dsp-signed update ZIP. I'm not sure which version this is, but it lets you control both the speaker and headset curves independently.

2) Extract its contents to a local folder or to the SD card on the phone.

3) Using ADB, drop to a root shell (adb shell, then su.) and remount the system partition as read-write.
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Afterwards, make a backup of libaudioflinger so that you can restore it in case your phone blows up.
Code:
mv /system/lib/libaudioflinger.so /system/lib/libaudioflinger_bak.so
. Finally, copy DSPManager.apk to /system/app and the modified libaudioflinger on your SD card to /system/lib.
Code:
mv [path-to-files]/DSPManager.apk /system/app/
Code:
mv [path-to-files]/libaudioflinger.so /system/lib/
4) Reboot.

If your phone fails to boot, just delete the libaudioflinger library you copied over and restore the original from the backup you made.

Enjoy! It's fantastic!
Attached Files
File Type: zip dsp-signed.zip - [Click for QR Code] (90.6 KB, 9624 views)
The Following 2 Users Say Thank You to mrcrassic For This Useful Post: [ Click to Expand ]
 
xmunroe
Old
#2  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Aug 2010
This works great on my Incredible with stock 2.2!

Thanks!
 
mrcrassic
Old
#3  
mrcrassic's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 352
Join Date: Sep 2007
Location: New York
Of course, you could also just install ROM Manager, then flash a custom recovery image and install the update ZIP that way if it's easier.
 
jdubdieslo
Old
#4  
jdubdieslo's Avatar
Senior Member
Thanks Meter 0
Posts: 148
Join Date: Sep 2009
Location: Austin, Texas
Does this app control ear piece, speaker and headphones? also does it apply the settings to calls as well as music? thanks. I have it on my phone for evils sense rom but not really noticing much of a difference. thanks.
Samsung Captivate
Samsung Epic
Samsung Vibrant
HTC Incredible
HTC Nexus One
HTC Mytough 3G
HTC G1
 
Smabbage
Old
#5  
Smabbage's Avatar
Senior Member
Thanks Meter 25
Posts: 187
Join Date: May 2010
Location: Lost in Arkansas
This works great, I just wish the sliders were a bit more responsive.
 
sg1dan
Old
#6  
Senior Member
Thanks Meter 19
Posts: 234
Join Date: Feb 2010
installed through clockwork recovery on LeoFroyo rom 2.0.1Beta3, and it works like a charm. the sliders could use + and - icons on side to help change the numbers.
 
dgart08
Old
#7  
Senior Member
Thanks Meter 9
Posts: 327
Join Date: Aug 2010
All the dsp settings do is make my speakers clip...

Sent from my Nexus One using XDA App
 
mrcrassic
Old
#8  
mrcrassic's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 352
Join Date: Sep 2007
Location: New York
I would be careful with equalizing the speaker; if it's like most phone speakers, it's pretty fragile...

@jdub: It works for speakers, headphones and bluetooth devices. It affects all sound on the phone.
 
danimar1
Old
#9  
Member
Thanks Meter 0
Posts: 92
Join Date: Oct 2009
Quote:
Originally Posted by dgart08 View Post
All the dsp settings do is make my speakers clip...

Sent from my Nexus One using XDA App
Same here, no matter how slightly (0.3dB or so) I change the level of any band, it clips when connected to my car stereo, with headphones the issue is also present but less annoying.
 
tomasitoc
Old
#10  
tomasitoc's Avatar
Senior Member
Thanks Meter 49
Posts: 870
Join Date: Aug 2008
Location: California
will this work for bluetooth streaming

Thread Tools
Display Modes


Lock Apps and Functions Easily with Droid Protector

Access and security are some of the key issues facingmobile technology. Whether … more

ARChon Lets You Run Android Apps in Google Chrome Browser

Not too long ago, Google added the ability torun select Android applications on … more

Flyme OS Finds Its Way to the Google Nexus 5

Flyme OS is a heavily modified Android variantdeveloped by the Meizu team for their MX … more

MultiROM Makes Its Way to the LG G2

Over the last few weeks, we’ve seen quite a fewflagship (and former flagship) devicesget to … more