[Droid Incredible Android Development] wildstang83:
Bunker Buster DTR DIY​

Hey guys, I made a complete package of everything you need to make your own DTR's. This one zip that I provide below contains everything that you need for both Windows and Linux. This way you don't have to go looking for everything you need everywhere.

First, download this zip and place it on your Desktop for now:

Bunker_Buster_DTR.zip

Next lets make sure your computer is set up and ready to make the DTR.

Unzip the Bunker_Buster_DTR.zip and have a look at its contents. You should see four folders and one zip file.

The names of the four folders and the one zip file are:

Linux smali 1.2.7

Linux smali 1.2.8

Windows smali 1.2.7

Windows smali 1.2.8

wildstang83_DTR_Flasher.zip

Do you see all of these? Good, lets continue with setting up your computer!

First decide what version you want to use. smali 1.2.7 is obviously older but I've never had an issue with it, so I would recommend using it. The smali 1.2.8 is newer and you shouldn't have issues making a DTR with it, but as a Dev I have personally ran into situations doing other things building Roms where it didn't work properly for me so I had to fall back on 1.2.7. Just tossing that out there...

Obviously if your on Windows you'll want to use the Windows version and visa versa for Linux.

Once you made your choice, open up your C:\ Drive. On Linux you would use your Home folder.

Open the folder of whatever version of smali you will be using. Inside that folder you will see two folders. One called smali and the other called baksmali. Drag those two folders into your C:\ Drive for Windows or home folder for Linux.

There, set up complete. Wasn't that easy?

Your now ready to make DTR's!

Next, find the Rom you want to make a DTR for.

NOTE: I use 7Zip for everything I do so I'll use it for the following instructions. For Linux, the default zip application is fine. It doesn't hurt to have the 7Zip add on for it though;)

Once you have the Rom just place it on your Desktop. Right click it and choose 7Zip/Open Archive. Linux: Just double click the Rom. I suppose you could do the same in Windows if 7Zip is set as your default .zip program:)

You will see a folder called system. Open that folder and you will see another folder called framework. Open that folder as well. Look for a file called services.jar. Just simply drag and drop that file to your Desktop. You can go ahead and close that Rom zip.

Now, do the same thing for that services.jar file. Just open archive it and look for a file called classes.dex. Is your C:\ Drive still open? Good! open that baksmali folder. Drag and drop that classes.dex file into the baksmali folder. Do you see that file in the baksmali folder called Decompile? Good, double click that.

NOTE: In the Linux version only, you may have to right click that Decompile file and set the permissions to allow to run as a program!

In the event that my Decompile file isn't working for you, you can manually run these commands;

For Windows:

cd C:\baksmali [Press the enter/return key]

java -Xmx512M -jar baksmali.jar -o classes/ classes.dex [Press the enter/return key]

For Linux:

cd ~/baksmali [Press the enter/return key]

java -Xmx512M -jar baksmali.jar -o classes/ classes.dex [Press the enter/return key]

If all has went well, there will be a new folder in the baksmali folder called classes. Open that folder all the way up like this: classes\com\android\server. Inside that server folder scroll all the way down and look for the 7 files that start with Throttle. Delete those 7 files. MAKE SURE YOU ONLY DELETE THOSE SEVEN THROTTLE FILES! Next back all the way out to that baksmali folder again. Now drag that classes folder into the smali folder. This is where we recompile the classes folder into the new classes.dex. So guess what we do now! Thats right, double click that Compile file!

NOTE: In Linux you may have to right click that Compile file and set the permissions to allow to run as a program!

In the event that my Compile file isn't working for you, you can manually run these commands;

For Windows:

cd C:\smali [Press the enter/return key]

java -Xmx512M -jar smali.jar -o classes.dex classes/ [Press the enter/return key]

For Linux:

cd ~/smali [Press the enter/return key]

java -Xmx512M -jar smali.jar -o classes.dex classes/ [Press the enter/return key]

If all has went well, there will be a new file in that smali folder called classes.dex. Is your services.jar still open? Cool just drag and drop the new classes.dex into your services.jar, over writing the old classes.dex.

Good job! All the hard stuff is done. Now all that is left to do is get your new throttle remover onto your phone. That's where that super awesome wildstang83_DTR_Flasher.zip comes in. Just open that zip up to system/framework and drop in your new services.jar. Drop that flasher zip on your SD Card, reboot into Clockwork Mod Recovery and flash just like a Rom. Reboot your phone when that's done. Enjoy your new found ability of avoiding that mean throttle!