Willster419
The Casio Smartphone Guru
#This is currently version 5 updated 8/13/14#
As always, it is recommended that you perform this on a rooted "unbrickable" phone with adb enabled.
*NOTE: if you have problems with the battery icon, try downloading a themed ROM for the correct M version, and then copy out the /system/framework/framework.apk file, and use that one instead.
Hello Commando Users,
How many of you want a themed ROM. You want to make it yourself? Well then let's get started. Before you start you will need to install/download the following applications/files:
----------------------------------------------------------------------------------------------------
Ok, now that you have all that is needed, lets set up and get down to business!
Install all the above programs that need installing.
Extract the ROM Toolkit V1 to it's own folder. "Extract to ROM Toolkit V1\" option in 7zip.
Install BIMP. How to Install it:
In windows 7/vista go to organize->folder and search options->view tab. In windows xp go to Tools->Folder Options.
Then disable the following; hide extensions for known file types
----------------------------------------------------------------------------------------------------
Now that you are ready, it is time to edit!
CONGRATS you have made a theme/ROM for the phone!!!1!
"Anything to make the phone more enjoyable..."
As always, it is recommended that you perform this on a rooted "unbrickable" phone with adb enabled.
*NOTE: if you have problems with the battery icon, try downloading a themed ROM for the correct M version, and then copy out the /system/framework/framework.apk file, and use that one instead.
Hello Commando Users,
How many of you want a themed ROM. You want to make it yourself? Well then let's get started. Before you start you will need to install/download the following applications/files:
----------------------------------------------------------------------------------------------------
- WinRAR - WinRAR archiver, a powerful tool to process RAR and ZIP files
- 7Zip will work too - home page
- Gimp - GIMP - Downloads
- BIMP - An add-on for gimp - alessandrofrancesconi / projects / BIMP. Batch Image Manipulation Plugin.
- My ROM Toolkit: Commando->Dev stuff
- NotePad++ for editing the install script. Homepage
- Java - You should know where to get it
Ok, now that you have all that is needed, lets set up and get down to business!
Install all the above programs that need installing.
Extract the ROM Toolkit V1 to it's own folder. "Extract to ROM Toolkit V1\" option in 7zip.
Install BIMP. How to Install it:
- Install GIMP
- Download BIMP
- as copied from the instructions, "...it's saved in bin/win32 directory.
Just copy bimp.exe, pcre3.dll and bimp-locale into the default GIMP-plugins folder:
`<Programs-dir>\<GIMP-folder>\lib\gimp\<version>\plug-ins`"
for me (windows 7 64 bit) it was "C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins"
In windows 7/vista go to organize->folder and search options->view tab. In windows xp go to Tools->Folder Options.
Then disable the following; hide extensions for known file types
----------------------------------------------------------------------------------------------------
Now that you are ready, it is time to edit!
- Plug in your phone, turn on adb, and run the file recieveFiles.bat
- Decompile each apk you want to using each apk's batch file. To make a "full" theme, or a themed ROM, you need to decompile all of them.
- If you wish to get your own PNG files, then you can make a copy of the gimpOutput folder, and place them in there. use the gimpOutput folder structure for each apk file, starting in the res folder. You can then use that folder instead of the "sample" folder references in the upcoming steps. If you are going to use the sample PNG folder, then you can skip this step and forget what it says.
- Open gimp and select file-> batch image manipulation. A bimp window should come up.
- Select the add folders button.
- Navigate to the sample folder, and go to the folder with the regular .png files in it. "\Contacts\drawable-hdpi-finger", for example. It then should display all the .png files in the file list. It will not add the png files from the ".9.png" folders
- Add a manipulation to the set. For changing the color, find the "gimp-colorize" function, and change it to the desired color. After you add it you can double-check that it is what you want by selecting an image from the list and clicking the preview button. If it shows the selected image being the same after manipulation, don't worry about it (trust me) and try another one.
- Select where you want the files to go. This is where the gimpOutput folder comes in. Click the output folder button, and tell BIMP to export the colorized images into the gimpOutput folder instead of the sample folder. For Example, it will default with "sample\Contacts\drawable-hdpi\". This should be changed to "gimpOutput\Contacts\drawable-hdpi\". Then, sit back and relax as it does its work.
- When it is done, go to the output directory. You will find one or both of two things:
- Png files that are of the desired color.
- Png files that are unchanged in color. That is normal.
- For the files that did not colorize , repeat steps 4-8, but add another gimp operation before colorizing, called gimp-convert-rgb.
- Repeat Steps 4-10 for all of the apk files you are changing, for each folder on PNG files.
- Inspect each file to make sure it came out the way you wanted. For some, they might have a black border that was colored in, and you don't want that. You must open the original png in GIMP, colorize the areas you want to be colorized, and then save over the old colorized image.
- Now comes the time-consuming part. Open one of the .9.png folders in GIMP. For these, you need to manually colorize each one, avoiding the outside black line. To save these, I you can either directly overwrite the file, or make a folder to same them to, ("colored.9.png", for example) and save them as PNG files. Use a select tool to select what you want and then colorize.
- Check that all of the files that were colorized came out correctly. For example, if you colorized a border that came out weird-looking in comparison to the original file, then those have to be fixed as well. Again this may be a long and boring process, but the light is near
- When all of the png files and .9.png have been colored correctly, then go back to the .9.png files. They need to be "built" before they can be put into the apk file.
- Copy the .9.png files that you modified and overwrite them into the decompiled apk's directory, and build the apk. Repeat for each apk file.
- The build .9.png files are in the newly built apk, residing in the apk's decompiled folder, in dist. Open the apk, and select and copy all the built .9.png files out of each apk into a built.9.png directory for each apk. You now have all the png files that you need.
- Open the original apk's directly using winrar (rename from .apk to .zip) or 7zip. Go to each png directory and copy your colorized png files into the apk. I recommend using "store" level compression, but if you try higher compression and it works, let me know.
- If there are any original apk's that you did not modify, delete them.
- Before you send the files over, make sure you have at least 5MB space free on the system partition, and that you have a nandroid backup of your system. After you do both of those, you are ready to send files over to the phone!
- Connect your phone to your PC and Run the sendFiles.bat
- Go the the play store and download app2zip. make an "update.zip" of the apk files, and then connect your phone to your pc to copy it to your computer.
- In the zip file, overwrite the non-colored apk's with the new ones that you placed PNG files into.
- Extract the file, /META-INF/com/google/andorid/updater-script. right click it and open it in notePad++. Here you can use the UI_PRINT(""); method to print whatever you want onto the screen when someone is flashing your zip. Basicly you can the theme and script yours.
- When you are done, get it back onto your phone and flash it from the recovery flash zip menu and make sure that it works!
CONGRATS you have made a theme/ROM for the phone!!!1!
"Anything to make the phone more enjoyable..."