Anyone feel like pitching in Amend Update Script - Epic 4G Android Development

I'm attempting to make the EC05 Stock Deodex Theme Template for us. I'm not getting a successful flash doing it however. Here's the contents of my update script:
Code:
show_progress 0.1 0
delete_recursive DATA:dalvik-cache/
copy_dir PACKAGE:tools TMP:/tools
set_perm_recursive 0 0 0755 TMP:tools
run_program /tmp/tools/deodex.sh
copy_dir PACKAGE:system SYSTEM
show_progress 0.2 10
And here's the content of the deodex.sh
HTML:
#!/tmp/bash
rm -rf /system/app/*.odex
rm -rf /system/framework/*.odex
Note Bash is included with tools folder. This zip is saying system not mounted when it clearly is in cw and on top that the deodex.sh isn't executing. Any help would be appreciated.

dreamsforgotten said:
Note Bash is included with tools folder...the deodex.sh isn't executing.
Click to expand...
Click to collapse
if that's the case, then shouldn't the first line of your deodex.sh have the proper path to bash? (/tmp/tools/bash)

Ah good eye! Now how do I mount system in amend?
Sent from my SPH-D700 using Tapatalk

dreamsforgotten said:
Ah good eye! Now how do I mount system in amend?
Click to expand...
Click to collapse
that I wish I knew more about...I'm just an old school BSD administrator with a love of scripting ;-)

zentex said:
that I wish I knew more about...I'm just an old school BSD administrator with a love of scripting ;-)
Click to expand...
Click to collapse
Nevertheless thanks for catching the previous error I'm almost there!
Sent from my SPH-D700 using Tapatalk

wish i knew about this stuff dog i would definately help out! seems like it would be a simple fix but for me its like moving a mountain! lol! let me know when you get this working! cmon guys can we get a hell ya! lol!

stupid question maybe. why have the bash run? would it not be easier to delete app system/app and system/framework and reflash a deodexed app and framework... the reason u ask is that is how i got my system deodexed here is a copy of my zip....
http://www.4shared.com/file/VdcLevLi/EC05_deodex.html
sorry if i missed the whole point of the thread but it seemed like there was an easier way.
just trying to help.

spdwiz18 said:
stupid question maybe. why have the bash run? would it not be easier to delete app system/app and system/framework and reflash a deodexed app and framework... the reason u ask is that is how i got my system deodexed here is a copy of my zip....
http://www.4shared.com/file/VdcLevLi/EC05_deodex.html
sorry if i missed the whole point of the thread but it seemed like there was an easier way.
just trying to help.
Click to expand...
Click to collapse
LMAO, Once again I'm over complicating ****. No reason at all not to do it like you did. The simple method was to have the deodex.sh script in the zip, call it from the zip and flash system/framework; /app but that method isn't working for me anymore. I decided to move it all to the temp directory to fix the prob instead of thinking like you and just wiping the whole folders. You really need to post this, there is high demand for it my PMs have been stacking up!

spdwiz18 said:
stupid question maybe. why have the bash run? would it not be easier to delete app system/app and system/framework and reflash a deodexed app and framework... the reason u ask is that is how i got my system deodexed here is a copy of my zip....
http://www.4shared.com/file/VdcLevLi/EC05_deodex.html
sorry if i missed the whole point of the thread but it seemed like there was an easier way.
just trying to help.
Click to expand...
Click to collapse
ssswwweeeett!! thanks man!

question before i make official post?
updater script will run on admend and edify correct? at the moment im still on cmw2 im 100 % sure it will work on cmw3. this is the only reason i have not posted it.
posted......
http://forum.xda-developers.com/showthread.php?p=13039885#post13039885

spdwiz18 said:
question before i make official post?
updater script will run on admend and edify correct? at the moment im still on cmw2 im 100 % sure it will work on cmw3. this is the only reason i have not posted it.
Click to expand...
Click to collapse
it should work on both. I'm on 2.5 as well. It really doesn't matter, however, because most people want a stock deodex theme template for 1 or 2 reasons. To theme stock and never flash a rom or to use as a template to theme off of. One suggestion, put the stock font folder in there as well so when you flash a theme, you can flash this in between to wipe out all of the other traces of the old theme and prepare your phone for the new one. Thank you once again, my dumb ass has been stuck on stock for a week and it's been so long I didn't remember any amend commands!

i will add it in.

Confirmed working flawless
Sent from my SPH-D700 using Tapatalk

Related

Theming files?

Sorry about the first post. I was wondering where the png files are located in the rom so I can start theming
Sent from my HERO200 using XDA App
If this has been addressed sorry. I searched but didn't find it. If it's been addressed please point me in the right direction. Thanks
Sent from my HERO200 using XDA App
abadasstanker69 said:
If this has been addressed sorry. I searched but didn't find it. If it's been addressed please point me in the right direction. Thanks
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Ull find all the PNG in the individual apps in the system/app, system/framework, and data/app.
Papa Smurf151 said:
Ull find all the PNG in the individual apps in the system/app, system/framework, and data/app.
Click to expand...
Click to collapse
Thanks bro! All I see is apk files though. Where are the images?? Also, is there anything specific I have to do in order to export/import the files in Photoshop? I read something somewhere about a .9 PNG or something like that....what does this mean? BTW great work on your theme! It looks awesome! I love it!
Ok I'm a douche bad. lol I renamed the apk to .zip and extracted with winrar. Now I'm in to where I want to be! I'm looking for the little android guy when you make a phone call but, I can't seem to find him in the HTCdialer.apk. Am I looking in the wrong place? Thanks again for the help!
They are in the apk's.
http://developer.android.com/index.html
Good luck.
Ok found the little droid man! This is gonna be awesome!! Any more useful places I should mess around in? This is gonna be FUN!!!!!!!
Ok so I have edited some files and rezipped them. Now do I flash the updated files through recovery or do I have to rename it to .apk and stick it in the rom and re-flash?
abadasstanker69 said:
Ok so I have edited some files and rezipped them. Now do I flash the updated files through recovery or do I have to rename it to .apk and stick it in the rom and re-flash?
Click to expand...
Click to collapse
I may be wrong but I have done the same thing, all I did when I was finished was push them via adb to their respective places and then reboot and it worked fine for me. Nandroid before you push so if it boot loops you can recover. Then the easiest thing at that point would be to save your work in the ROM you modded, push to sd root, wipe and flash it. I am creating a themed version of Darchoid 2.7 but taking my sweet time as I dont have a lot of it to begin with.
For my HTC Keyboard modifications, I just dropped my new images into the APK that was open in 7zip and pushed it to the /system/app/ dir and launched the keyboard, and BAM, my new keyboard.
abadasstanker69 said:
Ok so I have edited some files and rezipped them. Now do I flash the updated files through recovery or do I have to rename it to .apk and stick it in the rom and re-flash?
Click to expand...
Click to collapse
You have to sign it too. If you want to flash it. If you wanna just push it through adb then then put your edited .apk in AndroidSDK\tools and push it.
Go to command prompt:
Code:
cd C:\android-sdk-windows\tools
adb remount
adb push xxxxx.apk /system/app/
exit
C:\android-sdk-windows\tools is assuming thats where your sdk\tools folder is
xxxxx.apk is the name of the .apk
/system/app/ is assuming that's where you got the .apk from
Thanks for all the help guys. I appreciate it but, I was attempting to make an update.zip so people could then flash them once I complete them. I like to make things idiot proof
So I did some looking and found an autosigner. Problem is, now it wants boot scripts? WTF? I know I could push them through adb and simply tell others to do the same. I was just wondering if there was an easy way of doing this? I'm currently using avabox. Thanks again guys!!
abadasstanker69 said:
Thanks for all the help guys. I appreciate it but, I was attempting to make an update.zip so people could then flash them once I complete them. I like to make things idiot proof
So I did some looking and found an autosigner. Problem is, now it wants boot scripts? WTF? I know I could push them through adb and simply tell others to do the same. I was just wondering if there was an easy way of doing this? I'm currently using avabox. Thanks again guys!!
Click to expand...
Click to collapse
Just use a mod or update.zip any will do and add ur files and delete the originals in the zip. Keep the meta file and such. Then u can autosign with avabox. It gets tricky with scripts when making a rom. The update.zip script is very basic
Check This Out
You can just take one from a working zip if you want
Otherwise you will be making a file (i use notepad++) called "update-script" *notice-there is no file extension like .txt or anything*
In general they ususally just have:
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
(but may be different depending on where you want the zip's contents to be put in)
Which will be placed into a folder directory META-INF/com/google/android/update-script
You can also add things such as:
Code:
delete SYSTEM:app/contacts.apk
*or whatever you want deleted*
After you make the update-script, just sign it and flash
See my attachment for a template
[/QUOTE]You can also add things such as:
Code:
delete SYSTEM:app/contacts.apk
*or whatever you want deleted*
After you make the update-script, just sign it and flash
See my attachment for a template[/QUOTE]
What would be the purpose in doing that? Would it actually delete people's contacts if they flashed my theme? That's kinda cool but, I'm not trying to be a **** like that! lol
Also, are you guys referring to an update.zip that's all ready out as in a theme file? Or as in a rom? I understand I can use the work that's all ready there and I actually tried that. I zipped the file back up.Then signed with avabox. Renamed it to .apk. Stuck it back in the rom. Attempted to flash and got the boot script error
abadasstanker69 said:
What would be the purpose in doing that? Would it actually delete people's contacts if they flashed my theme? That's kinda cool but, I'm not trying to be a **** like that! lol
Also, are you guys referring to an update.zip that's all ready out as in a theme file? Or as in a rom? I understand I can use the work that's all ready there and I actually tried that. I zipped the file back up.Then signed with avabox. Renamed it to .apk. Stuck it back in the rom. Attempted to flash and got the boot script error
Click to expand...
Click to collapse
haha i just used contacts.apk as an example, it could be anything you wanted really. But its generally only used for when making an update.zip for boot screens.
And yes, you could take an already existing zip... but i was a little confused as to what you were doing sorry.
Correct me if I'm misunderstanding you again lol, but you're editing images within .apks and want to make a flashable-update.zip once you finish?
Easiest way, as stated before would be to use 7-zip.
Open the .apk Directly with 7-zip (no renaming the .apk to .zip or anything) and drag the replacement images into the .apk - overwriting the older images
Test it by pushing the apk to your phone, if it works without any problems great
If it doesn't then use something like Apk Manager to extract the apk/edit the files/and zip them back up < generally what I do
Put the .apk into the apps folder in my "template update.zip" file
Delete the framework folder and readme.txt file
Sign the .zip
Flash
kyouko said:
haha i just used contacts.apk as an example, it could be anything you wanted really. But its generally only used for when making an update.zip for boot screens.
And yes, you could take an already existing zip... but i was a little confused as to what you were doing sorry.
Correct me if I'm misunderstanding you again lol, but you're editing images within .apks and want to make a flashable-update.zip once you finish?
Easiest way, as stated before would be to use 7-zip.
Open the .apk Directly with 7-zip (no renaming the .apk to .zip or anything) and drag the replacement images into the .apk - overwriting the older images
Test it by pushing the apk to your phone, if it works without any problems great
If it doesn't then use something like Apk Manager to extract the apk/edit the files/and zip them back up < generally what I do
Put the .apk into the apps folder in my "template update.zip" file
Delete the framework folder and readme.txt file
Sign the .zip
Flash
Click to expand...
Click to collapse
LOL I really appreciate the help! You guys kick ass!!!! BUT I tried this method MINUS the renaming part and it didn't work. Sooooo....I'm assuming the renaming caused the issue.
Also, I was using winrar. I read somewhere that 7zip should be used instead of winrar but I just don't think this should matter considering the compression method is no different. Am I wrong? Also, will my theme have to vary from rom to rom? If I create this theme for people will I have to specify what rom I'm on?
Thanks again SOOOOOOOOOO much for the help guys...I know working with noobs can be a headache. I did it in the WinMo world for YEARS till I came to the "Dark Side"
abadasstanker69 said:
LOL I really appreciate the help! You guys kick ass!!!! BUT I tried this method MINUS the renaming part and it didn't work. Sooooo....I'm assuming the renaming caused the issue.
Also, I was using winrar. I read somewhere that 7zip should be used instead of winrar but I just don't think this should matter considering the compression method is no different. Am I wrong? Also, will my theme have to vary from rom to rom? If I create this theme for people will I have to specify what rom I'm on?
Thanks again SOOOOOOOOOO much for the help guys...I know working with noobs can be a headache. I did it in the WinMo world for YEARS till I came to the "Dark Side"
Click to expand...
Click to collapse
Yes 7zip works better for theming and roming. I tried winrar and it was a pain in the ass.
Yes u will have to specify which roms it will work on. Files on darchdroid r different than our 2.1 roms and so forth. So they wont work right.
Download avabox and use the signing tool in there to sign ur zips.
Make sure in ur zip if ur editing an app it's in the right place...ie system/app or system/framework or data/app. Then make sure ur Meta file is in there. After that sign it and then u can change the name and flash it
Papa Smurf151 said:
Yes 7zip works better for theming and roming. I tried winrar and it was a pain in the ass.
Yes u will have to specify which roms it will work on. Files on darchdroid r different than our 2.1 roms and so forth. So they wont work right.
Download avabox and use the signing tool in there to sign ur zips.
Make sure in ur zip if ur editing an app it's in the right place...ie system/app or system/framework or data/app. Then make sure ur Meta file is in there. After that sign it and then u can change the name and flash it
Click to expand...
Click to collapse
I'm such a freaking noob....what's the meta file for? This seems like alot to do for a theme :/
abadasstanker69 said:
I'm such a freaking noob....what's the meta file for? This seems like alot to do for a theme :/
Click to expand...
Click to collapse
The Meta file is for the update script. It has other uses but for ur purpose its for the update script which is the instructions the recovery uses to flash the theme. Like I stated before just use an existing one from a different theme or mod. Creating ur own is possible but not needed. Hit me up on gtalk if u want to ask me questions.
[email protected]
I don't mind teaching if anyone wants to learn

[Q] I want to make a theme...

But I don't exactly know how to get there.
I'm runing Wolfbreak's CM ROM V055, afraid to go to V06 because it might break my kernel install(still getting info on just what to do)
What I'm wanting is:
The status/pulldown bars(all icons except Wifi, and I want to keep Cyanogen 6's default slidey bar[the thing that ends up at the bottom]), and the animations from the theme used in SEMPITERNAL's Eternity 2 Build 0003a ROM. That will have to be ported to FroYo, I'm afraid(unless my theory at the bottom of this post will work).
I want the menu from LUCID-X10 by SicNside, with the black BG and white elements, but the png forthat i guess I'll have to negative a white hdpi one.
That's about it, the rest i want from arc theme which is default on my current ROM, including tickboxes, those arrows inside circles, the menu icons, etc.
My theory to sort of make this is to get the two involved APK's(default in CM and default in Eternity) onto my computer, and make them ZIP's. Then i can extract the drawable-hdpi folders from each and paste what I want from Eternity into Arc. Then I can replace the drawable-hdpi folder in the Arc framework file, and zip it at store.
That's where I stop knowing what I'm doing. Searching has not found me a guide on just how to make a framework-res.apk, nor even really making a theme altogether. All i can find is about xml files, resources, never anything about actually making the apk correctly.
Help, please?
I am stuck at the same point as you, I have no idea where to go from here :S
Anyone? I'm sure the two of us aren't the only ones...
Here's a zip of what I want. All I did was:
Took the framework-res.apk from the ETERNITY Rom and from the CM ROM, and pasted the png's i wanted from Eternity into drawable-hdpi-v4 in CM framework. Now, can someone make this work, please?
Its quite easy.
Just select the images you want to change.
Then open the framework-res.apk of your ROM with winrar or 7zip your choice.
Without extracting the files drag and drop the files to the winrar window in the right place. If you want to change images in drawable-hdpi migrate to res/drawable-hdpi and drag and drop images there.
Now close the archive and type this:
Code:
adb push <path to modified framework> /sdcard/framework-res.apk
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
Make sure you take a backup with xrecovery before doing this. If you do something wrong you may end up in a bootloop. In that case just restore from backup and try again!
realunited123 said:
Its quite easy.
Just select the images you want to change.
Then open the framework-res.apk of your ROM with winrar or 7zip your choice.
Without extracting the files drag and drop the files to the winrar window in the right place. If you want to change images in drawable-hdpi migrate to res/drawable-hdpi and drag and drop images there.
Now close the archive and type this:
Code:
adb push <path to modified framework> /sdcard/framework-res.apk
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
Make sure you take a backup with xrecovery before doing this. If you do something wrong you may end up in a bootloop. In that case just restore from backup and try again!
Click to expand...
Click to collapse
Grr, sorry but right now all my failure is just making that less clear. Type that where? Drag the files to the winrar/7zip window? Isn't that where i dont want them?
Ive followed all the different sets of instructions including yours on this forum as closely as i can make sense of them and always end up with a stream of FC's and reboot loops.
EDIT: does it only work on the stock kernel? I'm running Trip's kernel. I just pulled the framework apk then pushed that same apk back and it's still doing it.
EDIT 2: ok no stock kernel and its still doing it WHY THE HELL IS IT DOING THIS?!?!? I FLASHED THE SAME DAMN STOCK FRAMEWORK!
ok if i got the modded framework apk to my sdcard and used root explorer to paste it in, should that work? This laptop might be what's causing it
I have posted few tips here n there when ever people ask about it.
Check this for overall requirements
For your requirement, skip the optimization part out and just do image swap.
Like realunited123 said, dont extract, just open from 7zip, I use Win RAR and drag and drop the new image to the correct folder.
You need to remember few things here, check images name matches against old to new. Other important thing is resolution. you might get in to trouble if you take mpdi and put it to hdpi.
after updating the framwork I made a small template for you guys to play with.
Download attaches zip file open and go to
Framewrok-SJ.zip\system\framework folder and drag and drop the modified framework-res.apk
Dont try to install the attached file. its only a template for you guys to start working on....
After drag and drop you will see zip file size increased.
Simply copy to SD card and install via Xrecovery
You can try any framework to install like this without adb stuff
Remember to make a backup... because you will definitely screwup... we all have...... LOL
Realorasz said:
ok if i got the modded framework apk to my sdcard and used root explorer to paste it in, should that work? This laptop might be what's causing it
Click to expand...
Click to collapse
Well my friend if you have already did this. it will be your first screwup
Dont use root explorer or titanium for this work. Read this post I mention yesterday.......
Shiwantha said:
I have posted few tips here n there when ever people ask about it.
Check this for overall requirements
For your requirement, skip the optimization part out and just do image swap.
Like realunited123 said, dont extract, just open from 7zip, I use Win RAR and drag and drop the new image to the correct folder.
You need to remember few things here, check images name matches against old to new. Other impotent thing is resolution. you might get in to trouble if you take mpdi and put it to hdpi.
after updating the framwork I made a small template for you guys to play with.
Download attaches zip file open and go to
Framewrok-SJ.zip\system\framework folder and drag and drop the modified framework-res.apk
Dont try to install the attached file. its only a template for you guys to start working on....
After drag and drop you will see zip file size increased.
Simply copy to SD card and install via Xrecovery
You can try any framework to install like this without adb stuff
Remember to make a backup... because you will definitely screwup... we all have...... LOL
Well my friend if you have already did this. it will be your first screwup
Dont use root explorer or titanium for this work. Read this post I mention yesterday.......
Click to expand...
Click to collapse
Well i did try swapping mine with the framework apk in the froshed zip. I'll try it with yours though.
Shiwantha said:
I have posted few tips here n there when ever people ask about it.
Check this for overall requirements
For your requirement, skip the optimization part out and just do image swap.
Like realunited123 said, dont extract, just open from 7zip, I use Win RAR and drag and drop the new image to the correct folder.
You need to remember few things here, check images name matches against old to new. Other impotent thing is resolution. you might get in to trouble if you take mpdi and put it to hdpi.
after updating the framwork I made a small template for you guys to play with.
Download attaches zip file open and go to
Framewrok-SJ.zip\system\framework folder and drag and drop the modified framework-res.apk
Dont try to install the attached file. its only a template for you guys to start working on....
After drag and drop you will see zip file size increased.
Simply copy to SD card and install via Xrecovery
You can try any framework to install like this without adb stuff
Remember to make a backup... because you will definitely screwup... we all have...... LOL
Well my friend if you have already did this. it will be your first screwup
Dont use root explorer or titanium for this work. Read this post I mention yesterday.......
Click to expand...
Click to collapse
Is it just me is are you a savior!! Thanks, it's working now!!!!
Hey, by the way, can you teach me how i can make an xrec zip of a dialer mod I made? I want to post it on the CM 6 thread so people can like actualy install it but the only way i currently have for that is adb(which works on apps, but not themes...)
And one more thing, Is any sort of file transfer possible with ADB, or will i have to stick with WiFi File Explorer?
Realorasz said:
Is it just me is are you a savior!! Thanks, it's working now!!!!
Hey, by the way, can you teach me how i can make an xrec zip of a dialer mod I made? I want to post it on the CM 6 thread so people can like actualy install it but the only way i currently have for that is adb(which works on apps, but not themes...)
And one more thing, Is any sort of file transfer possible with ADB, or will i have to stick with WiFi File Explorer?
Click to expand...
Click to collapse
Thats good news.. one less problem to deal with....
create a folder call app on your pc and drag it to system folder in the zip file.
So you should have framework and app folders inside of it.
then copy Phone.apk & Contacts.apk and try to install via xrecovery.
there is a chance you might not be able to install as my initial signing of Zip file dosent included app folder and so MANIFEST.MF & CERT.SF dont have reference. on the other hand during installation Xrecovery dont check
key signature.
I didnt test this way so try, no harm will come to your phone.
Dont know about wifi explorer much. Im testing with adb generally. only final version im publishing in xrec.
Can you teach me how to make that meta inf stuff?
Sent from my X10a using XDA Premium App
Realorasz said:
Can you teach me how to make that meta inf stuff?
Sent from my X10a using XDA Premium App
Click to expand...
Click to collapse
You cannot, after putting stuff, need to sign by app sign tool or there are alternative called APK manager... search its on XDA i think........
I'm not getting it. The update script ange all that forxrecovery...?
Sent from my X10a using XDA Premium App
Realorasz said:
Can you teach me how to make that meta inf stuff?
Sent from my X10a using XDA Premium App
Click to expand...
Click to collapse
In META-INF create \com\google\android folders for update-script file.
Make update-script a text file containing the following
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
Be sure to add an extra blank line after "show_progress 0.1 10"
Compress META-INF and system folders to a zip, then move to your sd and sign with signAPKtic which is a free app in the market. Use "test keys" to sign. (signAPKtic is easiest to me,or you can use 1 of the methods Shiwantha suggested to sign)
I would also suggest zipaligning your apks before adding them to optimize your phone's performance when accessing them. Search zipalign on XDA and you'll find what you need...
*Edit- Also, X10 Mod Tool is great for pushing/pulling apks via adb without all the typing. I use it a LOT when testing different pieces of themes.
AyDee said:
In META-INF create \com\google\android folders for update-script file.
Make update-script a text file containing the following
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
Be sure to add an extra blank line after "show_progress 0.1 10"
Compress META-INF and system folders to a zip, then move to your sd and sign with signAPKtic which is a free app in the market. Use "test keys" to sign. (signAPKtic is easiest to me,or you can use 1 of the methods Shiwantha suggested to sign)
I would also suggest zipaligning your apks before adding them to optimize your phone's performance when accessing them. Search zipalign on XDA and you'll find what you need...
*Edit- Also, X10 Mod Tool is great for pushing/pulling apks via adb without all the typing. I use it a LOT when testing different pieces of themes.
Click to expand...
Click to collapse
I think adb mask controller can do it in the zipalign tab> zipalign /system/app button.
And what format does the text file need to be in?
Signapktic is either telling me the zip doesnt exist or gives me an unzp error... and I supposed to me signing the apk's or the zip?
EDIT: I think I got it. Zip signer instead of signapktic. Let's see what my phone does.
Ok it looks like it worked.
Make sure there are no spaces in the zip's name. Looks like you got it!
Sent from my X10a using XDA App
AyDee said:
Make sure there are no spaces in the zip's name. Looks like you got it!
Sent from my X10a using XDA App
Click to expand...
Click to collapse
So does that mean it worked for you?
EDIT: Oh, I'm stupid, I didn't even post it. Can you test it please?
It looks like it's signed already. Are you asking me to test the app or signature?
Sent from my X10a using XDA App

[TUT] So you want to start themeing in Windows?

Hey guys! Someone recently posted that they wanted to start to making their own themes and I posted a very long reply and figured, might as well post a "somewhat easy to understand" tutorial here for everyone.
So you want to make your own themes?
First off, it is important to know that if you plan on porting any themes over and releasing it to the masses, that you get permission from the theme owner first!!
DISCLAIMER: I AM NOT RESPONSIBLE IF YOUR PHONE EXPLODES OR MELT! lol
NOTE: IF YOU'RE A NOOB (you know if you are) DO NOT MESS WITH ANY IMAGE THAT ENDS IN ".9" UNTIL YOU READ UP ON THEM.......A LOT! IF YOU'RE JUST REPLACING AN IMAGE, THEN READ ON.
A good write up on .9 (9 patch) images can be found here:
http://developer.android.com/guide/developing/tools/draw9patch.html
What you will need:
Apkmanager: http://forum.xda-developers.com/showthread.php?t=695701
7zip: http://www.7-zip.org/download.html
An empty flashable zip: http://www.multiupload.com/DBEMBUOCND
Lot's of time on your hands!
GETTING STARTED:
Apkmanager is going to be your "all-in-one" tool for making a theme in Windows.
(I'll go into all the options of apkmanager a little later)
The process you need to follow is actually kind of simple. It's just very time consuming.
First you will need to make the images that you want (unless you are porting a theme).
Now what you need to do is one way or another, get the framework-res.apk and the SystemUI.apk from your phone, if you want to theme the launcher then you need to get the TouchWiz30Launcher.apk as well. (If you don't want to mess with using adb, use Root Explorer, just copy the apk then paste on your sdcard, then copy and paste from your sdcard onto your pc.)
Extract apkmanager to somewhere easy like the desktop and you should end up with a folder named "apkmanager" or whatever.
Inside that folder, you should have the following folders:
Other
place-apk-here-for-modding
place-apk-here-for-signing
place-apk-here-to-batch-optimize
place-ogg-here
projects
Then the following files:
log
Script
DO NOT MODIFY THE NAMES OF ANY OF THESE FILES OR FOLDERS OR NOTHING WILL WORK!
Take the 3 files that you got from your phone and place them in the "place apk here for modding" folder.
Double click to open the "Script" file
Press "22" and hit enter to set your current job
Select either 1,2 or 3 for whichever apk you want to start on first
Select "9" to decompile
Once decompile is done, go inside the "projects" folder and now you have a folder inside there with whatever the name is of the apk you just decompiled.
Inside that folder are the images and XML files you need to replace (you might not have to edit any of the XML files, that's a little more advanced unless you already know how to.)
Most of the images you will need to edit will be in the following folders of each apk:
res>drawable
res>drawable-hdpi
You can look around in there and see what all needs to be done. I will get into themeing the contacts and phone and all that a little later.
Once you get everything done and you're ready to test it out, you need to go back to that "Script" file in apkmanager and open it back up. Now you're going to do pretty much the same stuff you did when you were decompiling the apk, in order to compile the apk.
In the Script for apkmanager, you're going to press "22" and hit enter, then select which file you want to compile first by either pressing 1,2 or 3.
Select the file and hit enter, then press "11" and press enter to compile the apk. As long as you didn't mess anything up during the process of changing stuff, you shouldn't receive any errors. If you do, you need to figure out what it was you messed up on and fix it.
Go through and compile the apks that you edited. Once that is done, you will go to your "place apk here for modding" folder again and you will notice that you have 3 new files in there:
unsignedframework-res.apk
unsignedSystemUI.apk
unsignedTouchWiz30Launcher.apk
Remember that empty flashable zip you downloaded earlier? Now you need it.
Right click on the flashable zip and mouse over "7zip" and click on "Open Archive"
Take the unsignedSystemUI.apk and the unsignedTouchWiz30Launcher.apk and place them in the "app" folder. Now rename those to their original names:
SystemUI.apk
TouchWiz30Launcher.apk
Now take that unsignedframework-res.apk and place it in the "framework" folder of the flashable zip. Rename that one to "framework-res.apk."
Now you can close out of the flashable zip file and place it on your sdcard.
Reboot into recovery, wipe cache partition, wipe dalvik, now go to "mounts and storage" and mount /system.
Now go back and flash the zip file you just put on your sdcard.
Since you wiped your cache and your dalvik, the reboot will take a little while. You should now be good to go!
NOTE: Since I did not create apkmanager, I will not be able to answer many questions about it but feel free to ask. If I don't have an answer for you, Just go back to the post above where you downloaded it, and post your question there.
As stated earlier in my post, I will get more in depth about all this stuff as soon as I have a little more time to post everything.
Please enjoy and happy themeing!!!!!!
Thank you for this spc.
wampuscat said:
Thank you for this spc.
Click to expand...
Click to collapse
Not a problem! I'm going to add more stuff as soon as I get more time. Also, if there are any other themers that want to contribute like ForeverSupra or Endless or Stranula. Please send me a PM and I'll add your stuff to the OP as well!
spc_hicks09 said:
Not a problem! I'm going to add more stuff as soon as I get more time. Also, if there are any other themers that want to contribute like ForeverSupra or Endless or Stranula. Please send me a PM and I'll add your stuff to the OP as well!
Click to expand...
Click to collapse
Ima be all over this. 12 hr nightshift coupled with a mild case of OCD=awesome sauce ....you da man
In ApkManager you don't need to decompile the apk's. You just need to extract them because all you're doing is messing with the images.
wyllic said:
In ApkManager you don't need to decompile the apk's. You just need to extract them because all you're doing is messing with the images.
Click to expand...
Click to collapse
True but might as well get people used to it.
Sent from my SCH-I510 using Tapatalk
Spc. There is an ultimate draw 9 patch out that makes editing the .9's so much easier once you have patched them. You may want to add that to the op, Stoney from BadSeed showed it to me and its so easy now, no need for eclipse.
Sent from my SCH-I510 using xda premium
thanks for this man i have been wanting to get intto developing but i figure i would stick with something a bit more simplier... plus once i learn i can develop a theme for my wifes epic not many options for g.b. overthere glad this got stickied or at least it seems that way.... hit the thanks button on my o.p in general thanks...
Wow is it seriously that easy???? Well I guess I'm starting to theme then. I'm going to start asap. I can't thank you enough btw this is really a good thing here.
Cool! I didn't even know about that. Is there any way you could possibly find a link so I can add it?
cbrown245 said:
Spc. There is an ultimate draw 9 patch out that makes editing the .9's so much easier once you have patched them. You may want to add that to the op, Stoney from BadSeed showed it to me and its so easy now, no need for eclipse.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
Going to look for it now!
bfitzpatrickd2d said:
thanks for this man i have been wanting to get intto developing but i figure i would stick with something a bit more simplier... plus once i learn i can develop a theme for my wifes epic not many options for g.b. overthere glad this got stickied or at least it seems that way.... hit the thanks button on my o.p in general thanks...
Click to expand...
Click to collapse
Just so everyone knows, here soon I'm also going to be posting a tutorial on how to center the clock and move around your icons and stuff in the statusbar!
I had all the knowledge in the OP and decided I was going to start theming. Then I saw the literally hundreds of PNG's i would have to edit and decided it isn't for me lol. I get bored too easily to spend that much time in photoshop/gimp haha.
That said, I really appreciate what themers do.
skydeaner said:
I had all the knowledge in the OP and decided I was going to start theming. Then I saw the literally hundreds of PNG's i would have to edit and decided it isn't for me lol. I get bored too easily to spend that much time in photoshop/gimp haha.
That said, I really appreciate what themers do.
Click to expand...
Click to collapse
same here, wish I had the time lol and that's why I try and do what I can i.e. donating, testing, helping out here...
doesn't mean I don't know my way around in the internals of roms/themes though haha
sent from my Acer Iconia A500 tablet via XDA app
spc_hicks09 said:
Cool! I didn't even know about that. Is there any way you could possibly find a link so I can add it?
http://forum.xda-developers.com/showpost.php?p=19215317&postcount=595
Here is the link to the op Papa Smurf151 so all thanks to him.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
cbrown245 said:
spc_hicks09 said:
Cool! I didn't even know about that. Is there any way you could possibly find a link so I can add it?
http://forum.xda-developers.com/showpost.php?p=19215317&postcount=595
Here is the link to the op Papa Smurf151 so all thanks to him.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
Thanks man!
P.S.
I got a really good theme coming up very soon that will flash over Stock EP4D....stay tuned kids!!!
Once I get the main stuff done (framework, systemUI, settings.apk) I will release it then will add more stuff as I go.
Click to expand...
Click to collapse
spc_hicks09 said:
cbrown245 said:
Thanks man!
P.S.
I got a really good theme coming up very soon that will flash over Stock EP4D....stay tuned kids!!!
Once I get the main stuff done (framework, systemUI, settings.apk) I will release it then will add more stuff as I go.
Click to expand...
Click to collapse
Lol so do I. I have been testing on my phone for about 2 weeks just adding as I go along.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
I might give it a shot but yeah just for the battery there is like, umm never mind alot of files. I sure I will have alot of questions and ask people to use stuff of course with credit due to them.
blueis300 said:
I might give it a shot but yeah just for the battery there is like, umm never mind alot of files. I sure I will have alot of questions and ask people to use stuff of course with credit due to them.
Click to expand...
Click to collapse
Just now kind of finished one for EP4D, getting ready to post it soon.
When flashing with the zip you provide it says place your txt here. How do you find where to place my txt? I would like to add my txt.
Sent from my SCH-I510 using xda premium
cbrown245 said:
When flashing with the zip you provide it says place your txt here. How do you find where to place my txt? I would like to add my txt.
Sent from my SCH-I510 using xda premium
Click to expand...
Click to collapse
It's the "updater-script"
To get to the updater script, of the zip file. Open the zip file with 7zip and go to:
META-INF>com>google>android
Open the updater script with Notepad++ or whatever text editor you use. Only the edit the text that says "place your text here" or you can mess up the entire zip file and it won't flash.
spc_hicks09 said:
It's the "updater-script"
To get to the updater script, of the zip file. Open the zip file with 7zip and go to:
META-INF>com>google>android
Open the updater script with Notepad++ or whatever text editor you use. Only the edit the text that says "place your text here" or you can mess up the entire zip file and it won't flash.
Click to expand...
Click to collapse
Once I open it with ++ it will not slow to edit anything. ???
Sent from my SCH-I510 using xda premium

2/18 Custom Soft Keys ICS / Flashable Zip

Here are some custom soft keys I made. Flash thru recovery. These are for ice cream sandwich.
word:http://www.mediafire.com/?mnjee0q6jn2a0oe
star:http://www.mediafire.com/?esy4n83s97ro4i3
ribbon:http://www.mediafire.com/?qz41x5iupipw8z0
http://dizzythemes.blogspot.com/
See attached for return to stock zip.
added flashable zip
adizzyx said:
added flashable zip
Click to expand...
Click to collapse
how to undo this after i want to uninstall ?
thanhtrung0111 said:
how to undo this after i want to uninstall ?
Click to expand...
Click to collapse
Just flash rom again. I will make a return to stock zip when I get a chance.
Matches very well and looks good
foxdog66 said:
Matches very well and looks good
Click to expand...
Click to collapse
Thank you
Sent from adizzys tbolt
Added star zip
Added ribbon mod
adizzyx said:
Added ribbon mod
Click to expand...
Click to collapse
I really like these one's good job!
help
hmmmm...they really look nice in the screenshots but you really should say strictly for ICS roms in all of your flashable zip posts that require an ics rom because the way you post it makes it seem that thats the theme of them..or atleast thats how i saw it which is why i flashed on top of barebones now all i get is a blank screen(yes i can get into recovery) was wondering if you or anyones else could make/share/show me a flashable zip with the original softkeys of cm7 because id rather not reflash the whole rom. please someone respond soon. (and of course my dumb a** didnt backup) or let me know if reflashing the rom will erase my settings or other misc. things ive changed.
well yea i just made a backup of my no screen showing and reflashed barebones which did reinstall/change certain things so im hoping a version of the softkey.zip for cm7 would help if i restored back then flashed that so hopefully someone will help me out soon :/
If you have the ROM on your sdcard and adb setup, you can adb pull /sdcard/wherever/the.zip is to your computer (or just go download the ROM) you can pull what you need from it and adb push the.apk to system/where/it/needs/to/go. Probably also need to adb shell chmod 644 path/to/the.apk and reboot.
I have already made special zip's for myself to use with zipthemer. the zip's only have the theme mod in them and the app will create a update.zip and a undo.zip from whatever ROM your on that you can flash in recovery. If the OP states he does not mind, I'll post them.
Just reflash your original ROM. I will edit the OP.
It says ICS in title.
Sent from adizzys tbolt
foxdog66 said:
If you have the ROM on your sdcard and adb setup, you can adb pull /sdcard/wherever/the.zip is to your computer (or just go download the ROM) you can pull what you need from it and adb push the.apk to system/where/it/needs/to/go. Probably also need to adb shell chmod 644 path/to/the.apk and reboot.
I have already made special zip's for myself zipthemer. the zip's only have the theme mod in them and the app will create a update.zip and a undo.zip from whatever ROM your on that you can flash in recovery. If the OP states he does not mind, I'll post them.
Click to expand...
Click to collapse
I'm not quite sure where or what APK it is that holds the soft keys if you could tell me where/what I could maybe try it.
And your special zip method thing sounds good if ima understanding correctly. From what I read are you saying that me flashing that will remove the last flashed item?
Sent from my GT-P1000 using xda premium
adizzyx said:
Just reflash your original ROM. I will edit the OP.
It says ICS in title.
Sent from adizzys tbolt
Click to expand...
Click to collapse
If you read what I edited you would see I already did that but id rather not go through all the work of removing and fine tuning the ROM again when I believe just reflashing a correct softkeys.zip will fix it.....I think....hope
Sent from my GT-P1000 using xda premium
collinsac24 said:
I'm not quite sure where or what APK it is that holds the soft keys if you could tell me where/what I could maybe try it.
And your special zip method thing sounds good if ima understanding correctly. From what I read are you saying that me flashing that will remove the last flashed item?
Sent from my GT-P1000 using xda premium
Click to expand...
Click to collapse
The soft keys are in systemui.apk
Sent from adizzys tbolt
alright thanks il try it out when i get home
foxdog66 said:
I have already made special zip's for myself to use with zipthemer.the zip's only have the theme mod in them and the app will create a update.zip and a undo.zip from whatever ROM your on that you can flash in recovery. If the OP states he does not mind, I'll post them.
Click to expand...
Click to collapse
wasnt thinking earlier and reread this now i get what you are saying lol im new to all this and hadnt heard of zipthemer but thanks i think this could help me now and in the future

[HowTo] Odex FRAMEWORK, all Android versions may apply.

Here in this tutorial, I will show some facts about Deodex and Odex, then explain how to odex the framework of a ROM(which is pretty annoying, you'll find out). Credits goes to myself
This method should work on all Android devices.
------------------------------------------------------------------------------------------------------------
First of all, what is odex? Something you should know about classes.dex.
Odex stands for Optimized dex. I'm not gonna explain a lot because I'm not sure if I'm right. First of all, in typical apk files, when you open it with WinRAR or something like that, you can find a file called "classes.dex"(this type of apk is deodexed). This file is the key. It contains the core codes of the apk. However the other type of apk comes with an *.odex file and doesn't have classes.dex inside the apk file. This is odexed apk. There are 2 types of ROMs here, odexed and deodexed. Odexed ROMs' classes.dex are already out of the apk files, while deodexed ROMs' classes.dex are still in the apks. When Android executes an apk, it has to extract the classes.dex out and execute it. So when you flash an deodexed ROM, the first boot takes a long long time since the Android system needs to extract all the classes.dex into dalvik-cache(it shows "Optimizing apks" on the screen for 4.0 ROMs, shows boot animation on screen for 2.3 or below ROMs). However for the odexed ROMs, because the classes.dex are already out there, the system just grabs them and use them, without wasting time and storage space extracting classes.dex out.
Why odex framework?
It can boost your device a little by odexing your framework. Your phone can run more efficiently. Although it's a complicated process, but trust me, it's worth it.
What is so special about odexing framework files? What's the difference?
Odexing an app is very easy, and I believe everyone knows how to do it. But odexing framework is really annoying. Why? Because apps and more like stand-alone things, they are not a part of system. You delete it, nothing bad happens, your phone still boots, you just get endless FC if you delete the wrong one, or missing status bar, that's all. But framework files you cannot mess around. They are parts of the system. They have to match the system's codes precisely, without any error, even the order of files(keep this in mind, very important). So for every ROM, the framework initialize codes are different(same RUU or other ROM based ROMs count as its base ROM), and you must modify the odexing binary to make it odex for you properly, or you can sit and watch the beautiful bootloop.
What's the relationship between odexing apps and odexing framework?
Simple, but important. If you odexed apps, you cannot touch the framework. Framework always goes in the first place. If you wanna odex both, you must odex framework first. Or... "The Tragedy of App and Framework"...
So what do we have to keep in mind before we start?
Keep your mind clear, prepare a bag of ice in case you feel dizzy with the codes, and MAKE ENOUGH SPACE FOR FRAMEWORK ODEXING. I would prefer you remove a few useless apks in /system/app first to make more room in system partition. Failing odexing may brick your device forever! Nah just kidding it will only cause you to bootloop. No big deal. Also, it won't odex your framework-res.apk and always will not, so don't feel bad and do it again and again till your phone burn . Make sure your device is ROOTED and enable USB debug. You need Java Runtime Environment.
What tools do you need?
Notepad++ and a magical rar that contains all you need to success.
Let's get started.
------------------------------------------------------------------------------------------------------------
1. Use your file manager to find init.rc at the very root directory of your phone and copy it to SDCard for later code editing, or you simply adb pull it out and skip the coping step. (If you know how to compile boot.img it is even easier, just unpack boot in Android Kitchen, look for line "export BOOTClassPATH". I'm not gonna introduce that method since most people can't. Silly me, didn't I just intoduced that? XD)
2. Connect USB, set mode as disk drive so you can access your SDCard. Copy init.rc into your computer. Open it with notepad, and find where it says "export BOOTClassPATH", create a new file and copy line "export BOOTClassPATH" into the new file. For example:
Code:
export BOOTCLASSPATH/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/HTCExtension.jar:/system/framework/com.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framework/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.jar:/system/framework/com.orange.authentication.simcard.jar:/system/framework/android.supl.jar:/system/framework/com.ecrio.sip.jar
3. Open dexopter in the rar you downloaded with Notepad++. Find the lines that show the similar contents to the things after "export BOOTClassPATH". It is Line 21 to Line 35 on my laptop. Edit them according to the things you just copied out of init.rc. For example, if the first file is "X.jar", then you will have to edit the line into "dexopt-wrapper/system/framework/X.jar /system/framework/X.odex". Then repeat until you finish with all the files that are listed in the long list you copied out of init.rc. File order DOES MATTER. Use the bag of ice I told you to prepare eariler to make you sober if you feel dizzy with the codes. The lines may be more or less after you edited them, doesn't matter.
4. Copy "dexopter" and "dexopt-wrapper" into /system/bin and set the correct permissions. Make sure they have enough permission to change your system files. Restart your phone.
5. Go to CMD and lead it to where adb.exe is(included in the rar). Type these in order:
Code:
adb shell
su
cd system/framework
dexopter fr
Then the codes will run crazy in your cmd window... The odex process has begun!
6. If the odex process completed without error, you are half way there! Well it doesn't mean you have to stare at your screen during the process. It's about time we figure it out! The phone will automatically reboot once it's finished. If it doesn't and you are sure all are done, reboot manually.
7. If you can't boot properly, go back and check everything carefully. If you can, then open your file manager and copy the entire framework directory into your SDCard. You can still adb pull and skip the next coping step.
8. Mount SDCard. Go into framework directory on your computer. Open every file that has an odex file with it, delete the classes.dex inside. WinRAR is okay. The files may seem ridiculously small after you delete the classes.dex, but don't worry since classes.dex are already pulled out and turned into odex files.
9. Copy the whole framework folder into the folder where adb is at. Use adb to push all the files back into /system/framework.
Code:
adb root
adb remount
adb push framework /system/framework
adb shell
su
chmod /system/framework xxx (xxx is a permission code, depends on your ROM. They should be the same as the old deodexed framework files. Use Google to find out how to use the permission codes.)
10. After all the files are pushed in, reboot your phone.
11. If it still boots into the system, congratulations! You've successfully odexed your framework! If it doesn't, then go back and read everything carefully. The most common error occurs when you are editing the dexopter code. You will have to redo everything again.
Done! Everything is ready to go!
You can directly grab the files you've odexed and put it in your custom ROM(must be the same base), just don't forget the odex files.
------------------------------------------------------------------------------------------------------------
Okay, hmm, what to say now? Still, I would be glad if you donated me, but if you don't it's okay, just reply and hit thanks .
Oh almost forgot, the magical rar: http://d-h.st/tYi
------------------------------------------------------------------------------------------------------------
Big thanks to Scott, see him in #3. He explained why some files aren't odexed and provided a easier method(but they all get you dizzy )
Big thanks to JSLEnterprises, see him in #4. He provided a newer busybox for Scott's method.
If you can, send me a PM on how to odex apps.
Sent from my HTC One X using Tapatalk 2
BreatheHT said:
Here in this tutorial, I will show some facts about Deodex and Odex, then explain how to odex the framework of a ROM(which is pretty annoying, you'll find out). Credits goes to myself
Also, it won't odex your framework-res.apk and always will not, so don't feel bad and do it again and again till your phone burn . Make sure your device is ROOTED and enable USB debug. You need Java Runtime Environment.
Click to expand...
Click to collapse
Good write up. Other files that wont "re-odex" are com.htc.resources.apk, com.htc.videowidget.res.apk, com.htc.weather.res.apk and framework-htc-res.apk.
The reason? The files dont have .dex files because there is no code in them. These files just carrier resources like images (for those that didint know).
The .dex files are the actual smali code that devs mod to make the ROM do crazy things
Also, an easier method can be found here: http://themikmik.com/showthread.php?12988-Tool-App-Dexo-the-Universal-Odex-Utility
It does it all and pulls the bootclass for you. And it also does /system/app/ in one simple shot.
Also, one last thing... You can just as easily pull the files back to the PC using the ADB Pull command...
Code:
adb pull /system/app ./app
adb pull /system/framework/ ./framework
EDIT: And another simple method to get your bootclass is do another ADB Pull
Code:
add pull init.rc
I find the adb pull method quicker and more simple...
theking_13 said:
If you can, send me a PM on how to odex apps.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
You can use the method I just explained or if you want to try the framework manually then do apps seperately then you can use this: http://forum.xda-developers.com/showthread.php?t=1514576
I use that app to re-odex updated files in the ROM. For example... If Gmail updates (which it just did) I would remove the old gmail files from system/app/ and put the new one in and run that program then pull the files.
-Scott
If anyone finds this to be too much work... dont worry... it only unpacks the classes.dex once. It will only need to unpack a dex if original file has changed (changed entries need to propogate). That's why all the consecutive boots are back to a 'normal' span of time.
re-odexing your roms IS recommended if either A) you're anal-retentive/have OCD or B) propogation ("Android is Upgrading...") happens every time you reboot your device (it happens sometimes)
If you're going to use the tool scrosler linked to, replace the busybox binary with the one inside the attatched zip (this is busybox 1.20.1). The one that come with the tool is pretty dated.
:good:
Update: Busybox 1.20.2 has been released (though not compiled for android use yet)
Great stuff guys.
scrosler said:
Good write up. Other files that wont "re-odex" are com.htc.resources.apk, com.htc.videowidget.res.apk, com.htc.weather.res.apk and framework-htc-res.apk.
The reason? The files dont have .dex files because there is no code in them. These files just carrier resources like images (for those that didint know).
The .dex files are the actual smali code that devs mod to make the ROM do crazy things
Also, an easier method can be found here: http://themikmik.com/showthread.php?12988-Tool-App-Dexo-the-Universal-Odex-Utility
It does it all and pulls the bootclass for you. And it also does /system/app/ in one simple shot.
Also, one last thing... You can just as easily pull the files back to the PC using the ADB Pull command...
Code:
adb pull /system/app ./app
adb pull /system/framework/ ./framework
EDIT: And another simple method to get your bootclass is do another ADB Pull
Code:
add pull init.rc
I find the adb pull method quicker and more simple...
You can use the method I just explained or if you want to try the framework manually then do apps seperately then you can use this: http://forum.xda-developers.com/showthread.php?t=1514576
I use that app to re-odex updated files in the ROM. For example... If Gmail updates (which it just did) I would remove the old gmail files from system/app/ and put the new one in and run that program then pull the files.
-Scott
Click to expand...
Click to collapse
hehe yep I know the adb pull command, I thought about it and I didn't put it in...
theking_13 said:
If you can, send me a PM on how to odex apps.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
You confused bro?
Thanks. Even though I won't ever be doing this, it's good to know what's going on.
This is awesome. Thanks so much for this. I wanted to know how to odex and deodex roms.
Sent from my HTC One XL using xda app-developers app
scrosler said:
Good write up. Other files that wont "re-odex" are com.htc.resources.apk, com.htc.videowidget.res.apk, com.htc.weather.res.apk and framework-htc-res.apk.
The reason? The files dont have .dex files because there is no code in them. These files just carrier resources like images (for those that didint know).
The .dex files are the actual smali code that devs mod to make the ROM do crazy things
Also, an easier method can be found here: http://themikmik.com/showthread.php?12988-Tool-App-Dexo-the-Universal-Odex-Utility
It does it all and pulls the bootclass for you. And it also does /system/app/ in one simple shot.
Also, one last thing... You can just as easily pull the files back to the PC using the ADB Pull command...
Code:
adb pull /system/app ./app
adb pull /system/framework/ ./framework
EDIT: And another simple method to get your bootclass is do another ADB Pull
Code:
add pull init.rc
I find the adb pull method quicker and more simple...
You can use the method I just explained or if you want to try the framework manually then do apps seperately then you can use this: http://forum.xda-developers.com/showthread.php?t=1514576
I use that app to re-odex updated files in the ROM. For example... If Gmail updates (which it just did) I would remove the old gmail files from system/app/ and put the new one in and run that program then pull the files.
-Scott
Click to expand...
Click to collapse
Is there also a tool to deodex roms?
Sent from my HTC One XL using xda app-developers app
SkizzMcNizz said:
Is there also a tool to deodex roms?
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
Like Scott posted?
Basically that is the steps right there..you are doing the apk in the system/app and framework.
That link provides a tool which when done properly will run on the de-odexed stock Rom and odex it...
Good luck with that...it's a nightmare...haha..
SkizzMcNizz said:
Is there also a tool to deodex roms?
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
Yep Android Kitchen can do it.
Hopefully this will help to see more odex ROMs
This is the first phone I've had where developers strive to odex their roms
Something to get used to
Sent from my HTC One X using Tapatalk 2
superchilpil said:
This is the first phone I've had where developers strive to odex their roms
Something to get used to
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Most official ROMs are odexed.
BreatheHT said:
Most official ROMs are odexed.
Click to expand...
Click to collapse
Quite the opposite where I come from
Although I came from a different carrier so this side of the forums is different
Sent from my HTC One X using Tapatalk 2
superchilpil said:
Quite the opposite where I come from
Although I came from a different carrier so this side of the forums is different
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Nah carrier doesn't matter.
SkizzMcNizz said:
Is there also a tool to deodex roms?
Sent from my HTC One XL using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1208320
(you'll have to update the versions included in the zip as this thread is dated - 2011)
Note: the API level for 4.0.3/4.0.4 (what our HOX's run) is '15'.
you can also use DSIXDA's kitchen which can be used to batch deodex apk's after you set the api level
(it's defaulted to '10'... which was Gingerbread -> 2.3.3-2.3.7)
Full list of API levels for their specific Android versions
BreatheHT said:
hehe yep I know the adb pull command, I thought about it and I didn't put it in...
Click to expand...
Click to collapse
Yeah, I like to do it better that way. Dont have to move my hands from the keyboard and mouse. Makes you more efficient :good:
BreatheHT said:
Most official ROMs are odexed.
Click to expand...
Click to collapse
I think all?
superchilpil said:
Quite the opposite where I come from
Although I came from a different carrier so this side of the forums is different
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Carrier is irrelevant. Most people dont know how to work with ODEX files so they go with de-odex. Its mroe challanging but provides a better experience.
techlogik said:
Like Scott posted?
Basically that is the steps right there..you are doing the apk in the system/app and framework.
That link provides a tool which when done properly will run on the de-odexed stock Rom and odex it...
Good luck with that...it's a nightmare...haha..
Click to expand...
Click to collapse
No he is asking to go the other way from odex to de-odex.
BreatheHT said:
Yep Android Kitchen can do it.
Click to expand...
Click to collapse
JSLEnterprises said:
http://forum.xda-developers.com/showthread.php?t=1208320
(you'll have to update the versions included in the zip as this thread is dated - 2011)
Note: the API level for 4.0.3/4.0.4 (what our HOX's run) is '15'.
you can also use DSIXDA's kitchen which can be used to batch deodex apk's after you set the api level
(it's defaulted to '10'... which was Gingerbread -> 2.3.3-2.3.7)
Full list of API levels for their specific Android versions
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Yep, I love that script. I was the one that sent him the mnt point file for the HOX :highfive:
I am going to talk to him about bringing in "official" support for the Asus TF300T. I got the boot.img fiugred out this morning! Woot. **** is about to get real with the Asus!
superchilpil said:
This is the first phone I've had where developers strive to odex their roms
Something to get used to
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
its a good final touch when cook done with smali tweaks.
another benefit is sorta kang-protection

Categories

Resources