Basic Theming Steps in Order - Krad - Streak 5 Themes and Apps

For my reference for newer builds....
1. Services.odex modify via smali baksmali - About 5-8 steps taking about 5 minutes
2. Cook framework with Kitchen - About 5 minutes
3. use apkmanager to decompile framework-res.apk and alter status_bar.xml with FF000000 to FFFFFFFF - About 15 minutes
4. recompile apkmanager with system and extra files
5. remove the files edited in keep folder and resource.arsc
6. compile
7. take new status_bar.xml and copy into modfied kitchen zip from step 2
8. test to see if new colors stick
9. Open older modified framework and copy mdpi folder contents to kitchen zip
10. Open HDPI folder on older framework modified and copy only battery files to new kitchen framework.
11. Should have colors and graphics in place to flash to phone for testing.
12. All went well you are done.
Tools needed
7-zip
Java
ADB
Smali
Baksmali
AndroidSigner - thanks to Jhott
apkmanager - thanks to Jhott

Nice work mate im sure it will help a lot

Related

[TUTORIAL] How to Theme Galaxy Ace

This is a guide on how to theme your galaxy ace.
If you do not have the basic knowledge of cmd and folders handling, don't try.
*Not for the faint-hearted*
1. Root is prerequisite. If you're using stock rom, you can obtain cf-root from here.
2. Install android sdk from here. Eclipse is optional. The essential stuff we need is the adb from the sdk.
3. Please make a backup using cwm in case you end up deleting or corrupting your phone.
4. Connect your phone to the pc.
5. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
6. type adb pull /system/app/SystemUI.apk (Status Bar Modding)
7. type adb pull /system/framework/framework-res.apk (Framework Modding)
8. type adb pull /system/framework/twframework-res.apk (Twframework)
9. Alright, now edit the .apk to .zip in your tools folder.
10. Open up the zip and replace the mdpi files inside with the one you prepared.
11. After all the changes, change the .zip back to .apk
12. Open cmd and type cd C:\android\tools . (Depends on where is your sdk tools folder)
13. type adb push SystemUI.apk /system/app/SystemUI.apk
14. type adb push framework-res.apk /system/framework/
15. type adb push twframework-res.apk /system/framework/
16. Reboot your phone.
17. Voilà! See the changes
Editing the images:
What are .9.png files?
I won't be using this type of image in this tutorial but I wanted to touch on it for users who want to edit these images.
A NinePatchDrawable graphic is a stretchable bitmap image, which Android will automatically resize to accommodate the contents of the View in which you have placed it as the background. An example use of a NinePatch is the backgrounds used by standard Android buttons — buttons must stretch to accommodate strings of various lengths. A NinePatch drawable is a standard PNG image that includes an extra 1-pixel-wide border. It must be saved with the extension .9.png in your project so it can be compiled when you build your project. This page has a nice explanation of what is required.
If you have decompiled the package (you should have if you followed the tutorial), you will see that the .9.png files have a 1 pixel transparent border with a few 100% black pixels around. You can modify them directly and the border will disappear when you compile the package again. If you haven't decompiled the package, you will see regular images, but modifying them will cause different problems as they will not stretch correctly and might cause incompatibility issues. Credits: Androidforum.
This method is used as some of us do not have ubuntu or linux, saving the trouble installing them.
Lol what about .9.pngs
it should needed to know how to prepare it
You should write in detail if you want to give tutorial
lol they should have the images prepared alr since they want to theme aint it. xD
Thanks man
great wor
Hatem2020 said:
Thanks man
great wor
Click to expand...
Click to collapse
Why are you reviving such an old thread?
And for thanks, there is a thanks button!
Please stop spamming!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
well im not using sdk adb and others but i making a themes without that
http://forum.xda-developers.com/showthread.php?t=1850271

Beginner Battery MOD Question

Im beginning to learn a few basics about modding the systemui.apk.
I can use the AUTO APK TOOL to decompile my SystemUI.apk, decompile the classes.dex file into smali code, use dex2Jar & jd-gui to view the classes.dex file in java.
As a project for teaching myself about the android system i'm looking into modding the battery icon. I have followed a few guides/tutorials and have a basic knowledge/understanding on what files to change/add in SystemUI.apk (stat_sys_battery.xml, stat_sys_battery_charge.xml, battery-con png files in 'drawable-xhdpi', then recompile and push to my phone (SGS3).
My questions are:
1. Do all Mods that change system settings/layout have to be baked into the SystemUI.apk? Or in this example is it possible to develop a small application using Eclipse, which when a button is clicked it change's the battery icon dynamically?
Hope it makes sense

[Q] Problem with apks (de)compiled with apktool

I made some changes to my SystemUI.apk, and I pushed it back, then rebooted, only to find my status bar had disappeared.
So, I restored to my backup, and made 4 copies of the SystemUI.apk to try to find out where the problem lay.
Copy 1: No change
Copy 2: Decompiled and Compiled with apktool. No other change.
Copy 3: Decompiled with apktool. Changed one png. Compiled with apktool
Copy 4: Decompiled with apktool. Edited text in strings.xml and changed a few colours. Compiled with apktool.
Out of these 4, only the first one worked. The rest had my status bar gone. Hence I have arrived at the conclusion that something had gone wrong in either the compiling or decompiling stages. I didn't sign the apk because I read that system apps should not be signed.
Just to make sure, these were the steps I took.
1. Retrieve SystemUI.apk, framework-res.apk, and SemcGenericUxpRes.apk
2. Install frameworks with apktool
3. Decompile SystemUI.apk
4. Make any changes
5. Compile
6. Place on SD card
7. Change \system\ to be RW
8. Copy SystemUI.apk from sd card, and overwrite the one in \system\app
9. Ensure permissions are set to rw-r-r (644)
I have not much idea what else could have gone wrong, but then again, I'm just a newbie who follows others' guides and might have missed out on doing something. Perhaps some kind soul would be able to point that out?
Well, apktool is using smali/baksmali to compile/decompile classes.dex/apk_name.odex file.
The problem can occur when you use different baksmali version when you decompile and also not the right version to compile (as the system expects it to be). You can also experience issues if the apk is not zipaligned properly (check down who to do that)
apktool has the smali/baksmali code inside it so you will need to get the newest version for it for JB for example.
You can check why the status bar is not there when you monitor the logcat and look for DEX related logs in the beginning.
You can also use smali/baksmali on your own: http://code.google.com/p/smali/wiki/DeodexInstructions
and just place the generated classes.dex in the apk
then zipalign -f 4 filein.apk fileout.apk (http://developer.android.com/tools/help/zipalign.html)
then push back fileout.apk (sytemui.apk in your case)

[TUTORIAL]How to modify SysemUI.apk

Good Day Guys!​I present this small guide on how to modify your SystemUI.apk (ICS only)​Things yah need:​APK Manager (http://forum.xda-developers.com/showthread.php?t=695701)​Java (Oh... You know where to find it)​A Windows or Linux PC.​Lets Get Started!​Decompiling:
1. Extract APK Manager from the .zip file.
2. Run Setup.bat
3. Grab the untouched framework-res.apk and SystemUI.apk from the Base ROM.
4. Place them both in "place-apk-here-for-modding" folder
5. Double click on Script.bat
6. type in 24 and type the corresponding number for framework-res.apk
7. type 9 and it should decompile (If you don't decompile framework-res.apk first you'll have serious problems.)
8. Now type in 24 again and type in the corresponding number for SystemUI.apk
9 Type in 9 and decompile.
10. Now make your modifications in "projects folder"​
Click to expand...
Click to collapse
Recompiling:
1. Once your Done go back to script.bat
2.Make sure the "Current Project" is set to SystemUI.apk
3.Type in 11 ENTER to compile apk
4.Type "y" again to confirm you DO want to add additional files that you didnt modify from thee ORIGINAL apk
5.Go into where Apkmanager is installed, and you should see a new folder called KEEP
6.Open "KEEP" folder and whatever you modified, delete the stock version of it I.e: if you inserted new battery icon png's, delete the STOCK battery icon pngs, and if you also edited any xml(s), DELETE the resources.arsc from the KEEP folder
7.Once done, go back into Script.bat and press ENTER to continue
Click to expand...
Click to collapse
Well Good Luck! , Happy Modding! ​
Reserved for the Manual
Nice tutorial, man! You're back! http://bancomicsans.com/
Great! I believe lots of users will love this good to have you back
Sent from my awesome fridge
TAM
I respect your knowledge no doubt..However I have just opened systemui.apk by 7-zip>replaced png which I want>closed 7-zip..Thats it..Replace sytemui.apk at phone>Changed persmission.
R: [TUTORIAL]How to modify SysemUI.apk
KSKHH said:
TAM
I respect your knowledge no doubt..However I have just opened systemui.apk by 7-zip>replaced png which I want>closed 7-zip..Thats it..Replace sytemui.apk at phone>Changed persmission.
Click to expand...
Click to collapse
In fact only pngs you can replace without decompiling but if you want to edit smali or XML files you have to decompile like Tam wrote.
xpirt

(Tutorial) How to Mod Dark look on PA 4 Custom Rom

Hi, this is my first tutorial mod for droid razr, i will share how to change black gradient looks on Paranoid Android Rom become to solid black like on Slimkat rom with TRDS mode On xD . Some people maybe use xposed framework and module but i try to mod the framework because i dont use xposed . This mod also affect on other apps which use holo dark background like root explorer, safestrap, calculator etc.
For this Mod you will need
- PA rom ( i currently use PA 4 beta 7 for umts spyder)
- Apk tool/apk multitool/Ricky Kitchen tool etc
- Notepad ++
- Winrar/Winzip
- Patient and brain LOL
1. First you must know how to decompile and compile APK, i am using Ricky Rom Kitchen for doing this but you can another apps too like APK Multitool, APK tool etc
2. Now time to mod, first take your framework-res.apk from rom (its located on system/framework) and decompile it
3. Now open with notepad++ >> framework-res.apk/res/drawable/background_holo_dark.xml
4. You will see this
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ff000000" android:endColor="#ff272d33"" android:angle="270.0" />
</shape>
5. Change android:endColor="#ff272d33"" with android:endColor="#ff000000" and save them
6. Compile it again but its not finish yet
7. Now on your apktool you will see unsignedframework-res.apk , open it with winzip and delete Meta-inf folder and androidmanifest xml and copy Meta-inf folder and androidmanifest.xml from original framework-res.apk
8. Rename unsignedframework-res.apk become framework-res.apk and copied back to your phone ( i recommend made a backup rom or just flashable zip framework-res.apk just in case if it failed and bootloop )
9. Now with Root Explorer copy your Framework-res.apk to the /system and set permission first RW-R-R and move it to framework folder, if its ask to overwrite answer yes
10. Reboot your phone and enjoy
this is how its look
credit :
- PA Rom for great work
- xda for great forum
- google for great machine lol
update with flashable zip, just instal it with your custom recovery
1. AOSPA Dark without crt animation >> https://www.dropbox.com/s/4v5wbap7da329be/aospa_dark.zip
2. AOSPA normal (back to original) >> https://www.dropbox.com/s/017fps0lzx0qcoe/aospa_normal.zip

Categories

Resources