[HD2 Android SD Development] HypoTurtle:
Supercharger for M5 SE and wifi stuff

Apologies for the long post

Supercharger instructions for SE if anyone wants them (I take it that B35 is deodexed?)

Download toolkit from here, extract it and replace the backsmali and smali.jar files from here.

Copy the entire /system/framework file contents into the same folder as the files above.

Open terminal/cmd (will probably need admin priviledges)

cd to the folder being used

type "java -jar baksmali.jar -x services.odex -o classout"

open the classout folder that was just created

navigate through com -> android -> server -> am folder

open ActivityManagerService.smali using notepad/notepad ++ / any text editor

follow the steps from the V6 thread to edit the file as below:

Save the file.

Go back to terminal / cmd and run #java -Xmx512M -jar smali.jar classout -o classes.dex

Open services.jar using arc / 7zip / winRAR etc. (don't extract it) and copy the classes.dex file into it. (This in essence is now a deodexed services.jar file)

Copy this to the sdcard of the phone.

Install dexopt-wrapper from here (copy the file to /system/bin and change the permissions)

Open terminal on the phone or adb shell on PC for the following commands (as superuser)

#cd sdcard

#dexopt-wrapper services.jar new.odex $BOOTCLASSPATH

this creates the odex file that will replace the current one

#busybox dd if=/system/framework/services.odex of=new.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

this copies the signature from the current odex file"

(personally i'd backup services.odex by renaming it to services.odex.bk just in case something goes wrong)

#cd /system/framework

#busybox cp /sdcard/new.odex services.odex

"renames and moves new.odex to services.odex"

Change permissions of services.odex to rw- r-- r-- (644)

Reboot and you're done.

Alternatively if someone can reassure me that there isn't any sensitive information in services.odex (which I don't think there is) I could attach mine, I have the launcher set to bulletproof; 0x0 as apposed to 0x1 above.

Just waiting now for that tut. on how to change dpi in SE can't imagine it would be easy to do, I dug though the phone quite a bit trying to find a way to do it.

Tytungs 2.1 kernel working for me now for some reason, am using a new data.ext4 so that may be the reason (and installed it unintentionally in stages -change zimage -> reboot -> change modules -> reboot).

Just thought I'd make it clear to those who have wifi work (mainly aiming towards Robbie P and wiz1152) that the problem isn't router related, the actual toggle to turn wifi on is grayed out and doesn't work (at least that was my issue), which to me suggests a permissions issue, I have tried changing the permissions of bcm4329.ko (which I think is the wifi module) to see if I could break wifi; and just managed to recreate the wifi state by removing all the permissions so might be worth toggling the permissions on that module to see if it sorts out the wifi.

I think I heard someone mention slow wifi speed; I had that a few builds ago, and it wasn't kernel related but due to a dodgy data.ext4 so use a clean one to see if thats the cause of the problem.

Edit - have attached my services.odex for use with M5 SE if you want 100% supercharged / bulletproof launcher just replace the one in /system/framework (you will still need to run the V6 script to get the other 50%)