The Ultimate Theming Guide - Samsung Galaxy SL i9003

This is NOT my work. I didn't create it and I don't understand a lot of things written here. This is Jairomeo, Manup456, ArmyRanger251, Stericson, Brandenk, SirMez, Beagz and david1171_'s work. I only share with u so don't ask me questions because I will probably not be able to answer them.
CONTENTS
1 What tools do you need?
2 The Basics
2.1 A How to from BrandenK
3 The Infamous .9.png
3.1 What is a .9
4 XML Files
4.1 List of Files to ediT
4.2 Examples of xml editing
4.3 Links for XML edits
5 Smali Files
5.1 A lesson in 1’s complemenT
6 MetaMorph
7 Zipalign
8 Signing
9 Other modifications
10 Other Resources
Appendices
A Appendix A – XML Edits How to by Stericson
B Appendix B
The guide HERE

Im be the frist to say Thanks!!!... gracias por compartir, compa!!!....

@luiseteyo
is that the guide you follow to make your themes??

chinmay_7d said:
@luiseteyo
is that the guide you follow to make your themes??
Click to expand...
Click to collapse
I dont make themes
Sent from my iPad using Tapatalk HD

Related

[TOOL] Automated Smali and BakSmali

Everytime I used smali or baksmali, I always had to go to the XDA post that described the correct usage...so I made simple batch files to speed up the process and figured I should share with the community.
Extract the .zip below, run the "smali.bat" or "baksmali.bat" batch files, and follow the instructions...they should be self explanatory.
This is obviously for Windows...don't ask for other versions, I'm not a programmer. These are the latest smali and baksmali versions (v1.2.6 released 12/23/2010) as well.
AutoSmali v1.0 | Download​
(Hope this post is in the right forum?)
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
xHausx said:
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
Click to expand...
Click to collapse
not sure what you mean?...this is just an automated script for decompiling/compiling the .dex files (usually within .jar files)
what exactly are looking to do with an .apk? sign it?
this is pretty cool ... thanks
Hey!
Thanks for this! Really helps alot!
But can you make it compatible with v1.2.7? http://code.google.com/p/smali/downloads/list
Thanks!
xHausx said:
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
Click to expand...
Click to collapse
hmmm...weird, i had the same issue , then i found the correct cobination of framework files for aptool, that now it builds as easy as one two three.
Did you makes sure you used the original meta-inf folder from the original apk, pm me if you ever need help.
Nice work. .:thumbs up:.
for this to work for the newer versions of smali/baksmali
just change .bat to .txt and edit the place where it says 'smali-1.2.x.jar' to the new version.
that should work.
i still dont know how the hell to do anything with a .smali file but i atleast know how to do that!
hit thanks if that helped
link down
schmittx said:
AutoSmali v1.0 | Download
Click to expand...
Click to collapse
dead link. try:
http://www.mediafire.com/?d5ruxexq15d1pje

Decompiler

Hello, I want to decompile my framework-res apk so I can possibly add a battery that displays percentages. Is there any program out that will let me do this?
Sent from my Xoom using XDA Premium App
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
No offense taken. I am in the process of teaching myself these things so Google and xda are my best friends. Thanks for the reply
Sent from my Xoom using XDA Premium App
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
Is it possible to read the Stat sys battery XML? I've been reading on how to decompile the files but no real help with this really
Sent from my Xoom using XDA Premium App
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
zone23 said:
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
I will offer to help you out.
1. Install latest SDK from http://Developer.google.com & Eclipse.
2. Search for apktool and unzip files into the SDK folder under platform_a DB
3. Buddy fix apktool with attached files. You will need to rename these files to Apktool, etc..
4. Copy framework-res.apk, systemui.apk, settings.apk, and launcher2.apk from \system + copy the odex
5. Run apktool d framework-res.apk (do this for each apk)
6. Look in the Res/drawing folders for images to mod.
Now you have the .9.png files with marks & the decompiled XML for reference.
Use Photoshop to modify the files.
Use draw9patch to compile any .9.png files
This is really important. Use 7zip or any other zip app that allows you to open and view an apk as a zip without actually unzipping it. Just copy the new photo files in and add them to an update.zip (you can download this from XDA Xoom Development thread) or use a DB to push the updated files to the Xoom.
Theaming is a subject but that's the basics. I can't upload files for newapktools.zip right now but will edit this when I get home later. Alternativly, maybe someone can post the patched up Xoom compatible apktool files. They are also in XDA theaming thread if you search.
Hth
Sent from my Xoom using XDA Premium App
nbeebe24 said:
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Yes I can you need Java JDK installed:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eventually you will need Eclipse and I use Gimp because its free and doesn't break any .png files.
http://www.eclipse.org/downloads/
IDE for JAVA Develpoers search youtube for a video on how to set it up for android.
http://www.youtube.com/watch?v=ZoWVeXizfbo
I use Notepad++ to edit XML
http://notepad-plus-plus.org/download
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
nbeebe24 said:
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
zone23 said:
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
Click to expand...
Click to collapse
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Hey nbeebe24, check out my post over here: http://forum.xda-developers.com/showthread.php?t=1063657
This should help you decompile/recompile framework-res.apk for your mod. I look forward to seeing your results
nbeebe24 said:
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
you tryed this tool
Code:
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://forum.xda-developers.com/showthread.php?t=928864

[Q] CM 6 Theming

Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
AyDee said:
Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
Click to expand...
Click to collapse
Hi,
You dont need to sign regardless of OS if you are only swapping images for system files. But remember to use optimized pngs and zipalign as final step to minimize resources consumption.
If you are modding any resources.arsc you need to decompile to do that and recompile and sing accordingly.
Ok, thanks- just making sure... the winrar message threw me off...
AyDee said:
Ok, thanks- just making sure... the winrar message threw me off...
Click to expand...
Click to collapse
try 7-zip.....hope seeing themes from u soon....

[Q] Help with battery mod

Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
Sorry, but it's a bit more complicated than just opening the .apk in 7-zip or winrar. You need to decompile the .apk... the easiest way is to use a program called apk manager. Search on XDA, and you will find it.
Then, in the decompiled folder, you will have a /drawable/ folder. You need to re-code the stat_sys_battery.xml to include all the pngs, as well as the zzz_stat_sys_battery_1.xml.
In addition to the 100 pngs you already have, you will also need some charging animation icons and a stat_sys_battery_unknown.png icon that all match your battery icon theme.
After redoing the 3 xmls in the drawable folder, and replacing all the necessary pngs, you then need to recompile and sign your apk with the new files.
I've attached a sample of the 3 xmls for you to use as a reference.
If you are looking to get a battery mod the quick and easy way, then I have a bunch in a thread HERE. If you are looking to learn how to do it yourself (Which I highly recommend for the learning experience it will provide), then search around and look for some guides on compiling and decompiling to help you on your way. You can also download any of the battery mods from the thread I linked to, and decompile them for examples of a working framework-apk that has been modded.
Keep in mind, when experimenting with this, you ABOSLUTELY WILL cause your phone to not be able to boot up. Make sure you have a nandroid backup ready.
Good luck.
Thank you!
Wow, this is gonna take a bit longer than i though B)
Btw, i was using one of your mods, but i found that it wasnt smooth enough + the icon didnt have enough detail
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
go to first link on my sign download a batt mod open framework and use it...
lalitsehgal21 said:
go to first link on my sign download a batt mod open framework and use it...
Click to expand...
Click to collapse
Thanks, but no thanks B)
I think will try to learn how to do it my self

(Q) how to compile and decompile apk???

There is so many guides in xda forum about compiling and decompiling apk.. but none of that working 100% easy way.. i tried apktool, apkmulti tool, Virtuous Ten Studio (VTS) and some other tool... developers please give a link.. or guide me how to decompile and compile an apk easy steps..
Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus
Dark Nexus said:
Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus
Click to expand...
Click to collapse
All aside from the apk tool is not downloading. Any other option?
Sent from SgY Evo-x 4.2 using xda-developers app .... btw, i'm a girl, don't call me sir... ;p
Here is direct download link http://apktool.googlecode.com/files/apktool4.1_armhf.zip
Hit thanks if you like
Dark Nexus
with apktools i can easyly decompiling apk.. but problem in compiling.. can anyone guide me how to compile apk..

Categories

Resources