• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [DEV] CM7 / MIUI GB - Headset bug fixed!

G

g60madman

Guest
I did the easy part and fixed the HeadsetObserver.java file that was originally created by TickerGuy. There was basic editing I did to resolve the headset so it now works on both soft boot and cold boots so no more unplugging and replugging after each reboot.

If anyone wants to decompile my services.jar from the new CM7.2 and then apply this fix to MIUI and any other CM7 ROM I will leave it up to you. You should only need to replace the HeadsetObserver.java files from my services to yours.

services.jar
Index of /download/headset

Here is the fixed code on github
https://github.com/MTDEV-CM7/frameworks/commit/68ce6c725af5c7e471e2f994297058a2b79114a6
 
So how do we apply this update?

You need to decompile the services.jar for your ROM and the new frameworks.jar I fixed. Then merge the samli code for all the HeadsetObserver.java files with and HeadsetObserver.java$ files. Then recompile and then put the new services.jar into your ROM and reload. I currently don't have the time right now to do this for all the ROM's out there as I am busy with CM7.2. However it should be a pretty quick fix for anyone on the forums that know how to decompile and copy paste.
 
Back
Top Bottom