hi
i made a bash script (linux only)! that converts a RC33(old) Theme into a ADP1.1(old) Theme
use it as a nautilus script !
it unpacks the standard ADP1.1 theme (which is needed)
then it basically unpacks the theme and and every app in it ...
and copy's the :
-res/drawable
-res/drawable-finger
-res/drawable-port
-res/drawable-land
-res/drawable-land-finger
...folder into the standard theme
then it packs it all and sings everything
actually it does that one by one ^^
it works ...!
but that can easily be changed
the version here is a beta ... i will add the ability to convert to RC9
and clean it up
############ Update
version 0.8.3
-no with error messages (doesn't cover everything)
pre 0.8.3
-now you can choose the desired version and source version!
from: ADP1.1, RC33, RC9
to: ADP1.1, RC33, RC9
-framework is not copyed as a whole any more insted only the res folder
-bug with slider/tab thingy solved
note: i can not validate the RC33 or RC9 themes
#########
############### themes
i am not the creator of these themes!
hail to the creator!
if you are the creator of one of these themes and don't want it to be here tell me!
i will take them of and delete the file from the hoster!
SoloRemix:
by: soloxp
original post: http://forum.xda-developers.com/showthread.php?t=495769
ADP1.1 converted with ATC_0.7 :http://rapidshare.com/files/216678650/SoloRemix_RC33.zip.ADP1.1.zip
RC9 converted with ATC_0.7 :http://rapidshare.com/files/216678651/SoloRemix_RC33.zip.RC9.zip
Vekktor jf1.42 rc33:
by: RandumAccess
original post: http://forum.xda-developers.com/showthread.php?t=496794
ADP1.1 converted with ATC_0.7 :http://rapidshare.com/files/216678652/Vekktor.zip.ADP1.1.zip
RC9 converted with ATC_0.7 :http://rapidshare.com/files/216678657/Vekktor.zip.RC9.zip
GlossSuite:
by: MOONSSPOON
original post: http://forum.xda-developers.com/showthread.php?t=480432
ADP1.1 converted with ATC_0.8.3 :http://rapidshare.com/files/219305311/RC33_glossySuite.zip.ADP1.1.zip
RC9 converted with ATC_0.8.3 :http://rapidshare.com/files/219305312/RC33_glossySuite.zip.RC9.zip
comment: i know .. the file name is misspelled ...
pleas tell me which you would like to see here... just post the name of the theme and if you are very nice a link to the original post ^^
###############
######### instrctions how to use the script
with these instructions all apk/zip are being signed with the test keys ...
that should work with the jf-build ...
#########
what u need:
-linux(gnome, nautilus, zenity, java ...)
-if u want to convert to RC33 u need a working RC33 theme (take the original)
-if u want to convert to ADP1.1 u need a working ADP1.1 theme (take the original)
-if u want to convert to RC9 u need a working RC9 theme (take the original)
(look here http://forum.xda-developers.com/showthread.php?t=468436 RC9 is on the page 6)
-get the androidMod.zip (http://android-dls.com/forum/index.php?f=24&t=191&rb_v=viewtopic) and unpack it somewhere
If you use this AndroidMod.zip, pls remove "SignApk\" from this three files:
signapk.jar
testkey.pk8
testkey.x509.pem
Click to expand...
Click to collapse
-copy the script into he nautilus script folder (home/.gnome2/nautilus-script)
-rename the scipt to "AndroidThemeConverter" or whatever ...
-make the script executable!
-NOW when you start it the first time you will have to go throu a config, just watch the window title
-right click on the theme to convert Scripts>AndroidThemeConverter
###########
lad
ps if u made a theme and want to allow me to convert it and post it feel free to tell me
Hey you have my permission with Dark Knight but instead of posting it can you send it to me so I can do the xml edits?
Hey bud, would you be able to do any conversions? Can't speak for anybody else, but I don't have a system with Linux on it.
can u make a script 4 adp to rc 33?
jdwme said:
Hey you have my permission with Dark Knight but instead of posting it can you send it to me so I can do the xml edits?
Click to expand...
Click to collapse
sure i can .. do the xml have a different "layout" in the different versions?
if not i can easily copy them to .. are all necessary or just special ones?
if they look different what makes them ... maybe i can change that in the script to
Hey bud, would you be able to do any conversions? Can't speak for anybody else, but I don't have a system with Linux on it.
Click to expand...
Click to collapse
guess so ^^
can u make a script 4 adp to rc 33?
Click to expand...
Click to collapse
i'll make one where u can choose the desired version !!UPDATE!! : it is done! see the first post
stay tuned ^^
wow! i didn't even know it could be done that simply, now when i release my next theme i can release it as ADP and RC version. also since no one seems to care about the RC8&9 try to make a script that converts to RC9 as well. i haven't even looked at RC9 so i am not sure what is needed but since you were able to write this script you should be able to do that. i'll be using your script with my next release(don't worry i will give you credit)
lad1337 said:
i'll make one where u can choose the desired version
stay tuned ^^
Click to expand...
Click to collapse
Fantastic!! thanks for this. I am wanting to change over to RC33 due to market issues but would love to take me favourite theme with me
how do u use this??
Nice one, i was looking into making one but didnt know enough about bin/bash coding. Power to linux!!
Chris
confused as hell sounds interesting though....with this are we able to use themes on unrooted phones now?
When will the converted theme's be up here in this thread?
Almost at the point of going to RC33, because a lot of good theme's are not ADP 1.1h compatible
If you use this AndroidMod.zip, pls remove "SignApk\" from this three files:
signapk.jar
testkey.pk8
testkey.x509.pem
else it will not work
Good work lad1337
I cant believe I didnt see this thread earlier! It wont copy xml edits and such but it will get the main stuff, I love it, thank you so much! I knew the virtual linux install would be useful again. lol
are the xml edits different for rc33 and adp? ie. you can't just manually copy them across?
xml
MontAlbert said:
are the xml edits different for rc33 and adp? ie. you can't just manually copy them across?
Click to expand...
Click to collapse
not realy sure ... if i copy the whole res folder .. the system doesn't start, so yes!
but the xml from the framework are now (vers 0.7.3)beeing copied! (acually the whole res folder!)
what xml are essential ... which one should be copied, should i try first?
i am working on the xml though ..
and a "config dialog"
and maybe on a theme merge!
lad
lad1337 said:
i am not the creator of these themes!
hail to the creator!
if you are the creator of one of these themes and don't want it to be here tell me!
i will take them of and delete the file from the hoster!
Click to expand...
Click to collapse
I have no problem...I do it for the ppl.
Error?
Whenever I attempt to convert theme, it outputs an empty 5.5kb .zip with the same title
I've edited in all of the correct directories any idea what's causing this?
I'm running Ubuntu 9.04 beta
would it be possible to convert stericsons impossible theme?
http://forum.xda-developers.com/showthread.php?t=493187
indiekid97 said:
Whenever I attempt to convert theme, it outputs an empty 5.5kb .zip with the same title
I've edited in all of the correct directories any idea what's causing this?
I'm running Ubuntu 9.04 beta
Click to expand...
Click to collapse
ok ... .. the singing part works (otherwise there wouldn't be anything ) which means
the temp2 folder is empty .. which means ...the the default theme isn't unpacked .. ...you can use the script also in the shell just pas the theme to convert as the first argument .. what fails?
and you can also comment out :
rm -r temp1
rm -r temp2
should be somewhere at the end ..
what is in the temp2 and temp1 folder ..?
ps how is 9.04 beta ..waiting for the final .. i'm on 8.10
JackD3ath said:
would it be possible to convert stericsons impossible theme?
http://forum.xda-developers.com/showthread.php?t=493187
Click to expand...
Click to collapse
i would give it a try but i cant find the download ..
still not all xml edit would survive ...
by the way thanks for the sticky!
lad
Attempting to convert RC33 themes to RC9,
I've setup a VM running Ubuntu 8.10 and installed Java. The script runs fine and chucks out the zip. I rename it update.zip and copy it to my SD Card, however when I try to flash it, it fails the verification and throws this error:
wrong digest app/Sync.apk
Verification Failed.
Any ideas? Really want to get the BUUF darkbrown theme working
Related
I got this idea from a thread where someone was asking for a certain icon pack and I suggested to go one by one and grab the icon from each apk. I then thought to myself that this could all be automated. So here it is:
Ultimate Extractor
HOW TO USE:
1. Download icex.zip
2. Make folder C:\icex
3. Extract files from icex.zip to C:\icex
4. Put the theme in C:\icex (has to have .zip extension)
5. Make sure that the theme is the only zip file in C:\icex
6. Now you have 4 choices:
-> 6a: If you want everything (.pngs, .jpgs, .xmls) run UltimateExtractor.bat
-> 6b: If you want only icons (icon.png or ic_launcher*.png) run IconExtractor.bat
-> 6c: If you want almost every single .png run PngExtractor.bat
-> 6d: If you want to run Ultimate Extractor on .apks and not a whole zip file, run UltimateExtractorApk.bat *NEW*
Thanks to ultra spikey for his theme porter script which I based mines off of and thanks to woelv for the thread that got me to do this.
xidominicanoix said:
I got this idea from a thread where someone was asking for a certain icon pack and I suggested to go one by one and grab the icon from each apk. I then thought to myself that this could all be automated. So here it is:
ICon EXtractor v1.0
HOW TO USE:
1. Download icex.zip
2. Make folder C:\icex
3. Extract files from icex.zip to C:\icex
4. Put the theme in C:\icex (has to have .zip extension)
5. Make sure that the theme is the only zip file in C:\icex
6. Now you have to choices:
-> 6a: If you want every single icon, run IconExtractor.bat
-> 6a -> 1: You will be prompted twice
-> 6a -> 2: Hit 'u' and enter at both prompts
-> 6b: If you dont want to be prompted, run IconExtractor_NoPrompt.bat
7. All the icons will now be in folder C:\icex\icons
The reason that the non prompting one won't give you all the icons is because a lot of icons are named "icon.png" so they end up overwriting each other. Also some of the ic_launcher* icons have the same name as well (such as ic_launcher_gallery). The prompting script gives you the option to automatically rename the .pngs as they are extracted. I will try and find a way around this eventually.
I will try to find a way to get all the icons without being prompted (its a 7z thing)
Thanks to ultra spikey for his theme porter script which I based mines off of and thanks to woelv for the thread that got me to do this.
Click to expand...
Click to collapse
wow man... you never cease to amaze me... keep up the badass work!
Ted417 said:
wow man... you never cease to amaze me... keep up the badass work!
Click to expand...
Click to collapse
hehe thanks man .. if only i could get it to be perfect
nice work! now you need another tool to repack the icons. so people can extract icons from one place and repack them automatically into another. that would be perfect since people who extract the icons want to use it for another app or theme.
NguyenHuu said:
nice work! now you need another tool to repack the icons. so people can extract icons from one place and repack them automatically into another. that would be perfect since people who extract the icons want to use it for another app or theme.
Click to expand...
Click to collapse
well thats what ultra spikey's theme porter is for
xidominicanoix said:
The reason that the non prompting one won't give you all the icons is because a lot of icons are named "icon.png" so they end up overwriting each other. Also some of the ic_launcher* icons have the same name as well (such as ic_launcher_gallery). The prompting script gives you the option to automatically rename the .pngs as they are extracted. I will try and find a way around this eventually.
Click to expand...
Click to collapse
Maybe you could create folders for each apk. So that the icons can be easily identified?
Great work, by the way!
RichieDaze said:
Maybe you could create folders for each apk. So that the icons can be easily identified?
Great work, by the way!
Click to expand...
Click to collapse
i was able to get them into folders for each apk but i was having trouble getting them to the root of each folder (they were in res/drawable within each folder which is what im trying to avoid)
ill keep working on it and see if i can get them into the root of their own folders
EDIT: found a huge bug which ill be fixing for the next update
xidominicanoix said:
i was able to get them into folders for each apk but i was having trouble getting them to the root of each folder (they were in res/drawable within each folder which is what im trying to avoid)
ill keep working on it and see if i can get them into the root of their own folders
EDIT: found a huge bug which ill be fixing for the next update
Click to expand...
Click to collapse
This would make mylife ten times easier to port themes. I have to search through the whole rom to get the png's I need. It takes around 4 hours to do. Plus some of the older roms png's have different names for them. Mostly on the Framework. Does it extract the png's from the Framework as well?
Yea it should be doing so but ill double check to make sure
EDIT: no i wasnt doing it before but i implemented it now
ok new update
have everything in separate folders now
enjoy
ALSO, for anyone who's curious .. that 'huge bug' is due to some themes having an 'app' folder while others have 'system/app' ... my script wasnt working with the 'app' folder before ... now it tests for it
EDIT: had to re up it real quick with a small fix
Should I reboot after doing this process or simply the icons apply themselves instantly? 'Cause I did it and nothing happened. i'm on CyanogenMod 3.97 and try to put icons of the Aero theme...Can some help...Pleaseeee
fairymaru said:
Should I reboot after doing this process or simply the icons apply themselves instantly? 'Cause I did it and nothing happened. i'm on CyanogenMod 3.97 and try to put icons of the Aero theme...Can some help...Pleaseeee
Click to expand...
Click to collapse
this isnt changing the icons in your phone .. this extracts the icons from any theme and puts them in a folder on your computer .... its mainly a help to theme devs or anyone looking just for icons
Ohhh ok good thanks for the reply
This program works great....Only one thing though, on the launcher folder, seems like the png's w/ the same name get over writen. Example= "delete_handle" from Res/drawable-land AND Res/drawable-port aren't two different Png's. Maybe for this apk and others with thhe same folders, you could place them in the original folders----Drawable----Drawable-land----Drawable-port, as you said it work before hand. Some other folder/Png's are missing as well...
I tryed to use UltraSpikey's theme converter and was unsucessful. I was More accurate using this method, thanks to you... It is gladly appreciated...
RichieDaze said:
This program works great....Only one thing though, on the launcher folder, seems like the png's w/ the same name get over writen. Example= "delete_handle" from Res/drawable-land AND Res/drawable-port aren't two different Png's. Maybe for this apk and others with thhe same folders, you could place them in the original folders----Drawable----Drawable-land----Drawable-port, as you said it work before hand. Some other folder/Png's are missing as well...
I tryed to use UltraSpikey's theme converter and was unsucessful. I was More accurate using this method, thanks to you... It is gladly appreciated...
Click to expand...
Click to collapse
yea the overwriting pisses me off but its the only way to get it fully automated .. i will add a second version that will prompt to rename any pngs ... or i can try to get the drawable, drawable-land, and drawable-port right ... can you let me know which folders are missing so i can see why?
Can't wait until saturday night, i'm off work, so i can play with this. Thanks for your hard work!
RichieDaze said:
This program works great....Only one thing though, on the launcher folder, seems like the png's w/ the same name get over writen. Example= "delete_handle" from Res/drawable-land AND Res/drawable-port aren't two different Png's. Maybe for this apk and others with thhe same folders, you could place them in the original folders----Drawable----Drawable-land----Drawable-port, as you said it work before hand. Some other folder/Png's are missing as well...
I tryed to use UltraSpikey's theme converter and was unsucessful. I was More accurate using this method, thanks to you... It is gladly appreciated...
Click to expand...
Click to collapse
now they get extracted into their respective folders (drawable, drawable-land, drawable-port, etc) (also this stops the overwriting )
temporizer said:
Can't wait until saturday night, i'm off work, so i can play with this. Thanks for your hard work!
Click to expand...
Click to collapse
no problem man .. just trying to use what ive learned so far to help out the community
Works perfect now!!!
Ten Thumbs up!!!!!!
Now its like stealing candy from the baby...
Any ideas that i should implement .. it feels sorta 'final' but i can always try and optimize/revise/add to it
There's always room for improvement... How about making this script pull the Jpeg"s off the Framework and Launcher??? Then at a later date(Next update) locate the most common edited Xml's files to be pulled off next...
Adding Ext Power as well as % Battery Mod is very easy thanks to Jim Panses super Arbeit
Many thanks also to Dena and whiskeybro for their Theme as well as vukandric for the Gingerbread theme.
This is how I did it on Darky's Rom, but it should theoretically work for any Rom based on JPU.
Possibly the Rom needs to be deodexed what most custom roms are anyway.
You will possibly lose animations but there is an easy way to get them back!
Read end of post for this!
Ok let's get started with the simple (but limited) method.
Step 1:
Download the theme from Dena, the Gingerbread Theme as well as the framework-res.apk attached to this post. Put them on your SD card.
Step 2:
Install Dena's Theme with extended Power Menu
Step 3:
Install Gingerbread Theme
Step 4:
With Root Explorer copy the framework-res.apk file out of this thread to /system/framework
Your system will most likely crash after that and reboot with the new framework-res.apk active. Then change the permissions to 644 meaning all boxes in the first column selected as well as the topmost row of the second column selected. All else unselected.
Done!
This should work for any rom, but I can't confirm it yet.
For anyone interested in making their own themes compatible with ext pwr + % battery here is the more complicated way to do this and the way I actually did it:
Step 1:
You will need Dena's Theme again as a base as well as a another theme that already has the % battery but lacks the power menu. (It work too if you don't have % battery yet, but then only for the ext Power Menu)
Step 2:
Extract the framework-res.apk of each theme.
Step 3:
copy everything from framework-res.apk\res\drawable-hdpi of the theme you want to use into the same (sometimes also called "...\drawable-hdpi-v4") folder within the framework-res.apk of Dena's Theme.
Do not extract the framework-res-apk files. Use 7-zip to open them and do the copying!
Step 4:
Do the steps from the "simple" guide but instead of gingerbread theme you use your theme of choice and the framework-res.apk you use is the one you created.
Animations:
Many Themes use custom animations now.
The most common is the fly-in animation.
These animations might be lost with this method.
To get them back simply download the "Animations.zip" from this thread. Extract and move to /sdcard/AndroidThemes and then install with Metamorph (app can be found on market)
Here is another way provided by kenkiller
kenkiller said:
extract the anim folder inside darkky's framework-res.apk with 7zip, and then overwrite the same folder and contents with the framework-res.apk you intend to copy to ur phone. But in the case of animations, it's needed to clear dalvik cache in CWM.
Click to expand...
Click to collapse
Haven't tried yet, but I see no reason why it should not work
reserved for me
you might wanna change super arbeit to great work
Jonas.M said:
you might wanna change super arbeit to great work
Click to expand...
Click to collapse
That was intentional
Very useful, someone should try this on Darkyy's 5.2
I AM on Darky 5.2!
Were you able to retain all of Darkyy's animations after doing this?
Mycorrhiza said:
.....
... but it should theoretically work for any Rom based on JPU.
.....
Click to expand...
Click to collapse
No it doesn't. Not all rom can use it. Each rom framework-res.apk is different.
Sent from my GT-I9000 using Tapatalk
g00ndu said:
No it doesn't. Not all rom can use it. Each rom framework-res.apk is different.
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
differently themed maybe, but it should still work as they are all based on the same framework-res.apk (that of JPU)
Animations are gone, but I have a good idea how to fix this
Animations are what puts Darkyy's ROM apart. Apart from his very good themed colors & graphics.
Thank you for the credits!
ragin said:
Animations are what puts Darkyy's ROM apart. Apart from his very good themed colors & graphics.
Click to expand...
Click to collapse
The fly in animations are exactly the ones used in darkyy's rom,or at least similar enough that I didn't notice a difference yet.
Sent from my GT-I9000 using XDA App
If you used my files as the base for this, its only a little part of the fly in animation, because i dont liked the whole package!
What Dena theme do you mean? That link is to the captivate forums?
jim_panse said:
If you used my files as the base for this, its only a little part of the fly in animation, because i dont liked the whole package!
Click to expand...
Click to collapse
After installing the Gingerbread Theme all transitions are lost. I used the ones from here: http://forum.xda-developers.com/showthread.php?t=774738
If you want to add your own animation set I would gladly upload it here, too
HaTeNL said:
What Dena theme do you mean? That link is to the captivate forums?
Click to expand...
Click to collapse
My mistake, fixed it!
Thx for the info
Giving it a 5-star. Helpful.
it's pretty easy to regain the animations if u prefer the original.
Just extract the anim folder inside darkky's framework-res.apk with 7zip, and then overwrite the same folder and contents with the framework-res.apk you intend to copy to ur phone. But in the case of animations, it's needed to clear dalvik cache in CWM.
This actually does work on most custom roms, as long as they are deodexed.. Great work though..
Is it also possible to only add ext menu and keep glass window lock screen? I like the instant sms reader
kenkiller said:
it's pretty easy to regain the animations if u prefer the original.
Just extract the anim folder inside darkky's framework-res.apk with 7zip, and then overwrite the same folder and contents with the framework-res.apk you intend to copy to ur phone. But in the case of animations, it's needed to clear dalvik cache in CWM.
Click to expand...
Click to collapse
I added this to the front page, hope you don't mind.
Although it does seem rom cooking is difficult, in fact, it's easy to create a simple rom, with everything you want in it. There are still a few things missing which i'll add in the next few days
Here it goes....
Lets start with a bit of theory:
Needed programs:
Cygwin
7zip
Baksmali/smali
Apk manager
Text editor (notepad ++ for example)
SGS kitchen (https://github.com/rmgeren/Android-Kitchen/tree/galaxy_s)
Autosmali: http://forum.xda-developers.com/showthread.php?t=970728
First of all, download the cwm stock deodexed rom from here http://forum.xda-developers.com/showthread.php?t=948790
This will save a lot of time since you wont need to deodex, nor to extract /system from factoryfs.rfs
There are three folders inside:
META-INF - here is where the updater-script and updater-binary are located. This files are very important, because they are in charge of making the phone copy files from the zip, symlinking etc...
updates - here is were the kernel (zimage) and modem (modem.bin) are located
system - here are all libs, apks and things that will be copied to /system
Explanation of some directories in /system
System/app:
Here are all system apps
System/framework:
By modding files here, you'll be able to theme.
System/lib:
Here are libs needed for many things to work.
System/Build.prop:
Mod this line to change the name of the rom shown in about ro.build.display.id=
System/media -
Ringtones, bootanimations and othet things are stored here
System/etc:
Here are some files you might want to mod, like hosts ( for adfree), files for gps, and you can create an init.d folder for scripts that you want to get executed at startup (if kernel supports it)
Those are all the main directories you'll need to mod
Setting up the kitchen
Download cygwin and install it. Then download rmgeren's sgs kitchen. Create a folder called kitchen wherever you want and copy all files of rmgeren's github into it.
Create a folder inside kitchen called WORKING_111111_111111
Extract the zip of the stock deodexed rom to kitchen/WORKING_111111_111111/
In case you are having any problems with it, please do take a look at this post : http://forum.xda-developers.com/showpost.php?p=5626300&postcount=3
Cleaning up system/app
I usually delete this apks:
Aldiko
Layar
Infoalarm
Dualclock
Protips
Samsung widgets
Minidiary
Writeandgo
Phonesetupwizard
Days
Pressreader
APK Modding:
For theming use method 1, for modding xml use method 2
Method 1 - right click on the apk and select 7zip and extract in /* (* is the name of the apk)
Open the folder, then res, then drawable-hdpi, and then mod the pngs you want.
Once yoy're finished, open the apk with 7zip and replace res/drawable-hdpi with the new one
Method 2-
Place the apk inThe apk modding folder (apk manager)
Open script, choose a project to work on (22 in windows), then decompile (for some apks you'll need dependencies).
Go to projects and the folder of your apk, then mod any xml you need to mod
Recompile it, it will ask if it is a system/app. Just answer Y or N.
You'll be asked another thing, type Y, press enter
Then it'll say something about a keep folder, go to the keep folder and look for the xmls you modded and delete them. In case you cant find one, delete the ones you can find and delete resources.arsc
Now press enter
You'll have an unsigned*.apk just rename it to the old ones name.
Theming
Same process that you use for apks, but this time you mod twframework-res.apk and framework-res.apk, you also mod systemui.apk for status bar
Some xml and pngs you might want to mod (framework-res.apk)
Xml:
Res/values/styles.xml
Res/values/bools.xml
Res/drawable/progress_horizontal (for colour of this bar View attachment 637481)
Png's (drawable-hdpi)
default_wallpaper.png - it's the default homescreen wallpaper
For overscroll glow:
overscroll_glow.png
overscroll_edge.png
For this (the bar you move) View attachment 637482:
seek_thumb_normal.png
seek_thumb_selected.png
seek_thumb_pressed.png
There are many more, but this are a few that are quite useful. You can easily find out about any, but in case you can't, you can just ask here and i'll be glad to answer
If you want to pre-install a theme, just copy the files of the theme into the correct places. For example system/framework to system/framework
For ctr off animation, decompile framework-res.apk, go to res/values/bools.xml
and in the line: config_animateScreenLights, turn it to false. If you want a more step by step guide, try this guide: http://forum.xda-developers.com/showthread.php?t=977501
Using baksmali/smali
To mod classes.dex, i use baksmali/smali
I use ubuntu for this, but you can use another linux distro if you want.
This is what i do in Ubuntu:
Steps to follow:
1. Get the .jar you want to mod. framework.jar for example
2. Open it and get classes.dex
3. I usually copy it to the desktop
4. Open terminal
5. Type sudo su and then your password
6. then cd /home/Coldflid/Desktop ( type the location where you have copied it).
7. java -jar baksmali-1.2.6.jar classes.dex
8. Once you've modded it, type java -jar smali-1.2.6.jar (name of the output folder)
9. A new .dex file will be generated, just replace the old one with the new one
This is what i do in windows
1. Grab the jar you want to mod
2. Open it with 7zip and get classes.dex
3. Copy classes.dex to the same folder autosmali is in
4. Run baksmali.bat
5. Make the desired changes
6. Create AutoSmali_In folder and place the folder of the decompiled classes.dex inside
7. Run smali.bat
8. Rename AutoSmali_Out.dex to classes.dex and replace the old one in the .jar with the new one (using 7zip)
Finishing the rom
Now that you've finished with modding, theming etc... Now replace apks with new ones, add a few that you want, and copy libs if needed.
You can add ringtones from other phones to system/media, bootanimation of sgs ii etc...
Replace the kernel with the kernel you like the most, and the modem with the one that works best for you.
Now it's time to zipalign. Open cygwin, type cd c:/ * (where * is where you have the kitchen). Press enter
type ./menu, then press enter
Now you just select the zipalign option.
When it finished, select all three folders of the rom and right click, 7zip, add to file, zip, name it and then you're good to go.
Install it using cwm.
If you want to make it flashable through odin, follow darky's guide:
http://forum.xda-developers.com/showthread.php?t=960946
If this was useful, hit the thanks button
Hope you like it.
If there's something wrong, tell me and i'll correct it. Also post if it was useful
Thanks
rmgeren for sgs android kitchen
[Ramad] for stock deodexed roms
creator of baksmali/smali and the creator of cygwin
Daneshm90 for apk manager
Thanks to dsixda for cygwin faq, and to gazza1988 for suggesting the idea of including it in this post
Thanks to Daneshm90 for the ctr off animation tutorial i've linked to in this thread
schmittx for autosmali: http://forum.xda-developers.com/showthread.php?t=970728
Reserved...
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
zaanrider said:
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
Click to expand...
Click to collapse
You need to modify the updater-script
Enviado desde mi GT-I9000 usando Tapatalk
There's option for Wipe state in kitchen right?
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Very nice Cold, GJ m8. Helped me a lot
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
overglow sux
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
Same here I never really liked it.
Rahulrulez said:
Same here I never really liked it.
Click to expand...
Click to collapse
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
I dislike it in samsung roms, but i do like it in cyanogenmod.
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
To get rid of it, get classes.dex from the framework.jar of the rom you're running that has it, and get classes.dex from stock framework.jar
Using baksmali, decompile classes.dex from both.
Then get the overscroll glow source. Open the decompiled classes.dex folder of the stock one and the source. Find the files that have been modded and copy them to the folder of the decompiled classes.dex of the rom that has the overscroll glow.
Then use smali to compile it back to classes.dex and then copy it into framework.jar
This will become easier as soon as i post the baksmali/smali guide.
Anyway, i'm going to upload the JVP original scroll source.
Rahulrulez said:
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Click to expand...
Click to collapse
I wouldn't use the build rom option, much better if you select the folders and make the zip with winrar or 7zip.
Just extract ramads deodexed stock rom zip, and change the zimage in /updates, then compress META-INF, system and updates into a zip and you have ramad's stock deodexed rom with the kernel you chose. Same process for every rom (location of zimage may vary though, some devs tend to place zimage in other folders)
somberi said:
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Click to expand...
Click to collapse
Thanks. there's no problem in trying and seeing what you can do, you may prove to be the best rom cooker
slaphead20 said:
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Click to expand...
Click to collapse
Will add the credits as soon as i add the baksmali/smali part
Rahulrulez said:
There's option for Wipe state in kitchen right?
Click to expand...
Click to collapse
Yup, but it'll work on update-script only, (amend scripting) which you can't use in older versions than cwm 2.x
Wipe/no wipe is just if it deletes /dbdata and /data or not.
Vertumus said:
Very nice Cold, GJ m8. Helped me a lot
Click to expand...
Click to collapse
Thanks, glad it was useful
Thing's i'll add today:
Baksmali/smali tutorial
I'll upload META-INF no wipe and META-INF wipe that you can use
Modding the updater-script tutorial
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Rahulrulez said:
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Click to expand...
Click to collapse
Wiping data means wiping /data (where apks you've installed are stored) and /dbdata (where the data of the apps is stored)
Just use winrar, select the folders, add to file, and you type a name and in file format you choose zip
Hi i have done all my modding and themeing etc, but as i follow instruction to zipalign
i do cd c:/kitchen then ./menu (as instructed) and all i get is constant error messages
ie scripts/check_binaries: line 12: clear: command not found
lots of stuff about asking for help for htc android kitchen
ignore and proceed anyway? y or n
i type y and then get another one saying "gcc" is not installed
y or n to continue?
then perl, then wget, then cpeo, then i get a menu, should i be getting those error messeages and is it safe to continue?
EDIT can i suggest the OP links to this post as it contains info on how to setup the rom kitchen properly, and avoids errors like the ones i am experiencing,
Hey awesome guide. Have been trying to learn.
Heres my question if i wanted to use a premade JVP theme such as crysis or any of those that works on deodexed ROMS such as the ones from that section how would i do that?
Thanks and awesome guide
EDIT: Alright I got it booting finally I just have 4 more questions and then Im done.
1. For the captivate port how did y'all fix the home button fix, I have a flashable zip I created that fixes the home button but I know that used to be a problem on the old i9000 2.3.3 ROMs, so I'm just wondering how you implement that
2. How do you implement the CRT Screen Off Animation
3. If I wanted to use this theme http://forum.xda-developers.com/showthread.php?t=1083188 in my ROM how do I implement it into the ZIP?
THank you so much!
I want to integrate TalonDEV modem in JVP..
I found this in kernel updater-script of JVP zip (CWM flashable)
Code:
show_progress(0.200000, 80);
ui_print(" ");
ui_print("Installing Primary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
show_progress(0.200000, 90);
ui_print(" ");
ui_print("Installing Secondary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
Whereas, in TalonDev modem's updater-script, it is written like this -
Code:
set_perm(0, 0, 0755, "/tmp/bmlwrite");
ui_print("Flashing kernel...");
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
ui_print("Done. Please reboot.");
Somehow, I'm finding it difficult to know the different between these two. There's redband_ua in ROM's updater-script. Is it necessary? Or I can replace it with the script from Kernel's updater-script?
Please tell me meaning and difference between following lines -
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
and
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
totally confused in bml7 and bml8. Kernel needs to be restored in both bml7 and bml8? Because in TalonDev's kernel installation script, it is given ONLY bml7
Please help me
Is there any way to run smali, baksmali on windows?
Rahulrulez said:
Is there any way to run smali, baksmali on windows?
Click to expand...
Click to collapse
Yes. Works a charm. Syntax is:
java -jar baksmali.jar
java -jar smali.jar
Obviously you need java installed
About me
I didnt see any thread with ALL guides in ONE place. And I think alot people want to know how to do this or that. Its also clearer for myself to have an all-in-one placed tutorials! So with all the help of awesome people and myself Im gonna teach you stuff! All credits goes to other people. Ask Q ONLY in this thread! Dont expect too much: I modify this thread very rarely!
Requirements
Notepad++ [editing /xml]
Apktool [Basic knowledge of compiling apks] Helpfull link: click
Root explorer [to push apk back to your phone]
7zip [to replace .pngs]
Nandroid backup [important]
Guides
1. How to get custom statusbar?
To replace your statusbar with a custom .png go to:
SystemUI.apk/res/values/drawables.xml search this line
Code:
<item type="drawable" name="status_bar_background">
make changes as
Code:
<item type="drawable" name="status_bar_background">@drawable/statusbar</item>
now place statusbar.png file in drawable folder then recompile.
2. How to get my home-screen?
http://www.youtube.com/watch?v=hVoXrS-RWBY
3. How to delete text under toggles?
This is hardest part cuz Lidroid is 'different'. First, follow this to succesfully decompile it: http://forum.xda-developers.com/showpost.php?p=31991217&postcount=1
After that, go to: res\layout\power_widget_button.xml
Add this: visibility="gone" to TextView and it should be gone now!
You can also delete the text WiFi, Bluetooth, Silent, etc. in the strings.xml in values folder!
4. How to modify framework?
Just replace .pngs in your drawable-res-hdpi folder!
This will change all system actions, like pop-up look, buttons look, and alot more!
5. How to change background in settings / dialer?
Remember: You CANT change for dialer AND settings it can only be done for both. Go to framework-res.apk > res > drawable-nodpi > tw_dialog_bg [kind of this]
And replace with SAME format and same name! now you hav this bg in file manager, settings, an much more!
6. How to change grid size of touchwiz launcher?
http://forum.xda-developers.com/showthread.php?t=1990801
This thread tells you which size: http://forum.xda-developers.com/showthread.php?t=1990801
And this is also usefull: http://forum.xda-developers.com/showpost.php?p=28561607&postcount=1690
7. Change icon of system apps [dont work with market ones]
Go to the apk and look for the icon, just extract the folders and you'll see it. Replace it with an icon-pack from this thread: clik
So no need to decompile and after this just push back to sysem/app dont forget to set perm.
8. Custom bootanimation on stock based kernels [speedmod]?
So, we love the stability and battery of speedmod kernel. But also get rid of the boring samsung boot. The steps:
Your bootanimation MUST HAVE FINITE REPEAT VALUES, otherwise you will be stucked in a beautiful boot loop.
*What is this?
Open your zip and see the txt file. The number after all "p" must be HIGHER than 0. It means how many times this part will repeat, and 0 is infinite
1- Pick your desired bootanimation.zip and make two clones. Rename them to ODEAnim.zip and sanim.zip
3- Move the three zip files to /system/media
4- Go to /system/bin. Backup and delete the file samsungani. Rename the file bootanimation (this file you find in this folder; it ISNT your zip file) to samsungani.
5- Reboot
Error guides
* By theming you ll always run into problems. Like bootloops. Mostly its with framework-res.apk. If you get bootloop try this: click And if your system suddendly reboots after replacing framework-res its normal, just wait and reboot one more time. You can also try wipe cache and dalvik! But it isnt normal when u got statusbar fc then you have recompile errors or did sth wrong.
* When you try to push files back after theming and your file manager says: cannot paste. That means you havent enough space in your /system partition. Deleting useless [system] apps and 'tts' folder can free up alot! U can also buy micro SD and with TB move apps2sd
:good:
---------- Post added at 09:34 PM ---------- Previous post was at 09:26 PM ----------
Thanks
WALLPAPERS!!! IF U WANNA KNOW WHERE I GOT MY AWESOME WALLS HEAD OVER TO THIS AWESOME THREAD CREDITS FOR ROSARIA! http://forum.xda-developers.com/showthread.php?t=1942169&page=13
NEW!!!
I made blue clock for lockscreen!!
Download pngs here: http://www.mediafire.com/?c3segwhvay411v9
Replace in framework/res/drawablehdpi
AW: [THEME][MOD][4.2.1 XWLSD] Blue Steel
Nice Theme, good Work
Can you tell me where you have changed the text?
http://img843.imageshack.us/img843/4318/20130226223431.png
Regards Marcel
marcel2909 said:
Nice Theme, good Work
Can you tell me where you have changed the text?
http://img843.imageshack.us/img843/4318/20130226223431.png
Regards Marcel
Click to expand...
Click to collapse
WHERE ARE THE DOWNLOADS AND SCREENSHOTS???? I CANT SEE THEM HERE ON THIS THREAD
bold and red just to get attention..dont get offended... just gimme the theme if its beautiful
marcel2909 said:
Nice Theme, good Work
Can you tell me where you have changed the text?
Regards Marcel
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2162055
After that, move folder meta-inf and manifest from ORIGINAL to your new.apk. Otherwise you get weird errors and bootloop. Happy theming!
Update: New screenshots coming!!
Update v3!!!
Hey people..I updated almost EVERYthing and like to share it with you, go to post 1! You can also ask me things if you wanna know how2doit! Hope u like it ^^
EDIT: I CHANGED THE PURPOSE OF THIS THREAD, I WILL PROVIDE TUTORIALS FOR THEMING FOR JUST ANYTHING AND IT GETS UPDATED ONCE IN A WHILE
Re: [THEME][4.1.2] Cyanginger all-in-one mod[8-3-13]
Request link
Spoiler
Device : GT I9100
Rom : WanamLite V14.3
Hey, I dont know if it also works on wanam, [i have omegarom] but you can always try it.. Make nandroid FIRST
This is my systemui, with custom statusbar, wallpaper and MUCH more! http://forum.xda-developers.com/showpost.php?p=38912032&postcount=96
In attachment
If it doesnt work u can always ask me what you want I couldnt teach or do it for you. In my free time!
Rene_ajax said:
5. How to change background in settings / dialer?[/B]
Remember: You CANT change for dialer AND settings it can only be done for both.
Click to expand...
Click to collapse
Not entirely true, depends on the theme being used as the base.
nice to see that my teaching was not in vain
keep learning.
jackq said:
nice to see that my teaching was not in vain
keep learning.
Click to expand...
Click to collapse
yu mate. Then nobody have to ask again and again and also to give you credits thanks alot again!
I wil add more but dont have time right now
might try it out
Hello Guys,
I want to change the softkeys on my nexus 4.
I have did it before in older android versions and it worked great.
Intresting enough,
On kitkat I'm having trouble changing the softkeys.
After updating Edify successfully
I can't seem to load the softkeys zip file.
It says:
SKIPPED://system/app/SystemUIapk was not found
WARNING: update.zip would be empty -- not creating one!
I've changed the xml path as follows:
from:
<path>/system/app/</path>
to:
<path>/system/priv-app/</path>
according to the next thread:
http://forum.xda-developers.com/nex...pthemer-to-flash-themes-stock-t2202482/page11
and then he says:
can't find control file ...
Guys please advise,
Would much appriciate it.
Thanks a lot!
Or in other words ....
How do I change the softkeys on kitkat?
Thanks.
somebody can help please?
biotech326 said:
somebody can help please?
Click to expand...
Click to collapse
Hi, yes we can help, but keep patient ^^
I'm the OP of the thread you linked, and if you tried to change the xml, you certainly saw the latest messages.. Another member had the same problem and I just changed the xml file, it worked good, are you sure you've done it correctly (I'm not insulting you but, you know...)
-From my Nexus 4-
biotech326 said:
somebody can help please?
Click to expand...
Click to collapse
If you upload the zip you are trying to edit then I can take a look to see what's wrong :good:
Thanks for the responses guys!
I'm not insulted I'm just human and I can make mistakes so everything is cool
I'll ellaborate all the steps that I did so it will be easier for you guys to help me.
I've entered:
http://forum.xda-developers.com/nexus-4/themes-apps/softkeys-softkey-collection-t2005937
Chose Stock Reflect ICS BLUE theme for the nexus 4.
When entering the link
I've downloaded MMZT_softkeys_stockreflect.zip
from here:
https://www.dropbox.com/sh/eglqkhlw...k Reflect Blue/MMZT_softkeys_stockreflect.zip
I've extrected the file locally and receive two things:
1) MMZT_softkeys_stockreflect.xml
2) SystemUI folder which contains other things underneath.
The xml file before the change:
<?xml version="1.0"?>
<themename>MMZT_softkeys_stockreflect</themename>
<themeversion>1.0</themeversion>
<author>atticus182</author>
<phone>Nexus 4 / Galaxy Nexus</phone>
<rom>ICS / JB</rom>
<item>SystemUI.apk</item>
<path>/system/app/</path>
<description>(Mod Requires a Reboot)</description>
<notes>Visit xda-developers.com for more mods</notes>
The xml file after the change:
<?xml version="1.0"?>
<themename>MMZT_softkeys_stockreflect</themename>
<themeversion>1.0</themeversion>
<author>atticus182</author>
<phone>Nexus 4 / Galaxy Nexus</phone>
<rom>ICS / JB</rom>
<item>SystemUI.apk</item>
<path>/system/priv-app/</path>
<description>(Mod Requires a Reboot)</description>
<notes>Visit xda-developers.com for more mods</notes>
After the change I've compiled the xml and the folder together to a new zip file.
In my nexus 4,
I downloaded ZipThemer
Downloaded the newest CM rom and transfered it to my phone.
Inside ZipThemer I've updated the edify using the CM rom file
and the output was success.
Here's a link for my updated zip file:
Code:
http://speedyshare.com/TVepR/MMZT-softkeys-stockreflect.rar
If I can give any more details please let me know
And thanks a alot for the effort
I appriciate it
lol. just decompile your system ui and put them there. compile back. done
zamzameir said:
lol. just decompile your system ui and put them there. compile back. done
Click to expand...
Click to collapse
Hmm I didn't quit follow sorry ...
Where should the xml be?
Can someone please create a zip for me?
Thanks!
biotech326 said:
Hmm I didn't quit follow sorry ...
Where should the xml be?
Can someone please create a zip for me?
Thanks!
Click to expand...
Click to collapse
give me your systemui and framework-res.apk. and also the softkeys images. I'll do it for you
(I didn't choose my words wisely, by insulting I meant offended )
So you are under CM? Which version and also, are you sure the systemUi file is in priv-app?
Also
biotech326 said:
It says:
SKIPPED://system/app/SystemUIapk was not found
WARNING: update.zip would be empty -- not creating one!
Click to expand...
Click to collapse
Did you forgot the dot in SystemUIapk when copying it in the forum ?
-From my Nexus 4-
Isn' the SystemUIapk supposed to be a.. SystemUI.apk ? <- Look at the dot.
I'm sorry but I don't quit follow ...
I have a system UI directory not apk.
What do you mean
systemui apk and framework-res.apk?
Thanks guys
Those are two apk file in which you replace the soft keys ^^
Go into priv-app and send a screenshot of what you see.
-From my Nexus 4-
biotech326 said:
I'm sorry but I don't quit follow ...
I have a system UI directory not apk.
What do you mean
systemui apk and framework-res.apk?
Thanks guys
Click to expand...
Click to collapse
systemui.apk is located at system/priv-app/
while framework-res.apk is located at system/framework/
give me this 2 apk of yours. I'll try do a flashable zip for you later
Thanks for the extensive help you guys!
Much appriciated
I've upload the two apk's of my nexus:
systemui.apk
framework-res.apk
Code:
http://speedy.sh/v8g9y/apk.rar
I'm running android vanilla pure android from google OTA 4.4.2
I used the CM rom file only to update the Edify, no CM rom here mates.
This is the softkeys that I want:
https://www.dropbox.com/sh/eglqkhlw33clfhz/Y0d7jZEWjS/Softkeys/Stock Reflect Blue
If someone can please compile it for me I would be very grateful!
Want this nice blue softkeys already hehe
Thanks and goodbye
biotech326 said:
Thanks for the extensive help you guys!
Much appriciated
I've upload the two apk's of my nexus:
systemui.apk
framework-res.apk
Code:
http://speedy.sh/v8g9y/apk.rar
I'm running android vanilla pure android from google OTA 4.4.2
I used the CM rom file only to update the Edify, no CM rom here mates.
This is the softkeys that I want:
https://www.dropbox.com/sh/eglqkhlw33clfhz/Y0d7jZEWjS/Softkeys/Stock Reflect Blue
If someone can please compile it for me I would be very grateful!
Want this nice blue softkeys already hehe
Thanks and goodbye
Click to expand...
Click to collapse
In fact you must update edify with the zip from the rom you are currently using... I don't know the vanilla rom, in what is it special?
-From my Nexus 4-
azertguigui said:
In fact you must update edify with the zip from the rom you are currently using... I don't know the vanilla rom, in what is it special?
-From my Nexus 4-
Click to expand...
Click to collapse
Ok so you suggest downloading the rom from google site
and update with that one?
I don't really know I ask you? What kind of rom is that?
-From my Nexus 4-
azertguigui said:
I don't really know I ask you? What kind of rom is that?
-From my Nexus 4-
Click to expand...
Click to collapse
Hey mate,
It's not a rom,
It's the stock android that we have on nexus devices ...
What you get from system update through the phone
Over the air android.
Oh I thought the vanilla was the name of a special rom...
Anyway, try the attached file. But make a full non-droit backup, we don't always know what happens...
-From my Nexus 4-