[HOW TO] Compile/Decompile ICS Apk easily|100% working - Desire HD Android Development

We are all here to learn, take from community and give back to community!!!
@Lord ClockaN
Hya guys, after A LOT of requests, I decided to share with the community something that I found really REALLY useful for Dev's but also for other users too that want to mess up with compiling and decompiling process. Usually, non problems at all with that, but since ICS come out, many dev\users are not able to decompile\compile properly many ics apk (not all). This guide will ensure you a good result, 100% working, easy, and fastest way to mess up with ics for theming and resizing purposes, or whatever you want
BIG THX to my friend and Dev teammate @Bichon for this
Credits
@Bichon (yes, again)
@Xavierjohn22, the amazing author of AutoApktool! Visit his thread HERE, click his thanks button, and support his work with donations, and my personal thanks to author for this tool which is the most powerful and easiest tool ever.
@Brut_all for Apktool
@XDA Community
@Google
About Apktooll
Please consider to visit the original thread about this tool, because what I'm explaining here is just 1\10 of the real skill of this tool. You can do basically whatever you want with AutoApktool, themers will love it, Dev's will appreciate it a lot, I'm sure.
Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail.
Requirements (Windows environment, mine is Seven 64 bit)
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
SDK (last 3.0 version for ICS source code)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS!!!)
HOW-TO (NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version!!)
1) Download and simply unpack Auto_ApkTool 2.0.0
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to mess up with in "_INPUT_APK"
4) you can chose more than one option to decompile (option 6 is strongly recommended)
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, snali, or png, doesn't matter)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) you MUST sign the apk with option 10 (NOTE: drag the apk from dist folder to the prompt, then press enter, and in the SAME folder, a signedxxx.apk will appear)
11) Rename the apk, and push it |NOTE: you can push the apk with 62 option or with sdk typing:
Code:
adb remount
adb push xxx.apk system/app
adb reboot
That's it

NOTE FOR SAMSUNG USERS
Samsung changed some Hex value in the compiled dex code.
It has nothing to do with resources apks or anthing.
If you want to decompile those apks you have to do the follwing:
Using 7zip extract the classes.dex file from the apk and save it somewhere.\
Delete the classes.dex file from the apk.
Now you can decompile the apk using this tutorial.
If you want to decompile the classes.dex to edit the smali code, download baksmali 1.3.2 and smali 1.3.2 and use them to decompile and recompile the classes.dex.
After you recompiled the edited smali code, just drag back in the new classes.dex file you made.
this won't be fixed until Brut will make a new Apktool, or someone inserted the new baksmali/smali code into apktool
THX @Firefeds
When you're in trouble...try this one, you can apply the following method to the op too
Downloads:
http://code.google.com/p/smali/downloads/list
smali/baksmali editing v1.3.2
- Download both smali and baksmali v1.3.2
http://code.google.com/p/android-apktool/downloads/list
This is the latest apktool used to compile/decompile .apk.
Download apktool1.4.3.tar.bz2 and apktool-install-windows-r04-brut1.tar.bz2 for Windows or
apktool-install-macosx-r04-brut1.tar.bz2 and apktool-install-linux-r04-brut1.tar.bz2 for Mac. Follow the instruction on installation.
Step by step:
1. Extract the classes.dex from the desired apk.
2. Decompile it with baksmali v1.3.2 (for modding smali)
3. Recompile classes.dex with smali v1.3.2.
4. Decompile the apk with apktool (without classes.dex in the apk itself).
4a. Modify the apk however you want to, adding your changes.
4b. Recompile it with apktool.
5. Put the modified apk back into classes.dex.
6. Sign the apk.
thx @djolebih

You're the boss man ^_^
Great work.

great tutorial

zFr3eak said:
great tutorial
Click to expand...
Click to collapse
Thx my friend, I have a great team behind the scene

Awesome bro!
I shall include your insight on the official Smartdroid website too.
Keep it up your contribution to the DHD community is invaluable.

mattkle said:
Awesome bro!
I shall include your insight on the official Smartdroid website too.
Keep it up your contribution to the DHD community is invaluable.
Click to expand...
Click to collapse
thx bro, hope people find it useful, you too

Well done Mem!! This will be so much usefull when ICS Sense ROM will arrive for DHD!!

OrcoX1iSE said:
Well done Mem!! This will be so much usefull when ICS Sense ROM will arrive for DHD!!
Click to expand...
Click to collapse
Ics Sense rom is already available for dhd LOL
Thx anyway
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk

Great tutorial mate. As soon as I come home ill try. I am moving my theme to the ICS and I hope this works with samsung ics apps
All the best,
Vert
---------- Post added at 09:59 AM ---------- Previous post was at 09:43 AM ----------
It doesn't work with bloody samsung ics apps...
[*] C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

memnoc said:
Ics Sense rom is already available for dhd LOL
Thx anyway
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Click to expand...
Click to collapse
Really??? Where is related thread? The only one I've found have too much modules that doesn't work (e.g. wi-fi, gps), so I mean something usable!!!

OrcoX1iSE said:
Really??? Where is related thread? The only one I've found have too much modules that doesn't work (e.g. wi-fi, gps), so I mean something usable!!!
Click to expand...
Click to collapse
then u should have said "when a fully working ICS will come out"

Vertumus said:
Great tutorial mate. As soon as I come home ill try. I am moving my theme to the ICS and I hope this works with samsung ics apps
All the best,
Vert
---------- Post added at 09:59 AM ---------- Previous post was at 09:43 AM ----------
It doesn't work with bloody samsung ics apps...
[*] C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\040588\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Click to expand...
Click to collapse
mate make sure u have loaded all resources apk, then follow the errors, isn't a tool fault for what I can see...u edited some smali right?

thanks for all user would mod ics apk and thanks for put my name in OP..

BiCh0n said:
thanks for all user would mod ics apk and thanks for put my name in OP..
Click to expand...
Click to collapse
it's absolutely a pleasure, thx to you

Thanks for this great tutorial memnoc.
But when you create your own app you can checkout your project in eclipse or something like this. Ive read that this is for security that your app cant be decompiled.
Will this program decompile such apk's too?

0utl4wZ said:
Thanks for this great tutorial memnoc.
But when you create your own app you can checkout your project in eclipse or something like this. Ive read that this is for security that your app cant be decompiled.
Will this program decompile such apk's too?
Click to expand...
Click to collapse
can't follow u mate, give me an ex so i can understand what app r u talkin about

memnoc said:
can't follow u mate, give me an ex so i can understand what app r u talkin about
Click to expand...
Click to collapse
Is there a difference between market and system app? I'm talking about normal market apps, which you can build in java with eclipse. There is a choice to publish. I don't know the right name there. With this the apk should built that you can't decompile this. (So I read it)
But if there is a difference you can decompile all system apks without problems? This would be very nice

0utl4wZ said:
Is there a difference between market and system app? I'm talking about normal market apps, which you can build in java with eclipse. There is a choice to publish. I don't know the right name there. With this the apk should built that you can't decompile this. (So I read it)
But if there is a difference you can decompile all system apks without problems? This would be very nice
Click to expand...
Click to collapse
Guess yeah, but you should try, I don't create the tool i just posted a way to use it changing aapt and make it ready to use for you
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk

memnoc said:
mate make sure u have loaded all resources apk, then follow the errors, isn't a tool fault for what I can see...u edited some smali right?
Click to expand...
Click to collapse
I'm trying to decompile Contacts.apk and Phone.apk and getting same error message:
[*] C:\Android\AutoAPKTool2.0.0\_INPUT_APK\Contacts.apk
decompiling C:\Android\AutoAPKTool2.0.0\_INPUT_APK\Contacts.apk...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
I had this message in ApkManager 4.9, 5.0.
Not new to themeing. Done my fair share and never had problem decompiling apps.
Did try to decompile framework-res.apk and it went through without any errors or problems. However the Contacts.apk for ICS will not decompile.

Related

[Tutorial]How to decompile/recompile/Sign Whatsapp.apk

Hi everyone,
Working around in some apk's, I noticed that some apps are more tricky to work with.
I will show you in this tutorial how to decompile/recompile/Sign Whatsapp.apk
Requirements :
My Apktool -Yorzua Kit
Notepad++
I just added a complete KIT including all the tools in one folder.
no need anymore to use Openssl or change/move to another program.
to decompile :
Code:
apktool d <yourwhatsappname>.apk ( can be whatever name you give to your apk )
edit the xml/smali you want :
see my tuto here to give an idea how to edit the xml files and smali files with Notepad++ (Written on C++ and using Win32API, you will be able to easily change, copy, trace, find all the codes you will find in this guide ).
to compile :
Code:
apktool b <yourwhatsappname> ( can be whatever name you give to your apk )
to sign :
Code:
java -jar SignApk.jar testkey.x509.pem testkey.pk8 <yourwhatsappname>.apk <yourwhatsappname>_signed.apk
Those following screenshots are some examples of what you can achieve by decompiling - editing at your taste - compiling - signing an apk like Whatsapp
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Or even the 1st Whatsapp Transparent in the web !!!
I am quite busy at the moment but if you are interested on my work,
please visit my Whatsapp MODS Thread
Or my new tuto "Create your 9.png !"
http://forum.xda-developers.com/show....php?t=1511537
I thought it is a good addition to this whatsapp tuto, especially for the bubbles.9.png's​
Click on the thanks if it helps you as i do for each of you
If you come by my thread and like my work, i ask nothing more than a little thanks for the effort.
If you dont, then just give me credits if you use it.
Thanks for reading, i wish you a great day ☼​
Thanks bro
Sent from my GT-I9000 using Tapatalk
There is another way to sucessfully sign the apk without use of Open SSL to generate the key.p8 and certificate.pem files and without having to use SignApk.jar.
Auto-sign is another tool that eliminates the use of those steps.
First copy the official WhatsApp.apk into the Autosign folder
Change extension to zip and replace your pngs in the drawable folders
Be sure to delete the META_INF from the apk
Extract the edited and recompiled xmls from the modded apk created in Apk tool (res>layout)
Overwite the xml into the WhatsApp.zip in the Auto-sign folder
Return the Whatsapp extension to apk
Use sign.bat to sign the apk and you are good to go!
Auto-sign generates the key.pk8 and certificate.pem files automatically and applies them automatically to the apk, hence eliminating the necessity for Openssl and SignApk.jar... basically saves an extra step.
Works for me well
Easy Kit
cybermessiah said:
There is another way to sucessfully sign the apk without use of Open SSL to generate the key.p8 and certificate.pem files and without having to use SignApk.jar.
Auto-sign is another tool that eliminates the use of those steps.
First copy the official WhatsApp.apk into the Autosign folder
Change extension to zip and replace your pngs in the drawable folders
Be sure to delete the META_INF from the apk
Extract the edited and recompiled xmls from the modded apk created in Apk tool (res>layout)
Overwite the xml into the WhatsApp.zip in the Auto-sign folder
Return the Whatsapp extension to apk
Use sign.bat to sign the apk and you are good to go!
Auto-sign generates the key.pk8 and certificate.pem files automatically and applies them automatically to the apk, hence eliminating the necessity for Openssl and SignApk.jar... basically saves an extra step.
Works for me well
Click to expand...
Click to collapse
Way more simple than that >
I just added a complete KIT including all the tools in one folder
no need anymore to use Openssl or change/move to another program
I also includes Command.shell file which will allow you to directly type the commands from the folder directory ( very easy even if you are a noob )
Just follow the OP
Verba volant, scripta manent !!!!
More crap for this piece of s....
cybermessiah said:
@ Morrancos ... maybe read the actual posts prior to his comment.
One screenshot of the decompiling tool he uses and one screenshot of a successfuul modification AFTER I told him exactly what xmls needed modifying make him responsibile for me gaining a deeper comprehension of theming?
Click to expand...
Click to collapse
YOu told me which xml ? is it a ****ing joke ?
Since when i need you to know which xml to edit ?
I posted my screenshot here = 30th January 2012, 04:43 PMway before your post about xml ... here = 30th January 2012, 05:03 PM
And you wrote "told him exactly" ?
cybermessiah said:
FINALLY.
I was correct about it being those xmls!
Used APKtool to decompile and recompile with edits to those two xmls I suspected.
Click to expand...
Click to collapse
Here is my BLACK Whatsapp which required not less than 34 xmls in layout/drawable hdpi/values and 4 smalis to make it
YOU ARE TRULLY PATHETIC INSULTING ME AGAIN AS your "girlfriend" ....
I HOPE MODS WILL SEE THAT YOU ARE NOT HERE TO SHARE BUT ON YOUR OWN SELFISH ....
=====================================
just kept as we never know with those guys ...
how to use your easy manager package?
because in tutor you type "apktool d whatsapp.apk"
but in zip, no apktool.exe beside apktool.jar
I use "apktool.jar d whatsapp.apk" and it works..new folder created with res and smali inside it
But how to compile ?
Using "apktool.jar b whatsapp.apk" nothing happened
thanks
More clear
j1po said:
how to use your easy manager package?
because in tutor you type "apktool d whatsapp.apk"
but in zip, no apktool.exe beside apktool.jar
I use "apktool.jar d whatsapp.apk" and it works..new folder created with res and smali inside it
But how to compile ?
Using "apktool.jar b whatsapp.apk" nothing happened
thanks
Click to expand...
Click to collapse
We can always improve OP updated to be more clear for everyone
to decompile :
Code:
apktool d <yourwhatsappname>.apk ( can be whatever name you give to your apk )
edit the xml/smali you want :
see my tuto here to give an idea how to edit the xml files and smali files with Notepad++ (Written on C++ and using Win32API, you will be able to easily change, copy, trace, find all the codes you will find in this guide ).
to compile :
Code:
apktool b <yourwhatsappname> ( can be whatever name you give to your apk )
to sign :
Code:
java -jar SignApk.jar testkey.x509.pem testkey.pk8 <yourwhatsappname>.apk <yourwhatsappname>_signed.apk
Thanks, I got it
can you share, which xml that handle "group bubble" color in group chat?
which your black mod show grey
and also gradient bubble border (red-blue) ?
thanks
j1po said:
Thanks, I got it
can you share, which xml that handle "group bubble" color in group chat?
which your black mod show grey
and also gradient bubble border (red-blue) ?
thanks
Click to expand...
Click to collapse
Do you mind to point me what you need by a screenshot, please ??
Would be more easy for me
recent changes
Yorzua said:
Do you mind to point me what you need by a screenshot, please ??
Would be more easy for me
Click to expand...
Click to collapse
Where can I change contact list background color to black like picture above ?
1. Group chat "group bubble" color --> public/colors.xml ??
2. Bubble border gradient color -->forget it, found it on high-res/
thanks a lot man
Please ignore.......
j1po said:
Where can I change contact list background color to black like picture above ?
1. Group chat "group bubble" color --> public/colors.xml ??
2. Bubble border gradient color -->forget it, found it on high-res/
thanks a lot man
Click to expand...
Click to collapse
Thanks for the screenshot.
Both are 9.png files _ you cannot change the background of the group bubble with an xml, same story for the border of the bubble
I did from scratch those bubbles.9.png ( nightmare of some themers )
I will have to publish in xda a real, clear, short, illustrated TUTO "how to create 9.png files" but i am missing time actually.
Maybe i can change them for you tomorrow if you post your wishes
example of my last work
Recent work on the latest version : WhatsApp_DARKYorzua_2-7-3169
thanks
people asked me for more panoramic view of my dark theme so here it is
Thanks guys for your support _ feel free to post your questions in my tuto to make benefit all the coming members
Yorzua said:
Recent work on the latest version : WhatsApp_DARKYorzua_2-7-3169
Click to expand...
Click to collapse
Man, you've gotta good thing going overhere, (Carbon Fibre look) went to your site this is realy, realy awesome finally some great explanation about theming and such.
Dude you just rocked my world and i'll be reading and trying now for a while.
thanks for your effort and please go on doing what you do.
Thanks
DirkTeur Velserbroncx said:
Man, you've gotta good thing going overhere, (Carbon Fibre look) went to your site this is realy, realy awesome finally some great explanation about theming and such.
Dude you just rocked my world and i'll be reading and trying now for a while.
thanks for your effort and please go on doing what you do.
Click to expand...
Click to collapse
Thanks a lot for your appreciation
Feel free to ask me any help you need.
I am living in Delft actually so if we meet in the trains, could share my dark mod with you ( screenshot updated just below )
I like to share my recent work screenshots
Fijne dag meneer ☼
Thank you very much for the tutorial!
seimu said:
Thank you very much for the tutorial!
Click to expand...
Click to collapse
Glad i could help you
amazing theme, a very good job.
as you do to change the background and font color of your chat list ¿? also with the xml ¿?
I applaud you
xml code
seimu said:
amazing theme, a very good job.
as you do to change the background and font color of your chat list ¿? also with the xml ¿?
I applaud you
Click to expand...
Click to collapse
thanks for your appreciation but no need to applaud me, your themes are good too
You can edit few xml in order to set the background as a unique color :
android:background="#<hexadecimal color code you want to display>"
or as a png you create and place in drawable-hdpi :
android:background="@drawable/<the png name you want>"
or as a predefined style :
android:background="@style/<name of your style>"
For the font color of the chat list, just edit the color in :
conversation_text_row_left
conversation_text_row_right
date/name/font color of you/answering contact can be setup as well in the same section
Hope it helps you and unfortunately those bastards who are now enjoying my tuto and insulting my name at the same time

[10.30.12][TOOLS][TUTS]Let My People THEME!!![WIP]

I would like to see everyone getting evolved with personalizing there phone to their liking. Minor theming is not hard at all (i can do it lol). But its opens a door to what can be done with alot of effort from you. We wont have this phone forever, and it is a difficult one to mod, so by starting on this one it should only get easier... right?
Im gonna be stepping back on theming and mod investigations for a few weeks, im still in process of moving and everything is getting packed soon, un packed when house is ready in couple weeks.
These are necessities for tools to start customizing your rom.
(please correct me if any info is incorrect )
Note: I run WIN764 so these main links are for windows. I will link original threads for other OS'. Also with label em.]
[ENVIRONMENT]
Android SDK http://developer.android.com/sdk/index.html
EASY TUT: HERE - just make sure you use our phones drivers
Thats the basic environment. [with go further later on]
[NEW]
Virtuous Ten Studio [Windows Only] - Been watching its development for a long time, its finally available and creating new standards.
[APKTOOLS][must have environment set up.]
Trailblazer101's Custom Framework Maker : Best Tool for our phone! Keeps getting better, now with apktool and Update.zip support!
APK EASY MANAGER [OP] : NEW! Very simple UI, Decompile/Recompile apks.
Apk Manager 5.0.2 [OP] : Great Tools, has options. [NOW APK-Multitool]
Apk Mutli-Tool [OP] : I used this one the most for mutliple edited apks.
Apk Changer [OP] : Best tool for editing one apk at a time, only one i use for .jars.
[THEME TOOLS]
I.D.i.O.T : Theme DataBase [NEW FEATURES]
Auto Theme Porter [OP] : Used to port themes [.pngs/.9s only] that have same file names, works great for froyo to froyo port. GB and ICS have to do by hand with name changes etc. This is easy way of porting images, you will still have to edit xmls.
[EDITOR TOOLS]
7zip : Oh so essential for apks!
Notepad++ : Needed to edit XMLs.
To be continued....
Theme guides
These are great guides to share, all have basics but great to cross reference for troubleshooting.
Theme Porting Guide : Generalization how-to. [Remember we dont have SystemUI.apk, So most of those systemUI xmls are in your Framework-res.apk and Twframework-res.apk]
The Ultimate Themeing Guide : Pretty much all-in-one guide.
Android Developers Guide : Android Bible. Harder to read though.
Basic .PNG changes:
Advanced .PNG changes:
Creating/Editing .9s: This one still i have not mastered.
XML Edits: [Text colors - Personalize System text - Landscape for any apk]
To be continued....
Future TrailBlazer101's Custom Framework Maker Tut!
Themer built in mods tut
Step 1: adb installed and in path
Step 2: download themer and unzip
Step 3: connect phone to pc and dbl click batch file in themer folder.
Step 4: pull current framework (or drag framework-res.apk into batch and select M)
Step 5: mod (x is softkeys and clock colors etc)
Step 6: make themed apk and cwm
Step 7: push and reboot recovery
Step 8: flash in cwm, reboot
PicTutorial: [download zip file below for all imgs]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/code]
Themer decompile mods
Soon
hopefully this is enough space for other resources etc...
Sweet. One stop shop for those who wanna try it. Good job.
great..
i wanna start from this thread to learning
i'm wait ur updates Ciscogee
---------- Post added at 01:07 AM ---------- Previous post was at 01:02 AM ----------
great..
i wanna start from this thread to learning
i'm wait ur updates Ciscogee
ian_ajah said:
great..
i wanna start from this thread to learning
i'm wait ur updates Ciscogee
---------- Post added at 01:07 AM ---------- Previous post was at 01:02 AM ----------
great..
i wanna start from this thread to learning
i'm wait ur updates Ciscogee
Click to expand...
Click to collapse
What rom and os are you running? Ie. Froyo or gingerbread?
Also what all are you trying to accomplish?
Sent from my SCH-I400 using xda premium
ciscogee said:
What rom and os are you running? Ie. Froyo or gingerbread?
Also what all are you trying to accomplish?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
i use gingerbread CM7 stable version on my HTC Sense
can i make this tuts to editing an widget,ex : fancy widget..?
i wanna try to edit/make some clock skins/weather skins and apllying on fancy widget first..
can u help me?
ian_ajah said:
i use gingerbread CM7 stable version on my HTC Sense
can i make this tuts to editing an widget,ex : fancy widget..?
i wanna try to edit/make some clock skins/weather skins and apllying on fancy widget first..
can u help me?
Click to expand...
Click to collapse
IF you are looking at skinning, I would say most of your edits will be in xml files.
There will be an apk associated with the widget. I would start by decompiling that, using apkmanager (That is my preference. I haven't played with any of the programs ciscogee is recommending) and starting with simple PNG edits. Then work your way up from there.
Txwolf1980 said:
IF you are looking at skinning, I would say most of your edits will be in xml files.
There will be an apk associated with the widget. I would start by decompiling that, using apkmanager (That is my preference. I haven't played with any of the programs ciscogee is recommending) and starting with simple PNG edits. Then work your way up from there.
Click to expand...
Click to collapse
wow..nice..i'll try first..
if i'm getting problem,i'll be back here,lol
One thing I forgot to mention. You will need to install the SDK, java dev kit., and have adb in your path, to use apkmanager. Ciscogee has a tut linked in the op for that.
so
do i have to edit the xml's if i change the button colors
katypeaceperry said:
do i have to edit the xml's if i change the button colors
Click to expand...
Click to collapse
Now you are starting to learn what to ask. No, you don't. Xml controls what images are shown, where they appear on the screen, and the text colors and sizes. But changing the actual colors of the buttons themselves doesn't affect the xml.
Dished out by my dumb digits
Anyone getting to themeing? Don't be afraid to ask questions. Would love to see what chall have done.
Sent from my SCH-I400 using xda premium
aws:
●๋•ηι¢є ιηƒσ●๋•
•°•♡ⓣⓗⓐⓝⓚⓢ♡ •°•
Sent from my GT-S5670 using xda premium
Virtuous Ten Studio - The next level of editing apps
added to OP
Its for windows only and just try it out, all credit to the makers and all that...
Having problems with .9 images...trying to theme the status bar so I replaced the images thru 7zip, and flashed it and my status bar doesn't change at all..idk why its doing this?
Sent from my SCH-I400 using XDA
Having problems with .9 images...trying to theme the status bar so I replaced the images thru 7zip, and flashed it and my status bar doesn't change at all..idk why its doing this?
Sent from my SCH-I400 using XDA
Click to expand...
Click to collapse
Unzip the apk with the imgs u want to port.
Then open your apk you want to mod with 7z
Drag imgs from port apk to the 7z window and replace.
Make sure they have the same name.
Are the imgs also hdpi?
Close 7z window and save changes etc.
Put your apk in a flashable zip.
(Use trailblazers themer, [copy apk in same folder as batch and drag into batch, follow on-screen instructions. ])
Flash in cwm
Clear cache and dalvick.
Reboot
Sent from my SCH-I400 using Tapatalk 2
ciscogee said:
Unzip the apk with the imgs u want to port.
Then open your apk you want to mod with 7z
Drag imgs from port apk to the 7z window and replace.
Make sure they have the same name.
Are the imgs also hdpi?
Close 7z window and save changes etc.
Put your apk in a flashable zip.
(Use trailblazers themer, [copy apk in same folder as batch and drag into batch, follow on-screen instructions. ])
Flash in cwm
Clear cache and dalvick.
Reboot
Sent from my SCH-I400 using Tapatalk 2
Click to expand...
Click to collapse
Yes I did it exatcly like that and it doesn't change it.
Sent from my SCH-I400 using XDA
What are you trying to change?
Screenshot please
Sent from my SCH-I400 using Tapatalk 2

[Q] Theming TouchWiz... Can't find some of the files/other issues

I am currently theming the TouchWiz on ICS to look more like ICS. This is what I have so far:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The two things I'm currently having is that
1) I'm not sure how to safely theme the button that says "Clear" when you have notifications. The files look a bit weird and have shadows on them.
2) I want to make the status backgrounds black (Info, USB connected for example). I've looked around, but all the images mentioned don't exist in the SystemUI or framework-res apks.
You'll need to edit /system/framework/twframework-res.apk as well.
I'm more curious how you were able to get the framework files to recompile. I wasn't able to without APKTool spitting out tons of of errors. I've even updated to the most recent aapt.bat file and I still get nothing but errors.
wretchedlocket said:
You'll need to edit /system/framework/twframework-res.apk as well.
I'm more curious how you were able to get the framework files to recompile. I wasn't able to without APKTool spitting out tons of of errors. I've even updated to the most recent aapt.bat file and I still get nothing but errors.
Click to expand...
Click to collapse
I am using APK Manager... It's somewhere here on XDA.
I looked in twframework-res.apk but it didn't look like anything that was it was in there.
Jessical said:
I am using APK Manager... It's somewhere here on XDA.
I looked in twframework-res.apk but it didn't look like anything that was it was in there.
Click to expand...
Click to collapse
I've done a lil theming on GB with the skyrocket. twframework.apk has the images for the status bar. Its going to be a .9.png and remake it the way you want. Going to haves to use draw9patch its with sdk. I can help if needed. Pm me of you want.
Sent from my SAMSUNG-SGH-I727 using xda premium
APK Manager was throwing the same errors. All errors with the public.xml and strings.xml files. I just downloaded the deodexed ROM so I'm going to see if that makes a difference.
Sent from my cm_tenderloin using Tapatalk
By the way, I have themed SystemUI, framework-res.apk and twframework-res.apk for GB if you'd like the files. PM me and I can send them or setup a download for you guys.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Jessical said:
I am currently theming the TouchWiz on ICS to look more like ICS. This is what I have so far:
The two things I'm currently having is that
1) I'm not sure how to safely theme the button that says "Clear" when you have notifications. The files look a bit weird and have shadows on them.
2) I want to make the status backgrounds black (Info, USB connected for example). I've looked around, but all the images mentioned don't exist in the SystemUI or framework-res apks.
Click to expand...
Click to collapse
ICS has changed a lot of the theming layouts and changed the backgrounds from images to color codes. You can change the color codes by editing the XML in the drawable folders or you can redirect them back to using images. Look at the status bar expanded XML in the layout folder of the system UI and that will lead you to where you need to look
zelendel said:
ICS has changed a lot of the theming layouts and changed the backgrounds from images to color codes. You can change the color codes by editing the XML in the drawable folders or you can redirect them back to using images. Look at the status bar expanded XML in the layout folder of the system UI and that will lead you to where you need to look
Click to expand...
Click to collapse
Most of it is jumbled though...
Jessical said:
Most of it is jumbled though...
Click to expand...
Click to collapse
You need to decompile the apk to see the xmls. Just unzipping them will no longer work.
How are you guys getting the TW apks on ICS to decompile correctly? I have tried to decompile the Camera.apk and Contacts.apk from a deodexed rom and both apktools and APK Multi-Tool just throw me the error "Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00". It always works fine with the GB TW apps... Maybe I will give it a try on Ubuntu quick.
But any insight on this would be wonderful.
bigjp64 said:
How are you guys getting the TW apks on ICS to decompile correctly? I have tried to decompile the Camera.apk and Contacts.apk from a deodexed rom and both apktools and APK Multi-Tool just throw me the error "Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00". It always works fine with the GB TW apps... Maybe I will give it a try on Ubuntu quick.
But any insight on this would be wonderful.
Click to expand...
Click to collapse
Have you installed the proper frameworks with apktool? Also at the moment there is a special set up for working with ICS apks. A search for decompiling ICS will get you there
zelendel said:
Have you installed the proper frameworks with apktool? Also at the moment there is a special set up for working with ICS apks. A search for decompiling ICS will get you there
Click to expand...
Click to collapse
I did have the proper framework installed, I guess I was just using a version of apktool.jar that didnt work with ICS apks. Got it to work though. Thanks!

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, for making how to decompile and recompile .jar files,soon
Reserved 2, if I get time I wil add a video tutorial too!
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
x.r3y said:
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
Click to expand...
Click to collapse
That's the decompiling ment for !
StAnLiN
stanlin salu said:
That's the decompiling ment for !
StAnLiN
Click to expand...
Click to collapse
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Aeron sagar said:
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Click to expand...
Click to collapse
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
yes bro apk in dist but it gives bootloop ...
Aeron sagar said:
yes bro apk in dist but it gives bootloop ...
Click to expand...
Click to collapse
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Aeron sagar said:
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Click to expand...
Click to collapse
Haha, don't worry that's not an error, the path of dist was manually set so u get that message, actual 'errors' u will get under these note (if u have committed any error in editing), if get only these messages then ur apk is successfully recompiled :thumbup:
Sent from my Xperia Live with Walkman using Tapatalk 2
Teach me
guys i dont even get a stightest idea to decompile and recompile......... is there any application which can look into .apk files and also allow it to edit???????
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Ben Ling said:
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Click to expand...
Click to collapse
i dont see any error in it...its done recompiling ...
ya the size will be reduced based on ur apk tool compression level
while recompiling it shows error,.... "destination could not be found "
Thank you very much for the tutorial.. very helpful... :laugh:
I don't think so it works for JB
Can't decompile SystemUI of JB.
[*] "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"
decompiling "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Click to expand...
Click to collapse
androidnerd2 said:
I don't think so it works for JB
Can't decompile SystemUI of JB.
Click to expand...
Click to collapse
try this both update ur aapt or install the proper framework's first
thank her tutorial ata friend
Sent from my Xperia Tipo using XDA Premium 4 mobile app

[APP] [TOOL] ApkTool in Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
An All in One App To De-Compile , Re-Compile , Extract Meta-inf Folder , Add Meta-inf Folder , Sign , Zipalign , Jar to Dex and Dex To jar & Many more (Even All Lollipop Apps SDK 21) Right in Your Phone or tablet , No needed for a PC Anymore
This app is a continue for The open spurce ApkTool and with many imrprovements like adding Apktool v2.0 and many more So cridit for main application goes to chinese sources and people from AG Who worked Before me on This​
*some people having issue with installing this as a regular app , for faster operation on decompile recompile recommended to manually push it to system apps or either patch to android signature ..
Small request : if anyone have a good key for sign please sign it and give me the key to use for next releases..
works for ArmV7 Devices
i will be glad if my App Be sticky in Developers Android hacking forum​
ApkTools Is a well Known Android Reverse Engineering Tool that decrypt/translates an app or system apps To human language Code
I made this app for my personal use now im sharing with you
it have Latest ApkTool v2.0 and other versions could be find in about , you can use two different apk tool
you can optionally decompile Dex or decompile resources only
And many other futures , even more easy than a PC
Just Import Frameworks And youre good to go
you may need a good cpu for faster Decompile/recompile consumed time will be shown
Custom motifications for jobs are implemented
Download :
v4.7 :
Download From Mega
I didnt share this to earn anything just to help people and easier developement , tell me if im wrong, i dont know the exact Cridits tell me and i will add to OP
Donations Welcome For Donation Plz Email/PM me
Plz Don't Ask Compile , Decompile related help questions and ApkTool related stuffs
XDA:DevDB Information
ApkTool For Android, Tool/Utility for all devices (see above for details)
Contributors
HAYLCION, ApkTool
Version Information
Status: Stable
Current Stable Version: 4.7
Created 2015-05-23
Last Updated 2015-05-23
Awesome work bro.. I always find this kinda app... Great :good: :good:
metaspook said:
Awesome work bro.. I always find this kinda app... Great :good: :good:
Click to expand...
Click to collapse
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
HAYLCION said:
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
Click to expand...
Click to collapse
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
metaspook said:
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
Click to expand...
Click to collapse
So where else? I like your jobs they're hady , thumbs up for the busybox you shared !
It won't let me install on my m9
ahrion said:
It won't let me install on my m9
Click to expand...
Click to collapse
Push to system/app if youre on armv7
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
This is screen shot of the original dialer.apk
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Nhien Nguyen said:
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Click to expand...
Click to collapse
Can you post the full log.
ndrancs said:
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
Click to expand...
Click to collapse
No i forgot to change it in app its not rc3 its the latest v2.0.0 final that works wor lollipop flawsly too
ndrancs said:
This is screen shot of the original dialer.apk
Click to expand...
Click to collapse
Yeah it supports that you Have to adjust Min max sdk in apktool.yml if not recompiles but what you showed is about signature
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
bdizzle1686 said:
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
Click to expand...
Click to collapse
Copy err log and send, i can tell you
Hi dev and thank you for your work.
I'd like to decompile HydrogenOS launcher apk, include in it OxygenOS framework and recompile hoping it could work on other AOSP based rom and not only in OxygenOS.
I'm a noobe and I was just wondering: is that possible? And, can I do this completely with your tool?
Thank you so much
mega link is dead... please reupload
Download link problem
Download issues still. Anyone have a copy of this?
for me brut broo -_- when I dc my systemUI

Categories

Resources