[Guide]theme/mod anything on android phone - Android Themes

First of all i know that there is already threads like this but i hope this be more easy and usefull.
I wrote this simple guide for people who doesn't have a pc or have problems on their pc's.
Things u need
Android apktool here
Dev-drawable from here here
X-plore usefull filemanger with texteditor here
Steps
1.download apktool and extract it in sdcard then install it.
2.make a newfolder name it anything in sdcard and put ur framework-res.apk and twframework-res.apk in it.
3.open apktool and goto the newfolder u've made then select framework-res.apk and select install as framework after it finish do the same for twframework-res.apk
4.goto the .apk (.jar,.dex) u want to theme or mod it (ex.systemUi.apk) and select it then select decompile.
5.then make whatever u want to edit xml's or change some png's in drawable.
You can resize ur png's very easy with dev-drawable.
6.After u finish modding open apktool select the folder (systemUi-res)and select recompile.
Done

Related

[How to]Mod theme with Ninjamorph and Root Explorer

Hj everbody. Today I'll show you how to mod theme with Ninjamorph and Root Explorer. It very easy.
My example is framework-res.apk
- Download theme ( I use Gingerbread theme).
- Unzip framework-res.apk to SDcard.
- Open Ninjamorph > New Project. U can find framework-res.apk in /system/framework. framework-res.apk will be extract to /sdcard/.../workspace. OK close Ninjamorph, don't touch Finish Project.
- So now open Root Explorer and go to framework-res file u unzip before > Copy what u want and paste to framework-res in /sdcard/.../workspace.
- Then back Ninjamorph > Existing Project > Finish Project. OK
- Reboot.
Sory about my english.

[Q] Quick Panel @ Toggle

hi. i want to change quick panel @ toggle from gb green to blue like cm.. how i want to do it? is that uot kitchen can do it?? im using. i'm new here.. i don't know how to do it.. i'm using firmware S5830IDXLF1, S5830IOLBLD1 .. anyone can help me..
Decompile SystemUI.apk or framework-res.apk (not sure which), edit the PNGs, recompile, push using adb.
for simpler steps (no need for decompiling/recompiling)
use Ninjamorph (free on play store)
it allows you to change the PNG files in your apks.
if you do not have 15 toggle mod:
Open Ninjamorph, go to system/app/ then choose SystemUI.apk. Then go to res/drawable-mdpi and then modify the pngs you want to modify (quickpanel_icons)
then after you're done, just go back to main menu of ninjamorph and choose finish then choose systemui.
but if you have 15 toggle mod:
Open ninjamorph, go to system/framework then choose lidroid-res.apk. Then do the same steps.
Ninjamorph is useful for beginners, no need to compile.
EDIT: after you finish you need to reboot (because you edited something in the statusbar, and it also applies if you edited a framework apk.)
jraquino said:
for simpler steps (no need for decompiling/recompiling)
use Ninjamorph (free on play store)
it allows you to change the PNG files in your apks.
if you do not have 15 toggle mod:
Open Ninjamorph, go to system/app/ then choose SystemUI.apk. Then go to res/drawable-mdpi and then modify the pngs you want to modify (quickpanel_icons)
then after you're done, just go back to main menu of ninjamorph and choose finish then choose systemui.
but if you have 15 toggle mod:
Open ninjamorph, go to system/framework then choose lidroid-res.apk. Then do the same steps.
Ninjamorph is useful for beginners, no need to compile.
EDIT: after you finish you need to reboot (because you edited something in the statusbar, and it also applies if you edited a framework apk.)
Click to expand...
Click to collapse
what u mean?? ninjamorph is that app?
SemBoyHehe said:
what u mean?? ninjamorph is that app?
Click to expand...
Click to collapse
Yes its an app
It can be used to edit png
But if you want to edit xml
Then compiling and decompiling is the only choice
iamareebjamal said:
Yes its an app
It can be used to edit png
But if you want to edit xml
Then compiling and decompiling is the only choice
Click to expand...
Click to collapse
can u help me? i didnt know ho to do..

[HOW-TO] Theme TouchWiz to be AOSP!

How To Theme TouchWiz Based ROM to look like AOSP!!​
Ok guys I decided to share my theming method with you guys. This is mainly intended for all developers and or ROM developers!
If you have TouchWiz based ROM (Some devices below) you can theme it to have an AOSP feel to it.
Devices:
Galaxy SII
Galaxy SIII
Galaxy Note
Galaxy Note II (Tested by Me )
Some others as well...
Whats Needed:​*APKTool DOWNLOAD HERE
*JAVA DOWNLAOD HERE
*7-ZIP DOWNLOAD HERE
*TouchWiz Base ROM
*SystemUI.apk (in system/app) **FROM TOUCHWIZ ROM**
*SystemUI.apk (in system/app) **FROM AOSP or CM10 ROM**
*Framework-res.apk and TWFramework-res.apk (in system/framework) **FROM TOUCHWIZ ROM**
*Zipalign tool
*Root Explorer App (Get from Google Play Store)
*Holo Launcher (Also get from Google Play Store)​
Lets Get Started:​Follow all of the steps below carefully and you should have an AOSP Themed TouchWiz ROM in no time ​
1. Download the Holo Launcher from the Google Play Store.
(When you run the launcher you will see that you will have an AOSP themed launcher and you will have AOSP system icons [messaging, phone, settings, ect..])
2. You need to install APKTool next. (If you already have this installed then skip this step)
*Download the APKtool files (link above)
*Put the files into your C drive. Make a folder in the root of your C drive called apktool.
*All of your files should go inside that folder (apktool)
*Go to CMD or Command Prompt and type in
Code:
cd C:\apktool
*That should redirect you to the apktool. If it worked then lets move on...
3. Get the framework-res.apk and TWFramework-res.apk (in system/framework) and place it in the apktool folder.
4. In the Command Prompt you will need to direct CMD to the APKtool folder. Then you must install the framework files by doing:
Code:
apktool if framework-res.apk
and
Code:
apktool if twframework-res.apk
Now your framework files are successfully installed. If you have an error in the CMD window then you must check your JAVA.
5. Now get your systemui.apk files from both AOSP (CM10) and TouchWiz ROM. Rename the AOSP systemui.apk to systemuiaosp.apk (so you dont get the touchwiz and aosp systemui's mixed up)
6. Make a backup of the TouchWiz systemui.apk in another folder called "Backup" ****YOU WILL NEED THIS LATER*****
7. Now you should have both systemuiaosp.apk and systemui.apk in the apktool folder. Now you must decompile both files by using these commands:
Code:
apktool d systemuiaosp.apk
and
Code:
aptkool d systemui.apk
You should have 2 more folders (systemuiaosp and systemui).
8. Here comes the actual theming of the systemui. Open both systemuiaosp and systemui folders side-by-side. And now you need to navigate to the drawable-xhdpi folder in both.
***FOLLOW THESE NEXT STEPS CAREFULLY OR YOU WILL HAVE AN ERROR***
9. Find the files you want to replace. They should all be PNG files. DO NOT JUST ADD PNG FILES FROM THE SYSTEMUIAOSP TO THE SYSTEMUI. YOU WILL GET ERRORS WHEN COMPILING THE FILE!! There are XML files (we will not edit in this tutorial) that use those PNG files with those extension names. So you can't just add files from one to another. For example:
If you have an icon you want to change but its only for that AOSP then it wont run on the TouchWiz. If you have a WiFi icon that has a name of AOSP_Wifi_1 and on the other systemui it says TOUCHWIZ_Wifi_1 you cant just delete the one that says TouchWIZ_WIFI_1 and replace it with the AOSP one. The XML files dont tell it to run the AOSP_WIFI_1. So you must ONLY REPLACE FILES WITH SAME EXTENSION NAME!!
10. You can go ahead and transfer files from the SystemuiAOSP to the systemui. Note what i said above!! If you have lets say 6 wifi icons for systemuiAOSP and 6 icons for systemui (touchwiz) you can rename the AOSP PNG files to match the TouchWiz ones so the XML files will know what to run.
I personally suggest only transferring Wifi Icons, Battery Icons, and Signal Icons. These are your most important ones to transfer! You can also transfer the Bluetooth and Airplane mode icons also.
11. After you have transfered the files over and you feel like you have done it correctly then you can go ahead and Compile the SystemUI folder by using this code:
Code:
apktool b systemui semidone.apk
12. If you did all the steps correctly above then apktool will build the apk file with no issues. If you have errors then you did not pay attention carefully. (You may want to try another CM10 ROM to get icons from).
13. Now here is where 7-Zip and your backup file comes into play. Open 7-Zip twice (2 windows). In the first window direct 7-zip to the semidone.apk file. And the second one to your backup file which should be SystemUI.apk (in the backup folder).
14. In the SystemUI.apk click on the RES folder and then find the Drawable-xhdpi folder. Delete the entire Drawable-xhdpi folder. Now in the other window (semidone.apk) go to RES and then transfer the entire Drawable-xhdpi folder into the SystemUI.apk window.
15. Now your SystemUI.apk in the Backup folder is your new modded one. But before you can use it you must zipalign it using any zipalign tools out there. I just use DSIxda's kitchen to do it since I make ROMs with it.
16. Now you can go ahead and transfer the SystemUI.apk onto your phone's SD card.
17. Download Root Explorer. Now go ahead and navigate to your SD card and click the SystemUI.apk file and then click copy or move. (whichever one you like).
18. Now navigate to your system/app folder and paste and overwrite the original one. (You will need to set root explorer to Read/Write). Now you can go ahead and reboot your device.
If you did everything correctly you should now have a themed launcher and a themed status bar with AOSP Icons!​
I don't ask for donations so if this tutorial helped you then please hit that Thanks button!​
MINE
Mine AGAIN
I was just looking for a thread like this... not sure if i have enough time and will to do it but i am very glad you post it!
thanks a lot!!!
ExcaliberX said:
I was just looking for a thread like this... not sure if i have enough time and will to do it but i am very glad you post it!
thanks a lot!!!
Click to expand...
Click to collapse
Your welcome. I hope it works for you!
So are there any screenshots showing exactly what changed? I'd like most of the UI to have an AOSP feel to it not just some parts. Does this theme all or just bits and pieces?
Shmi117 said:
So are there any screenshots showing exactly what changed? I'd like most of the UI to have an AOSP feel to it not just some parts. Does this theme all or just bits and pieces?
Click to expand...
Click to collapse
Well as said above it themes the launcher (holo) and the status bar icons are aosp.
thanks I was hoping to see where you find the blue background bars in the S2 in the settings menu SecSettings.apk or trframework or framework or systemUI I have looked everywhere and changed colors of .9pngs forever and it never phased them. obviously I never found the right one to change. would you happen to know and could you post here or pm me thanks. have a decent ROm that doesnt really need blue gray bars dominating the screen.

[Tutorial] Customize soft key height / navigation bar resize

This works on any Rooted Android device. I tried to make the guide easy for those who don't know much. Please backup before attempting this mod.
REQUIREMENTS:
1. ROOT
2. Install root browser on the device: https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
3. Install Android Multitool the computer: http://www.mediafire.com/download/7px0d9i51cv5boc/AndroidMultitool_3.3.zip
TUTORIAL:
1. Use root browser and copy /system/framework/framework-res.apk to /sdcard
2. Save framework-res.apk from /sdcard to AndroidMultiTool Files folder in your computer
2. Now we need to Decompile the apk with AndroidMultiTool. Run AndroidMultiTool.exe
3. Under Decompling, select the framework-res.apk file and click decompile. Decompiled files will show up in Decompiled_apk folder
4. go to the folder Decompiled_apk/framework-res/res/values/
5. Open dimens.xml with notepad
6. change values for:
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height_landscape">48.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>
Use 25 for all dip values to match status bar; or use a bigger number for all three values to make them bigger. Then save.
7. Now we need to Compile the apk with AndroidMultiTool. Under Compiling, select the folder /decomplied_apk/framework-res and click OK. Then click compile. After it's done, you can close Android Multitool
8. Go to the original framework-res.apk in the Files folder and rename it to framework-res.zip
9. Open framework-res.zip and copy AndroidManifest.xml and META-INF folder to your desktop.
10. Go to compiled_apk/framework-res folder
11. Rename framework-res.apk to framework-res.apk.zip
12. Copy and replace AndroidManifest.xml and META-INF folder from your desktop in the framework-res.apk.zip
13. Rename framework-res.zip back to framework-res.apk
14. Copy framework-res.apk into your device /sdcard.
15. Then use root browers to copy and replace framework-res.apk into /system/framework
16. Your device will reboot by itself with the new smaller soft keys
REFERENCES AND THANKS TO:
Flextrick : http://forum.xda-developers.com/nexus-4/themes-apps/mod-customize-navigationbar-height-t2306742
Flextrick : http://forum.xda-developers.com/showthread.php?t=2326604
Charles Chow : http://chromloop.com/2013/07/how-to...on-bar-in-cyanogenmodcm10-1-on-nexus-4-guide/
there's also a way to enable the softkeys http://forum.xda-developers.com/galaxy-s3/themes-apps/mod-how-to-enable-soft-keys-t1960460.
the question is, after I enable the softkeys to my SGNote 3 would your instructions above work?
Update:
I tried your process, upon decompiling, the tool said that the .apk file is not found or is not readable -,-'
its not working.
Under framework-res folder no sub folder res creating, and in android multi tool log showing 7 errors relating with java. please get back to me.
Doesn't work for me
I try 3 times, always stuck on boot screen.
Not working, followed each steps with detailed.
Phone stuck in bootloop..
---------- Post added at 12:06 PM ---------- Previous post was at 12:03 PM ----------
barrugo said:
I try 3 times, always stuck on boot screen.
Click to expand...
Click to collapse
Sad
I've got a problem: This tool can't decompile framework-res.apk, says it can't find it! How do I resolve this?

[GUIDE] Deodex any app on android N with phone

This guide we will use systemui as an example for deodexing.
Download androblacks apktool below. Install.
Open apk and update it when prompted. go into settings. Make sure you tick "root" option at the bottom. Close the app.
Use any root file browser and create a folder on SD card called "apktool."
Go into system/privapp and copy over systemUI.apk and systemui.odex into apktool folder on SD card. Go back to system/framework and Copy over framework-res.apk to apktool folder on SD card.
Open apktool app and click on internal storage. Select apktool folder. Click on framework-res and in select install as framework. When its done select systemui.apk and also install as framework.
Once completed click on systemui.odex and select decompile for android N. When finished long press on the decompiled odex folder and select recompile. It will create a systemui.dex file. Click on the systemui.dex file and select "add to apk" option. The dex file will now be added to the original systemui.apk. to make sure it worked click on the apk file in your root browser and select view, inside you will see a classes.dex file. Use apktool to now decompile the original systemui.apk and you will now have a decompiled smali folder.
I used this method to deodex my systemui in order to make the necessary mods for 3minit battery mod.
Link to andro Black's apktool:
https://www.androidfilehost.com/?fid=817550096634742560
Hi thanks for sharing this. It seems really cool but when would this be needed? Is this supposed to be for odexed roms and what does deodexing really do anyway? Or is this just because it's possible. Thanks
Odexed applications cannot be decompiled and edited to the same level that a deodexed application can. I'm not going to go into the detailed differences between odex/deodex, a simple google search will clear that up. Odex apks are bifurcated, with odex file containing optimized code readily available for the system to use.
Anyone wishing to modify an apk, especially theming, will need to deal with deodexed files, no odex.
Pain-N-Panic said:
Odexed applications cannot be decompiled and edited to the same level that a deodexed application can. I'm not going to go into the detailed differences between odex/deodex, a simple google search will clear that up. Odex apks are bifurcated, with odex file containing optimized code readily available for the system to use.
Anyone wishing to modify an apk, especially theming, will need to deal with deodexed files, no odex.
Click to expand...
Click to collapse
Oh okay that makes sense whenever I've modified apks they've been deodexed but I've never really looked at odexed files as I'm always on a custom ROM. Thanks
Sorry for noobish questions. When finished do you recompile the SystemUi_src? Also if doing other apps do you need to install each apk as framework? The system/framework only gets done once, but if moving on to others do I need to delete the other apk that was installed as framework?
Delete

Categories

Resources