[Miscellaneous Android Development] saiz136:
Step By Step Prada V6 SuperCharge!

Hey yah guys! I figured it out on how to Supercharge our device running ICS!

Well it's a bit complicated (for me :) as expected) since our ROM is odexed. There are many things to do! :confused:, because V6 SuperCharger needs to edit the "services.jar" file (located at /system/framework folder) Since ICS ROMs doesn't read ADJ values on build.prop and local.prop and t'was hardcoded on the said Java file. For more information regarding V6 SuperCharger, you can check it out on this link!

Let me introduce this first.

Requirements:

----Your LG-Prada 3.0 ICS ROM 4.0.4 ODEXED and rooted + USB cable

----MS Windows operating system with an internet connection (to download the tools)

----Java installed: Make sure that java.exe is accessible from any folder (is in PATH). Java 7 installs the binaries into the windows/system32 folder, so I hope you have that folder in your PATH. If not, just Google how to add a folder to the PATH.

----ADB drivers installed (either via Android SDK or from your phone's manufacturer)

----USB Debugging enabled on your device.

Tools you need in WINDOWS:

-------LG Prada USB Drivers

-------Automatically patching ICS/JB services.jar for V6 Supercharger

-------Notepad++

-------7-Zip or Winrar

Tools you need in your DEVICE:

-------------P940 Recovery Installer

-------------Root Explorer (paid) or any app that can explore and writes on root folders.

-------------Script Manager (free)

-------------Terminal Emulator (free)

-------------Latest V6 Supercharger script (I used V6 SuperCharger Update9 RC10)

-------------Supercharger KIT

-------------(OPTIONAL) Busybox by wraithdu boot reinstaller script!

Every time I reboot, the Busybox version 1.19.4 by wraithdu resets back to my old Busybox version which is 1.18.4.

Ok this method works for me, you can share if there’s more easy way to Supercharge. I got bootloops 4-5 times trying different methods just to figure it out, since the original thread is cluttered in some way and many external libks for other tutoria (which makes me confused by the way) and ODEXED ROMs have few tips posted but many thanks to milaq’s P940 Recovery, restoring my previous ROM is easy as a breeze so bootloops is easily fixed! However, STILL DO THIS AT YOUR OWN RISK.

STEP 1: RECOVERY

= First install

milaq’s

P940 Recovery Installer and choose the TWRP which is the recommended recovery mode.

= once installed, turn-off your device then turn it on back again, once PRADA shows up, hold down the volume key and don’t release the key until TEAMWIN Logo come up!

= select Backup, you can set the Backup name if you want then on the bottom of the screen, Swipe to Back Up!

STEP 2: USB DEBUGGING AND READY

= After backing up your current ROM, just select Reboot then System, and it should boot normally.

= Enable the USB Debugging on your device by going into Settings, on the bottom part, select Developer options and check the USB debugging mode.

= I’m guessing that you have downloaded all the tools and requirements ready so let’s start!

STEP 3: CREATING SERVICES.JAR

= Connect your phone through USB and just select

“Charge only”

= Extract first

“Automatically patching ICS/JB services.jar for V6 Supercharger”

, I suggest to extract this to

“C:\”

drive and put it on a folder and rename it on a smaller name like “super” folder. In this tutorial, we will use

"C:\super"

as an example.

= Open the “super” folder and then open

“JellyScreamPatcherV6_0.9.0.6.exe”

(some kind of a camel logo :D), then a command prompt will open, just press “Enter” to continue.

===== on the command prompt, another question will popup, (o for online and f for offline), select online mode (type letter o then enter)

=====ROM Detection! Just press enter to continue and it will automatically pull all “system/framework files”. You can check it out on inside the “C:\super\framework” folder.

=====Then press “Enter” again and it will ask you to SuperCharge your services.jar, select “Yes” (type letter y then enter).

=====Select launcher strength, I suggest

Die-Hard

so just press again the “Enter” key. Enter again to continue to Maximum Overdrive (this will increase your multitasking up to 70 apps! Neat huh? :cool:) Then select “Yes” (type letter y then enter).

=====Press again the enter key and it will ask you to compile your new services.jar. Still select “Yes” (type letter y then enter) and will compile into classes.dex.

=====Now, it will ask to delete all temporary files and folders, this time select

“NO”

(type letter n then enter)

=====A warning will show, this step will push the new “services.jar” into your phone,

DO NOT

continue, just press the “Enter” key to exit.

STEP 4: EDIT CLASSES.DEX AND PATCHING

= Now we will edit the classes.dex file. Open “dist” folder (C:\super\dist) and you will see 2 files

[classes.dex and services.jar]

, copy “services.jar” and paste it in “smali” folder (C:\super\smali).

= Open

command prompt in Windows

(Start then Run then type cmd and enter)

=====on command prompt type cd C:\super\smali

=====a new path will show up which is “C:\super\smali>” type java -jar baksmali.jar -x services.jar -o classout (services jar gets decompiled into a classout folder.), don’t close the command prompt yet.

=====Locate

“ActivityManagerService.smali”

(C:\super\smali\classout\com\android\server\am), right click the file and select “Edit with Notepad++”.

=====Note that “==============” line posted below here is just a break of a search and not to put it on file. Ignore if the “.line” mismatch and some misvalue of the original value. But make sure you edit according to the line.

“green colored text” is the value to replaced in

“red colored text” is the original value or default

“blue colored text” is the keyword of the search.

Press “ctrl+f” to search and mark the “match case”

=

Save the file!!!

Now let’s go back to command prompt again with a path “C:\super\smali>”, type java -Xmx512M -jar smali.jar classout -o classes.dex (this creates classes.dex from classout folder)

=Inside “smali” folder (C:\super\smali), you will see the new “classes.dex” file, copy this and paste it on

“backup”

folder (C:\super\backup). Inside the "backup" folder, open “services.jar” with 7-Zip (right click the file then highlight 7-Zip then select Open archive) a popup window will appear, just drag the new “classes.dex” into the popup window which is an archive folder, and select “Yes”.

= After patching the “services.jar” file, copy it and paste it on your device SDCard root folder (ADB or MASS Storage USB method). Then go to

“odex”

folder (C:\super\odex) and copy the “dexopt-wrapper” file and paste it again on your device SDCard root folder.

STEP 5: SETTING PERMISSIONS

= On your device open “Root Explorer” app or any app that can explore root folders and edit them

=====Copy the “services.jar” from Sdcard root and paste it on system folder first (/system), set the right permission on the

“services.jar” to “rw-r--r--“

(x stands to mark and o stands to emptied)

Read Write Execute

Owner x x o

Group x o o

Others x o o

=====After setting the right permissions of your new “services.jar”, move it now to framework folder (/system/framework) and overwrite the existing file.

=====Copy the “dexopt-wrapper” from Sdcard root and paste it on bin folder (/system/bin), set the right permission on the

“dexopt-wrapper” to “rwxr-xr-x“

(x stands to mark and o stands to emptied)

Read Write Execute

Owner x x x

Group x o x

Others x o x

=====Or you could do it through ADB. :D

= On your device, if you already extracted the

“SuperCharger Kit”

(Note that Root Explorer app can extract this or extract this on your Windows then copy it back to your device), Open the “Script Manager” app, of course it will ask Root Permission, just say yes. At default, the app will open your sdcard root folder, locate the extracted Supercharger kit folder and you will see some files in it. Just open

“StartMeUp.sh”

and pick Su icon then Run.

=====it will ask Hit the gas? Just press enter. (Note that if your keyboard is not responding, download a 3rd party keyboard on the PlayStore).

=====Install Busybox v1.19.4 by wraithdu, type y then select enter.

=====Install Su binary v3.1 by wraithdu, type y then select enter.

=====Install SQLite and ZipAlign Binaries, type y then select enter.

=====After installing, just tap the close icon (x) on the top left part of the screen to exit. Exit the Script Manager app.

= Still on your device, open the “Terminal Emulator” app, it’s like a command prompt on your Android phone :) and type su (the $ path will change into # path)

=====type dexopt-wrapper /system/framework/services.jar /mnt/sdcard/services.odex (this will create “services.odex” file on your SDCard root folder since we have an ODEXED Rom)

=====Now we need to copy signature from original .odex file to patched .odex file cause Dalvik need files signature integrity in order to boot. Type busybox dd if=/system/framework/services.odex of=/mnt/sdcard/services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

=Exit “Terminal Emulator” app and go back to “Root Explorer” app, and locate the patched “services.odex” file which is at the SDCard root folder.

=====Copy the new “services.odex” file and again paste it on system folder first (/system), set the right permission on the

“services.odex” to “rw-r--r--“

(x stands to mark and o stands to emptied)

Read Write Execute

Owner x x o

Group x o o

Others x o o

=====After setting the right permissions of your new “services.odex”, move it now to framework folder (/system/framework) and overwrite the existing file.

=Reboot and go to TWRP recovery mode, select “Wipe” then select Cache and swipe to wipe. Go back and select Dalvik Cache and swipe to wipe. (Rhymes LOL!:laugh:) Then go back two times and select Reboot then System.

STEP 6: 100% SUPERCHARGED

=If not stuck on boot then you’re OK! Means it didn’t bootloop! And also congratulations, you are now 50% SuperCharged!

=Now for the final step of Supercharging your device! Open “Script Manager” app, and locate and open the

V6 SuperCharger script

. Remember to put it on Su then Run.

=If the

Busybox version is NOT 1.19.4-wraithdu

then the Starter Kit failed (Exit the V6 SuperCharger script and locate the “optional but not optional anymore :D” download Busybox by wraithdu boot reinstaller script. Open “boot reinstaller busybox 1.19.4 wraithdu” and put it on Su then Run.)

=====To ensure that it will run on boot, still on Script Manager, go to

“init.d”

folder (/system/etc/init.d), select and open

“96busybox”

and highlight the Su icon and Boot icon then Save not Run. Reboot!

=After boot, Open “Script Manager” app AGAIN, and locate and open the V6 SuperCharger script AGAIN. Remember to put it on Su then Run. I believe it is now running the correct Busybox version by wraithdu.

=====Just follow the instructions and all is well! The Driver Options comes first before SuperCharging. Just select Yes’s.

=====Now on the bottom, you will see 50% SuperCharged, again congratulations! But you need to configure OOM Grouping Fixes, and it says to enter options from

1 to 33

. Type 10 then Enter. This is the

Quick V6 Cust-OOMizer

, it will automatically detect the preferred minfrees.

=====After setting it up for you, it will ask for

SuperClean and Restart

(This will wipe again your Dalvik Cache and reboot automatically), select Yes.

NOTE:

If you are stuck on boot, then most cases it is a bootloop! Don’t worry, just reboot and go to TWRP recovery and restore your previous ROM.

Re-check everything from Step 1 up to Step 6!

If you are not 100% SuperCharged, repeat the #10 option on V6 SuperCharger Script.

To ensure that the SuperCharger is working after reboot. Open Script Manager and open data folder (/data) and put 99SuperCharger.sh on SU and BOOT, also in init.d folder (/system/etc/init.d) and put SS99SuperCharger on SU and BOOT.

If you have questions, please you can post it here since this is our development thread or you could PM me.

I will update this post if new development from zeppelinrox thread comes up!

Oh and sorry for the bad english :D

Thread References and MANY THANKS TO THIS GUYS!:

V6 SuperCharger Thread by zeppelinrox

Automatically patching ICS/JB services.jar for V6 Supercharger by pepcisko

Manually Deodex and Odex back by sicopat

50% SuperCharged for ICS by rexstor

P940 LG Prada 3.0 Recovery by milaq

Thumbs Up to you guys! :good::good: