5,599,677 Members 44,931 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 39
Posts: 351
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, 9570 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 39
Posts: 351
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 22
Posts: 177
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: 326
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 39
Posts: 351
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 48
Posts: 865
Join Date: Aug 2008
Location: California
will this work for bluetooth streaming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

A More Competitive Spin on the Addictive 2048 Puzzle

You may recall that a few weeks ago, we talked about a rather interesting take on … more

Multiboot in Progress for the Sony Xperia Z1

As we’ve mentioned quite a few times in the past, multiboot is quite the interesting … more

Samsung EFS Tool Updated to V5, Brings Universal Device Support

You may recall that we’ve talked about XDA Recognized Contributor … more

Say Goodbye to Holo Blue Once and for All

When Google released Android 4.4 KitKat back in October of last year, they changed quite a bit … more