I created my rom and took the easy way out with the theming, I went to UOT kitchen and had it made and then manually tweaked it to my liking. Now I need to get it into my rom and I dont know how. It comes in a flashable zip that includes the updater-script, update-script, and update-binary and a folder with the settings along with my usual framework-res.apk.
How do I go about doing this? Is there a script I can use to have it first flash my rom then afterwards flash the theme?
flapflip22 said:
I created my rom and took the easy way out with the theming, I went to UOT kitchen and had it made and then manually tweaked it to my liking. Now I need to get it into my rom and I dont know how. It comes in a flashable zip that includes the updater-script, update-script, and update-binary and a folder with the settings along with my usual framework-res.apk.
How do I go about doing this? Is there a script I can use to have it first flash my rom then afterwards flash the theme?
Click to expand...
Click to collapse
Remove the apk from the UOT Zip and replace it with the one in your ROM.
Nevermind, just wrote up a simple script for it, then extracted and dropped it in my update folder. Nothing too hard
Related
I'm trying to make my own theme so to say and have all the icon files I want changed and put into a zip file that I renamed to have an APK extension. Now how do I make this work on my phone? I modified the original one I had on my phone (which just came with services.jar and framework-res). Replaced the files in framework-res, rezipped and such. When I transferred it over I couldn't get a boot, so I went back to the original. What am I missing? THanks!
oh yeah, and metamorph isn't supported on the rom I'm using yet
you're going to have to manually package, sign and flash the file. best way to do it is to start off using the stock theme template for the rom you're using, remove the excess, replace the appropriate files, sign the zip and flash. dont rename it to be an apk unless it is actually an apk that you're theming (a la phone.apk). a full flashable theme is always going to be a zip.
Hi,
When I flash the battery circle mod (http://forum.xda-developers.com/showthread.php?t=730673) through recovery as an update on my phone, everything goes well.
I even made one myself with Apk manager (http://forum.xda-developers.com/showthread.php?t=695701) using the stock framework-res.apk file and it works just fine.
I have cooked my own rom based on 2.03.405.3 with the kitchen (http://forum.xda-developers.com/showthread.php?t=633246) (rooted, disabled the bootsound and deodexed the whole rom).
Now I putted the battery circle mod (tried with both of them) into my rom using winrar and replaced the framework-res.apk and signed the rom.
But when I flash this rom on my phone, my phone gets stuck in a bootloop. I already searched with google to find similar problems but didn't find any. No mather what I try, it always ends with a boot loop
Anyone who can help me out???
Did you tried flashing other rom?
jup, i already flashed some roms from other members + some that i made myself and no problems at all
Open your original framework-res.apk with 7zip (not extract, just open) replace the file (use drag and drop), except for meta file and sign file, and afrer finish just close the 7zip, now you have modified framework-res.apk and cook it. It's very easy yeah.......
Sent from my HTC Legend using Tapatalk
BesFen said:
Open your original framework-res.apk with 7zip (not extract, just open) replace the file (use drag and drop), except for meta file and sign file, and afrer finish just close the 7zip, now you have modified framework-res.apk and cook it. It's very easy yeah.......
Click to expand...
Click to collapse
Guess it ain't that easy. Tried it exactly the way you said and again bootloop
I have made my rom.zip with dsixda's HTC Android Kitchen.
I open this rom with 7-zip and extract the framework-res.apk file and I leave my rom open.
Then I open the framework-res.apk with 7-zip, I drag and drop the files that need to be replaced and I close the file.
I then sign framework-res.apk with stericson's autosigner and drag and drop the signend file into my still open rom.zip which I then close.
I sign the rom.zip an put it on my sd-card.
I go into recovery, wipe data/factory reset and wipe the dalvik cache and then flash the zip and reboot.
And again I have a bootloop
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Attached: logcat file with my bootloop error. (Other error than the one I my first post)
nobody who can help me ???
Did you deodex or get already deodexed framework?
Do you wipe data partition every time you flash this ROM of yours?
BlaY0 said:
Did you deodex or get already deodexed framework?
Do you wipe data partition every time you flash this ROM of yours?
Click to expand...
Click to collapse
My whole rom is deodexed with the kitchen. There are no .odex file in my rom.
And yes i always wipe before I flash
OK, let's get this straight... you wipe data, then flash your rom (without updated framework-res.apk), then boot and just after that (in second recovery session) you push new framework-res.apk, reboot again and it works? Or... you wipe your data, flash rom, push new framework-res.apk (via update), reboot and it works?
Did you make some logcat of failed attempt?
matn013 said:
Guess it ain't that easy. Tried it exactly the way you said and again bootloop
I have made my rom.zip with dsixda's HTC Android Kitchen.
I open this rom with 7-zip and extract the framework-res.apk file and I leave my rom open.
Then I open the framework-res.apk with 7-zip, I drag and drop the files that need to be replaced and I close the file.
I then sign framework-res.apk with stericson's autosigner and drag and drop the signend file into my still open rom.zip which I then close.
I sign the rom.zip an put it on my sd-card.
I go into recovery, wipe data/factory reset and wipe the dalvik cache and then flash the zip and reboot.
And again I have a bootloop
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Attached: logcat file with my bootloop error. (Other error than the one I my first post)
Click to expand...
Click to collapse
I said open framework-res.apk with 7zip before you cook it, replace the file and close it, no need to sign it, and cook your rom. It's working well on mine.
Sent from my HTC Legend using Tapatalk
matn013 said:
But when I make an update.zip of the edited framework-res.apk and I flash then I have no problems at all.
Click to expand...
Click to collapse
...so I guess problem is somewhere else?
BesFen said:
I said open framework-res.apk with 7zip before you cook it, replace the file and close it, no need to sign it, and cook your rom. It's working well on mine.
Sent from my HTC Legend using Tapatalk
Click to expand...
Click to collapse
So what do you mean by "and cook your rom"? Replace the changed framework-res.apk file in my rom.zip and run my rom through the kitchen again?
Because I just did that and it doesn't work either
matn013 said:
So what do you mean by "and cook your rom"? Replace the changed framework-res.apk file in my rom.zip and run my rom through the kitchen again?
Because I just did that and it doesn't work either
Click to expand...
Click to collapse
Don't replace the framework-res.apk, extract your modified framework-res.apk, you can use winrar/winzip/7zip to extract it, take your custom .png file from it.
If it finish, then open OEM framework-res.apk with 7zip (not extract, just open), then drag and drop your custom .png file that you already take from custom framewoekees into it in same folder in 7zip, then build your rom.
Sent from my HTC Legend using Tapatalk
Did you mess with other files?
wrong permisions?
maby need to update you updater-script with file owner etc
I'm a noob at this... I searched the forum but couldn't find any information.
Could someone more knowledgeable explain to me how to decompile and recompile apk's?? More specifically the framework-res??
I read that you can't simply unzip and then rezip... so what do I have to do?
The apk's are zip files that contain the resources (icons, bitmaps, sounds, etc.) as well as the code compiled in a classes.dex file. You can replace the resources after deodexing, but I don't think you will be able to change the compiled code in classes.dex unless you have the source code.
Sent from my SAMSUNG-SGH-I897 using XDA App
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
make your life easier..
search xda for Apk Manager
jslee1020 said:
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
Click to expand...
Click to collapse
I am not sure about editing apk's. To create a flashable zip file through stock recovery, you need to have the META-INF folder correctly created with a working updater script and the manifest and certificate files that you get by signing the zip file. Look into playing with the HTC android kitchen on the chef central section here to automate that process.
Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
shawn328 said:
Alright....I've tried searching and searching but I can't find exactly what I need. I'm wanting to try to port blue echo to cm6.1. Now I'm still a little new at this but I've learned how to smali and baksmali, use flashboot, sdk, sign zips, create flashable zips, zip align, optimize, pretty much all the ends and outs of the basic. I've only been at this 4 months but I love android and want to learn to become a dev. Now I'm trying to learn how to theme roms. There are a million guides that I've found but now will tell me how to do this . Could someone point in the right direction to a thread explaining how to port a sense theme to cm6.1. Ive tried replacing the images in the drawables folders from framework-res . Repackaged zip aligned optimized signed and flashed. Nothing took. So I opened the zip all the images had copied over in the cm6 rom zip. So I wiped and flashed the modded zip it still reverts to the original framework of cm6. I don't understand how that is. I need a way to just copy the colors and images. Does anyone know what I'm doing wrong or know of a how to with just the steps .I already have all the programs on my pc.
Click to expand...
Click to collapse
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
chromiumleaf said:
Download the CyanogenSense theme by mrinehart93 found here: http://forum.xda-developers.com/showthread.php?t=723224
It's a working Sense-looking theme on CM6. Download it, unzip it on your PC, pick it apart, etc. to see how he changed and compiled it to make it work. Hopefully that will help you figure out how to do what you want to do. Good luck.
Click to expand...
Click to collapse
+1 Good idea!
ranger61878 said:
Simplest way, if you just want the icons, pics and notification bar things is to use 7zip for PC. Don't extract the theme, just open it. Navigate to the framework-res.apk file of the new ROM you want the theme to work on, open but don't extract, copy all the .png files from the theme into the ROM or new theme you are making. It will ask you to replace, obviously you say "yes" When you are done, just close it all back up, no recompressing or signing needed because you didn't extract anything. Just put it on your SD card and it will flash.
Let me know if you need more help. This by and large the simplest method for making minor edits to a theme.
Click to expand...
Click to collapse
I did this but had to flash clockword because i was using ra, it wasn't verifying the update. So i turned off signature verification. But I'm using firerat mtd and forgot that i have to repatch the clockword for this so I did'nt really get to see if it worked yet. But thanks all of you responding I appreciate it. Ill let you know if these methods work.
I fixed the prob. Did everything suggested by copying the png's between the zips without extracting them. Even doubled checked all the png's everything looked like it was a go . But I only got 3 of my new icons. Everything else was still stock cm6 even the notification bar was stock. Do I got to do more than just transfer the png's cause it seems like maybe the xml's are reverting them back to stock?
ok so im trying to put together a modded stock ROM
so I've pulled and extracted the /system folder and the boot.img
I've added root to the system.
removed some bloat
anyway I need a updater script, I've read about how to write one but I think it may be easier to call on some help.
I want to put together a solid base to port off
meer_mortal said:
ok so im trying to put together a modded stock ROM
so I've pulled and extracted the /system folder and the boot.img
I've added root to the system.
removed some bloat
anyway I need a updater script, I've read about how to write one but I think it may be easier to call on some help.
I want to put together a solid base to port off
Click to expand...
Click to collapse
Yank one from an existing ROM. That's about the easiest route. This way will also give you an idea of the layout of a zip ROM. The updater-script and updater-binary are located in /META-INF/com/google/android. If memory serves. LOL.