Related
**UPDATE** This project maybe abandoned, after using Stericson's method i found signing to be much easier. You can find his method here. There has been 26 people who downloaded my tool and if those users want me to continue on this project, i will. but i recommend giving Stericson's method a try. You will still need to make sure both Jave JRE and Java JDK are installed with Stericson's Method and also with his script make sure to type in yes or no, not y or n =).
I would appreciate if anyone using my tool would post here if they want me to continue with this project or not.
Right now it will only sign update.zip,framework-res.apk and Launcher.apk. I am working on adding all of the other apks to this app.
This app was built in Visual Studio 2008, you may need .Net3.5 Framework installed to run it.
To use this app just extract it to a folder.
It includes:
update
-update\app
-update\framework
Auto-Sign.exe
signapk.jar
testkey.pk8
testkey.x509.pem
This app works the same as Dave Da illest 1's autosign.bat. If you have signed themes with dave's method you will be able to use this.
You will need to make sure that Java is installed for this to work, make sure to install JRE and JDK here.
Once you extract the files into a folder, copy a theme's update.zip into the root folder. Extract the the files you will be editing, edit your files, drag them back into the apk use this program to sign the apk, drag the apk back into update.zip and use this program to sign the update.zip.
When signing Launcher.apk or any other app's apk the program will look in:
"whatever folder you extracted to"\update\app.
Please leave me any comments or questions i will try to respond to them. If you have any other ideas or plain think this app sucks and i should delete immediately let me know =)
I will add the updates and some screen shots in the next few days.
::UPDATE:: 01/17/09
I made a few changes to the app, I also added the folders that the program is expecting to be there. Now when you load the app it tells you if the files are found or not. Also I added framework-res.apk to the list to be signed.
I am working on a part of the app that will allow it to check if the original file was signed or not. This way it will not create a _signed.apk or zip.
::UPDATE::: 01/18/09
I have added some labels to the GUI that will tell you if the files are found or not. I changed around the buttons and gave a little bit better description under the read me button. I got rid of the message boxes when you started the app. Comment here and let me know what you think.
Sucks.
Just kiddin works fine thank ya. =D
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Stericson said:
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Click to expand...
Click to collapse
Hey Stericson, I changed the code in that app so it doesn't write the new signed file. But i noticed the original file didnt change either. Should signing the file change the modified time when you look at the properties? if not there is there another confirmation, to tell the file has been signed?
yes it should show a modified time.
stericson
Does this work on all apks or just Launcher?
broopa said:
Does this work on all apks or just Launcher?
Click to expand...
Click to collapse
I am running tests on update.zip, Launcher.apk and framework-res.apk. In the next few days i will release a full blown app that will sign all of the apks that people will be editing.
Thanks. I am looking forward to that release. I tried to use the app to resign Launcher.apk and I can't find the Launcher_signed in the app folder.
broopa said:
Thanks. I am looking forward to that release. I tried to use the app to resign Launcher.apk and I can't find the Launcher_signed in the app folder.
Click to expand...
Click to collapse
Give this new version a try and let know how you like it.
Stericson said:
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Click to expand...
Click to collapse
The way the program is now it is a little more work, but a lot of people don't know anything about system variables and eventually i would like to make the program import the files directly into the correct apks and then push them into the update.zip after they are signed and then sign the update.zip itself.
I am still not getting any new files or folders that say ...._signed. I am now using v.65.
broopa said:
I am still not getting any new files or folders that say ...._signed. I am now using v.65.
Click to expand...
Click to collapse
Do you have JRE and JDK installed? If not then go here to download and install the first 2 files.
ahhh i can't wait to use this lol
why do we have to sign these ?
namsir said:
why do we have to sign these ?
Click to expand...
Click to collapse
We have to sign the files because Google setup Android so not just anyone could install anything they wanted. They wanted to have control of what was installed. Which was flubbed by JesusFreke and the other XDA hackers.
Short answer...it is a security measure set by Google.
more proof the universe is against me.
so... i tried using koush's steps to install auto-rotate browser. i first had to download the android sdk, however i cannot get it to install correctly and have never seen the tools folder. then i find out that there is a way that is easier (for me). downloaded the auto-sign app. then, found out i had to download 2 java apps, so i tried. the installation was unsuccessful. this is odd because with all the steps it took to get root, it was actually quite easy. but auto-rotate browser just does not want to be on my G1.
ok, i tried downloading the java apps again, this time, instead of downloading with the sun download manager, i double clicked on the file name to download with my firefox browser and it worked just fine. fyi.
**UPDATE** This project maybe abandoned, after using Stericson's method i found signing to be much easier. You can find his method here. There has been 26 people who downloaded my tool and if those users want me to continue on this project, i will. but i recommend giving Stericson's method a try. You will still need to make sure both Jave JRE and Java JDK are installed with Stericson's Method and also with his script make sure to type in yes or no, not y or n =).
I would appreciate if anyone using my tool would post here if they want me to continue with this project or not.
BTW.. this auto-sign tool was the only way I could get signing to work.. so THANK YOU and I hope you will continue this project.
I built this tool before i had a full understanding about signing. there is no need to sign the other apks...just the update.zip. It signs all the apks below it. so this tool is fully functional. I just didnt know it at the time heh =)
Glad it helped you out.
vista 64 bit?
hello, i was wandering if this would work with vista 64 bit.. for some odd reason on my old computer i was able to sign the files no problem but now with my new computer after "signing" it gets stuck on the animated screen... Is anyone using this and running Vista 64bit?? Have a good day..
So, I'm well-aware that the reason icons can't be changed easily on the Android home screen is because the icon image is stored in the APK file, and editing that image is, essentially, near impossible.
However, I had an idea that could potentially fix that problem, and I'm just curious how realistic the solution is:
As most G1 users know, AnyCut is a great application that can allow a user to create a shortcut to any number of actions on the phone. These shortcuts are customizable by name, and, for the time being, have a limited number of icons, one for each shortcut type.
I also recall using an app several months ago to change the icons of bookmarks (Bookmark 2, I believe it was called). With this app, a user could choose exactly what their icons would look like on the home screen, except, of course, that these icons could only link to bookmarks.
By combining these two applications, wouldn't an icon changer be quite possible?
Using this same methodology, wouldn't it be possible to create "shortcuts" to applications on the home screen, and thus, allow the user to rename apps and change their icons, at least on the desktop? I know that the icons would not be changed in the pull-out drawer or elsewhere on the system, but wouldn't this be a temporary workaround, until a better solution is reached? I have quite a few programs with horrendous icons, and it really takes away from the aesthetic of the home screen.
Again, all I'm asking is if there's a way to place a shortcut to an APK on the desktop, and preferably to customize that shortcut's icon, not the actual apps.
It is possible to edit .apk's and change the icons. Just look at the forum for theams.
http://forum.xda-developers.com/forumdisplay.php?f=450
soundwire said:
It is possible to edit .apk's and change the icons. Just look at the forum for theams.
http://forum.xda-developers.com/forumdisplay.php?f=450
Click to expand...
Click to collapse
Well, I know that the icons can be edited in a theme, but can non-stock icons be edited as well?
And also, my concern with that is that it seems like a lot of work to update a theme everytime a new app appears on the market. I'm a little OCD, so if I were able to change all the icons on my home screen, I would want them all to be absolutely uniform (like the themes' icons are). However, if a new, super-useful app were to appear on the market, and I absolutely needed it on my home screen, it would seem much easier to simply add an image to my phone, and make a shortcut using that image, than to have to edit an APK, resign the entire package, and reflash the phone each time. While I know my way around the G1, and I'm comfortable with basic rooting, I am by no means a developer, and just like most G1 users, I would probably be more comfortable making shortcuts than updating firmware.
Do you understand where I'm coming from?
I too, would also like to know how to change "non-stock" app icons. Bump.
jayaustn said:
Well, I know that the icons can be edited in a theme, but can non-stock icons be edited as well?
And also, my concern with that is that it seems like a lot of work to update a theme everytime a new app appears on the market. I'm a little OCD, so if I were able to change all the icons on my home screen, I would want them all to be absolutely uniform (like the themes' icons are). However, if a new, super-useful app were to appear on the market, and I absolutely needed it on my home screen, it would seem much easier to simply add an image to my phone, and make a shortcut using that image, than to have to edit an APK, resign the entire package, and reflash the phone each time. While I know my way around the G1, and I'm comfortable with basic rooting, I am by no means a developer, and just like most G1 users, I would probably be more comfortable making shortcuts than updating firmware.
Do you understand where I'm coming from?
Click to expand...
Click to collapse
I have yet to try this, but (provided you have root), you should be able to use adb to pull the apk for an app off your phone, edit it as described, and push it back to the same place. I will give this a go tomorrow, as I'm rather sleepy, and it's probably not a good thing to mess about with superuser stuff when I can't think straight.
If there's any flaws in my theory, I'd be happy to hear them.
RE: Changeing Icons!
I have a video on you tube on how to change icons. Here it is!
http://www.youtube.com/watch?v=AjnV_d9b22E
Hope you enjoy and your able to Change Your Icons.
Good Luck!
bms122223 said:
I have a video on you tube on how to change icons. Here it is!
http://www.youtube.com/watch?v=AjnV_d9b22E
Hope you enjoy and your able to Change Your Icons.
Good Luck!
Click to expand...
Click to collapse
Video doesnt show you how to change "non-stock" app icons, only icons for the original apps.
Well, I kind of figured out how to change the non-stock icons. But got stuck at the end...here's what I did...
1) Install/Open Astro.
2) Back up the app you want to change the icon for.
3) Grab that backup apk file off of your sdcard and put it on your computer.
4) Open it with Winrar.
5) Go to the proper folder and drag your new icon into the folder.
6) Close Winrar and move the apk back to your sdcard.
...this is where I get stuck, I know the icon changed because I can see it when I TRY to install the app. But the app doesnt want to install, it says "install unsuccesful". I'm guessing it needs to be signed?
I have used astro as well, I even signed the apk the same way I sign themes and no luck.
ultra spikey said:
Well, I kind of figured out how to change the non-stock icons. But got stuck at the end...here's what I did...
1) Install/Open Astro.
2) Back up the app you want to change the icon for.
3) Grab that backup apk file off of your sdcard and put it on your computer.
4) Open it with Winrar.
5) Go to the proper folder and drag your new icon into the folder.
6) Close Winrar and move the apk back to your sdcard.
...this is where I get stuck, I know the icon changed because I can see it when I TRY to install the app. But the app doesnt want to install, it says "install unsuccesful". I'm guessing it needs to be signed?
Click to expand...
Click to collapse
You're real close; once you replace the icon you need you need to delete META-INF folder then zip it back up, rename file extension to .apk and sign it with the test keys like the stock .apk. The META-INF is where the signature info is kept from the original author, you need to delete this so it doesn't conflict with the test keys.
Geo411m said:
You're real close; once you replace the icon you need you need to delete META-INF folder then zip it back up, rename file extension to .apk and sign it with the test keys like the stock .apk. The META-INF is where the signature info is kept from the original author, you need to delete this so it doesn't conflict with the test keys.
Click to expand...
Click to collapse
I will that a try. So this also mean that if author updates .apk file we will not be able to install update? Similar to google RC30 updates, we have to wait for JF to modify it.
johnowa636 said:
I will that a try. So this also mean that if author updates .apk file we will not be able to install update? Similar to google RC30 updates, we have to wait for JF to modify it.
Click to expand...
Click to collapse
Agreed; this might be a problem.
I mean, opening up the APK files is definitely a start, but it seems the shortcut approach I mentioned earlier is just so much easier. Shortcuts would allow basic users to change icons effortlessly and without fear of ruining the app, and the process could be just as easy as Bookmark 2, if a developer took charge, no?
ultra spikey said:
Well, I kind of figured out how to change the non-stock icons. But got stuck at the end...here's what I did...
1) Install/Open Astro.
2) Back up the app you want to change the icon for.
3) Grab that backup apk file off of your sdcard and put it on your computer.
4) Open it with Winrar.
5) Go to the proper folder and drag your new icon into the folder.
6) Close Winrar and move the apk back to your sdcard.
...this is where I get stuck, I know the icon changed because I can see it when I TRY to install the app. But the app doesnt want to install, it says "install unsuccesful". I'm guessing it needs to be signed?
Click to expand...
Click to collapse
i would like to verify that this method works to change non-stock apps without pushing files or inserting apps into updates. i used 7zip but i'd imagine winrar will work fine as well. just remember to delete the entire metainf folder, not just its contents. once you have your .apk, re-sign it using stericson's auto-sign utility and you'll be able to install the app through astro.
i should also note that i deleted all instance of the unmodified app from my sdcard. i uninstalled it and deleted the backup on my sd card. this may or may not be necessary, but i just wanted to take precautions.
I've given this method a try, and it seems simply too complicated for a moderate user like me. Wouldn't the shortcut method I mentioned be so much easier to quickly change home screen icons? Would any of the developers on this forum be interested in throwing such an app together? I'd gladly donate some money if a good app was able to take care of this problem.
what are you having trouble with, exactly? i'm far from an advanced user myself, but this is probably one of the easier things to do on the g1, probably second to flashing themes.
though i will say that there are a few apps that i can't change icons for. chomp and cubik have installed but force close when opened.
i have a feeling it's something to do with the signing the apk's, but like i said, i'm not an advanced user at all.
TruLuvNvrDies said:
what are you having trouble with, exactly? i'm far from an advanced user myself, but this is probably one of the easier things to do on the g1, probably second to flashing themes.
though i will say that there are a few apps that i can't change icons for. chomp and cubik have installed but force close when opened.
i have a feeling it's something to do with the signing the apk's, but like i said, i'm not an advanced user at all.
Click to expand...
Click to collapse
I opened up the APK using WinRAR, replaced the icon.png with my icon of choice, and then I'm stuck. I known I have to auto-sign the APK, but am not exactly sure how. I have Stericson's auto-signer tool, and used command 4 to manually enter the APK path, but once I do that I get a bunch of errors. If need be, I can copy down the exact error I get.
ultra spikey said:
Video doesnt show you how to change "non-stock" app icons, only icons for the original apps.
Click to expand...
Click to collapse
Nice video!
jayaustn said:
I opened up the APK using WinRAR, replaced the icon.png with my icon of choice, and then I'm stuck. I known I have to auto-sign the APK, but am not exactly sure how. I have Stericson's auto-signer tool, and used command 4 to manually enter the APK path, but once I do that I get a bunch of errors. If need be, I can copy down the exact error I get.
Click to expand...
Click to collapse
you probably need to delete the contents of the meta-inf folder. there should be three files in there, delete them all. if you extracted the contents of the .apk, zip them back up with an .apk extension. if you didn't extract them, you're at the last step, which is to re-sign the .apk. you don't actually need to manually re-sign the file through the console on stericson's re-signer. just right-click the .apk file and at the very top, there should be an option that says "resign .apk". click on that and your app will be re-signed and ready for an install attempt.
though, as i said before, this method is not 100%. of the 6 apps that i modified so far, i was only successful with 4 of them. even if you do all of the steps correctly, you might not have a working app at the end. the apps will install but will automatically force close when launched. i don't know what causes this, actually, and any suggestions would be appreciated.
I agree with the OP, while it is easy enough to edit the apks, resign them, copy them back onto your phone it would be far more elegant (IMHO) if you could have an application that allowed you to copy "Icon Packs" onto your SDCard, and then add links to applications on your home screen giving you a choice of icons from the aforementioned "Icon Pack".
Theme developers could then distribute the "Icon Pack" with the theme, and end users could easily add custom icons to your home screen from your phone without having to mess about on a PC.
liamw said:
I agree with the OP, while it is easy enough to edit the apks, resign them, copy them back onto your phone it would be far more elegant (IMHO) if you could have an application that allowed you to copy "Icon Packs" onto your SDCard, and then add links to applications on your home screen giving you a choice of icons from the aforementioned "Icon Pack".
Theme developers could then distribute the "Icon Pack" with the theme, and end users could easily add custom icons to your home screen from your phone without having to mess about on a PC.
Click to expand...
Click to collapse
So what everyone wants is Anycut that can do custom icons.
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
i think you need to edit the meta file and the xml file, but this can be done though.
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
it is possible to merge update.zip files but its important to understand their structure and how the commands are executed.
also signing .zip files is a whole different topic...
hopefully this helps get you going in the correct direction!
joeykrim said:
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
Click to expand...
Click to collapse
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
chandlerw88 said:
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You would want to read up a little bit and make sure you understand the commands, but yes. You do not want to copy the entire set of commands, just the particular needed lines. Often you don't need to change anything because the script may just say copy this entire system directory and everything in it will go.
Sent from my PC36100 using XDA App
It's pretty basic.
Move all the files into the same zip delete everything in meta-inf except the update script.
Adjust the script accordingly, pay attention to syntax or better yet just look at all the individual scripts and put them together, then remove dupes
As for zip signing..
This is what you need
http://forum.xda-developers.com/showthread.php?t=666441
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
PSULightingGuy said:
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
Click to expand...
Click to collapse
yes, its called 7-zip and its your new best friend in this battle. heres how i learned.
i started ripping apart the things that i liked, including roms themselves. now find an update zip that has the files inside the folders that you will need to add, and you can then recycle that update zip. here it is plain and simple:
1.use 7zip to VIEW; NEVER UNZIP the files(forget about windows zips)
2.check what folder the apps you will be putting in belong in
3.put them in their corresponding folders(some apps are tricky when you need to install their libs too and you dont know it)
4.erase the 3 bottom files in your meta-inf folder
5.resign the rom
6.verify the sign(look for the new certs)
7.move to sd
8.flash rom
9.have a pop,beer, or w/e your vice.(my fave is cherry coke)
if you need help getting started feel free to pm. you dont know who i am, but ive been thru this process many times.
Actually, that's not quite what I'm talking about... I want a flashable zip that will add certain images (the battery meter) to the INSIDE of a .apk file that already exists on the device. Not sure if it's possible, but if so, I'd love to know... If not, I'll try pulling the .apk and using 7-zip...
Figured we might need a help thread for metamorph and since I need help here goes the first question
So I took part of my theme and made it Metamorph compatible with the guide here:
http://forum.xda-developers.com/showthread.php?t=591329
Now MM opens the zip fine, starts to install it, asks permission to edit framework-res.apk then after about 1 minute it asks for a reboot and then before I can answer it just reboots. At this point it gets stuck in a boot loop and I have to nandroid.
Never really messed with MM so it could be something I am doing wrong or I did read this:
Depending on the device you have you may need a different SPL to be able to apply themes.
Click to expand...
Click to collapse
Anyways I attached my test theme (no where complete, just wanted to test it). Is the issue with me, the phones spl or metamorph not ready for the incredible yet?
ps: If your going to test my theme uploaded here, be smart, do a backup, this is just a test and not a full theme and I just told you it is causing boot loops
test file download
I wonder if the SPL will be the roadblock until Froyo is officially released. Of course I know nothing of these things...
*Sent via Tapatalk on my Incredible
running latest leak 8/1/10 new radio 2.15 busybox all set up. tried to installed metamorph and ninjamorph, gives /system error about space and then my root is broken ?!? any ideas folks, so lost on this one. thank god for nandroid restore
icedmayhem said:
running latest leak 8/1/10 new radio 2.15 busybox all set up. tried to installed metamorph and ninjamorph, gives /system error about space and then my root is broken ?!? any ideas folks, so lost on this one. thank god for nandroid restore
Click to expand...
Click to collapse
Did you run the unrevoked forever to unlock the nand
I'm having mixed results with metamorph. I was able to do everything I wanted on CM6. I actually ported this over for us and it works great on metamorph not problems, check it out: http://androidforums.com/roms-incredible/149055-theme-vatsense-cm6port.html
now I tried porting one of my themes over to skyraider2.2 and I can get framework-res and com.htc.resources to work fine, but when i tried to add in my themed apps, I get a f/c and have to pull battery. http://androidforums.com/roms-incredible/148221-theme-do-bluev1.html
Ran the unrevoked tool so give me s off as well...
I had somebody in the nexus forum metamorph the weather channel widget but I cant get it to install, anyone game to take a look? I would love this to be transparent.
I have ran unrevoked forever and installe the latest metamorph.
Thanks
Im running (latest) stock 2.2 leak, and i cant get metamorph or NinjaMorph to make ANYthing stick. (YES I HAVE S-OFF) Both run as if they are making the changes, No diff than they did with the Moto Droid. MM reboots after ANY package, not just framework, with out asking to reboot. Ninja will usually break the app (app is no longer installed)
ANY IDEAS?
EDIT: just for kicks i installed a Deodexed Stock ROM, and still the same results... It says its doing it, but i the end it makes NO changes to the APK files.
see if you can manually (adb) replace the files and see if it sticks..... if not then the issue is not metemporph.... it's a rooting/nand issue.
R1lover said:
see if you can manually (adb) replace the files and see if it sticks..... if not then the issue is not metemporph.... it's a rooting/nand issue.
Click to expand...
Click to collapse
Manually replacing the entire APK... work just like it did when we needed recovery. Just now you type ADB remount, then push it.
If you mean manually replacing the edited files within the apk, thats not directly possible via adb. you have to PULL, EDIT,PUSH.
The problem here is metaMorph is supposed to open the apk replace just the edited files then close it up right on the phone, and its just not doing that!
what i did that fixed all my issues was install busybox from market. its odd but it all works perfect now even though i though it had been prebuilt into the rom. strange but ill take it
icedmayhem said:
what i did that fixed all my issues was install busybox from market. its odd but it all works perfect now even though i though it had been prebuilt into the rom. strange but ill take it
Click to expand...
Click to collapse
Yea, I just did what you said, before Metamorph would say not enough free space in /system/
I was using the 8/1/10 Froyo leak and I guess that one didn't have busybox, weird I was able to use Titanium Backup and I though that required busybox as well...
everytime you switch a rom, you should download busybox and let it update, it changes per rom.
Welp , Im still at a loss... I updated busybox, using the market app... and it still gives me the same results...
It takes 2-3 min to "apply theme" then reboots... and NO changes !
My theme contains ONLY the folders and files that need to be replaced, and my xml is copied from an existing theme, then edited. So i dont know wtf is goin on with this ****.
try making it into a file that can be flashed from recovery, then ull know for sure u made it correct....
Not sure this will help but I just installed Metamorph today and was getting the "system memory" error. To fix the problem I just used Root Explorer to mount /system as rw. Could the problems be related to write permissions?
I'm new to this...
I'm running SkyRaider's 2.5.2. Sense ROM. Just downloaded MM & BusyBox via market. When I start MM I select "Start Checks" or whatever. It then either forces my phone into reboot or gives me the "not enough memory in /system" error.
I did not install unrevoked forever. Is that my problem?
ksidirt said:
I'm new to this...
I'm running SkyRaider's 2.5.2. Sense ROM. Just downloaded MM & BusyBox via market. When I start MM I select "Start Checks" or whatever. It then either forces my phone into reboot or gives me the "not enough memory in /system" error.
I did not install unrevoked forever. Is that my problem?
Click to expand...
Click to collapse
Uh yea, it needs to write to system, you need S-off to use it.
I'm reviving this thread so as to not clutter up the Metamorph Themes Master List thread
This quote is from the other thread, I just thought it would be more appropriate to answer here instead.
mikesincredible said:
Wow. What you just told me is like trying to learn chinese...lol I see there's more involved...any good articles to point out so I can learn. I just know rom manager and adb push code... ::
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I'm sure there are some guides floating around XDA, but I mostly learned MM just by messing with it and learning from trial and error.
Basically, metamorph just opens up an .apk file, replaces any of the files it finds in the folders specified by a theme's .xml file, then closes/re-signs the apk.
This is much better than flashing themes from the recovery menu or rom manager because doing so replaces the entire framework-res.apk, overwriting any themes you had previously installed. Since metamorph only replaces the files you want, any theme you already had will be preserved.
Here's an example to get a quick overview of how it works. Say you've already applied my black rotary lockscreen mod (found here) and you want to use some of the elements from SoCalMiles' Incredible rEVOlution theme.
First you should download his file, and inside the .zip find "\Incredible_Revolution_Original_Theme.zip\system\framework\framework-res.apk" and extract it somewhere.
Then rename "framework-res.apk" to "framework-res.apk.zip" or something similar. Now you can browse/unzip the files just like you would any other folder.
In your new .zip navigate to \framework-res.apk.zip\res\drawable-hdpi-v4, most of a rom's theme will be in that folder.
Now, if you've applied my theme through metamorph (or any theme, for that matter) you should have the directory "\sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\" on your sdcard.
Choose any of the files you want to apply to your phone from the extracted Incredible rEVOlution drawable-hdpi-v4 folder and copy them from to the \sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\ folder. Now when you run the metamorph it should copy the files you added as well as the ones that were previously there.
If you want to copy files that are not in the drawable-hdpi-v4 folder, simply make a new folder for the containing folder. Basically just make sure the \sdcard\AndroidThemes\whatevs\framework-res\ directories match the directories in the framework-res.apk file you're pulling from.
That's the easiest way to combine two themes, if you're looking to make you're own metamorph theme to post on xda you'll need to learn to edit the .xml file which directs metamorph to which files to modify, but that isn't too hard either, and there's no need to do this if you're just making metamorphs for your own personal use.
mixedlemon said:
I'm reviving this thread so as to not clutter up the Metamorph Themes Master List thread
This quote is from the other thread, I just thought it would be more appropriate to answer here instead.
I'm sure there are some guides floating around XDA, but I mostly learned MM just by messing with it and learning from trial and error.
Basically, metamorph just opens up an .apk file, replaces any of the files it finds in the folders specified by a theme's .xml file, then closes/re-signs the apk.
This is much better than flashing themes from the recovery menu or rom manager because doing so replaces the entire framework-res.apk, overwriting any themes you had previously installed. Since metamorph only replaces the files you want, any theme you already had will be preserved.
Here's an example to get a quick overview of how it works. Say you've already applied my black rotary lockscreen mod (found here) and you want to use some of the elements from SoCalMiles' Incredible rEVOlution theme.
First you should download his file, and inside the .zip find "\Incredible_Revolution_Original_Theme.zip\system\framework\framework-res.apk" and extract it somewhere.
Then rename "framework-res.apk" to "framework-res.apk.zip" or something similar. Now you can browse/unzip the files just like you would any other folder.
In your new .zip navigate to \framework-res.apk.zip\res\drawable-hdpi-v4, most of a rom's theme will be in that folder.
Now, if you've applied my theme through metamorph (or any theme, for that matter) you should have the directory "\sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\" on your sdcard.
Choose any of the files you want to apply to your phone from the extracted Incredible rEVOlution drawable-hdpi-v4 folder and copy them from to the \sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\ folder. Now when you run the metamorph it should copy the files you added as well as the ones that were previously there.
If you want to copy files that are not in the drawable-hdpi-v4 folder, simply make a new folder for the containing folder. Basically just make sure the \sdcard\AndroidThemes\whatevs\framework-res\ directories match the directories in the framework-res.apk file you're pulling from.
That's the easiest way to combine two themes, if you're looking to make you're own metamorph theme to post on xda you'll need to learn to edit the .xml file which directs metamorph to which files to modify, but that isn't too hard either, and there's no need to do this if you're just making metamorphs for your own personal use.
Click to expand...
Click to collapse
What other folders contain the status icons? I'm looking to restore the circle battery and alarm from the incredible revolution theme, I found the battery.pngs..but no alarm..so if I copy and paste them to the blackrotary folder in androidthemes and metamorph, I should have the battery back
Ok forum, so I got this idea: because a lot of people ask for CWM packages of this and that, why not let them create CWM flashable stuff without having to beg devs or other users to make them?
I think it saves them (yes, I am talking about YOU!) and us the trouble. So I created these two base CWM flashable zips to get everyone started:
Data_Skeleton.zip - Used for apps that you can uninstall afterwards.
System_Skeleton.zip - Used for anything that should be installed as a system app
Now, a short guide on how to use them:
1. Download the appropriate ZIP for what you plan to package. If you want to make a regular app package use Data_Skeleton.zip, for system apps, use System_Skeleton.zip.
2. Open the zip file with anything else other than Windows Explorer! Use 7zip, winzip, winrar or anything else, just not Explorer!
3. Look inside the zip! DO NOT DELETE ANYTHING! All you need to do is ADD STUFF!
4. Browse into the "data" or "system" zip folders, then down into the "app" folder inside.
5. After you get to the "app" folder, copy and paste the APKs you want to flash in the folder.
REMEMBER: do not DELETE anything! ADD APK files ONLY in the "app" folder.
6. Wait for the APK files you copy to get added to the archive.
7. Close the archive.
8. Rename and copy the archive to your SD card.
9. Boot into CWM and flash the copied zip file you just created.
10. Enjoy!!
Sooooo, quick 10-step process into cooking you own CWM Zips. You can do much more with them than flashing apps, but for general purpose usage, this should be enough!
Thanks and complaints go underneath.
PS: this idea was given to me by lambstone in a separate thread! Thanks a lot mate!!!
Peace,
C.
Nice thread, waiting for other..............
There's market apps that does this I.e apps2zip
Sent from my LG-P999 using Tapatalk 2 Beta-2
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
cheatman said:
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
Click to expand...
Click to collapse
Your right, I was not trying to deny your effort in any way
Sent from my LG-P999 using Tapatalk 2 Beta-2
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
cheatman said:
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
Click to expand...
Click to collapse
have trying to put 5 apk files on data/app exactly doing what it's in your post, then rename it to apk.zip, but when i'm trying flashing from cwm it's geting error
E:Can't open /sdcard/apk.zip
(bad)
Installation aborted
do I miss something??
edit: i'm using data_skeleton.zip
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
cheatman said:
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
Click to expand...
Click to collapse
No dude, I do not extract the zip file, I do exzctly what you said in 1st post, just open it with winrar, look for Data-app, then adding apk files on app section/folder inside the zip files, i just try once again to make sure, and i just add 1 different apk file, but still not work, btw i always use this same method before when I' want to replace boot animation for ICS CM9 ROM and adding some apk file to ROM file, and it's always work.
cheatman said:
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
Click to expand...
Click to collapse
will try this one..,
EDIT: have try your 2nd Data_skeleton.zip, it's work when flashing from cwm with or without add apk files, but not with previous zip file, thought the problem it's coming from your zip file..,
Glad the second one works!
Thanks for letting me know the first zip was borked!
Its a good thread man, makes creating flash able zips simple, you should also look into zipsigner2 on the play market
Sent from my LG-P999 using Tapatalk 2 Beta-2
Thx for the great work!!
Does this one only works for apks?? say i would like to add some files to system/bin or system/lib what do i need to add??
Thx again
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Sounds more complicated than it is. With these CWM Zips you can create any zip that changes either "/data/*" or "/system/*"
Anything, including full ROMs, libs, firmware etc (i.e. except kernel!) can go inside. Play with them. You can't mess your tab with them. Worst case, you need to flash again your ICS copy and factory reset...
Peace,
C.
yeah jejeje i just mess up i am trying to flash a sound driver for my phone (by the way it works in my live with walkman) but they are not working so.
but it is great because i was able to use your file to flash my phone it seems to be universal.
thx again for your work.
Is it possible for this to work for radio images?
Sent from my Nexus S 4G using Tapatalk 2 Beta-5
No, it can't be used for radio images.
First off, radio images need to be flashed (i.e. not copied to a folder as this script does) and secondly because as far as I know with the latest versions of CWM don't support this anymore.
The old zips used to flash radio don't seem to be supported anymore. I recently encountered this problem while flashing a friend's HTC Buzz/Wildfire. So, no, I have no idea how to flash radio using CWM anymore. You can flash using Odin, though...
Peace,
C.
cheatman said:
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Click to expand...
Click to collapse
Ah, this explains how come my /system/app zips were coming out fine but my /system/framework were messed up, thanks for the explanation.
I wonder if it's possible for a small tutorial in how to add our own text to a zip when it's being flashed.
I guess I could reupload the zips without the intro section (stating my nickname and galaxy tab / version etc.) if I weren't so lazy...
The problem with changing the text is that although a tutorial can be made, it requires external tools and such, which would make this waaay to complicated and out of the scope of this thread.
For your purposes (I assume you are using some version of Windows), here's my advice: extract the Zip archive, look for the "updater-script" file, change it and make sure you run it through a "dos2unix" tool to convert CR/LFs. Then add it back to the archive.
To everyone else: if this doesn't work for you, just stick to adding apps to the zip. You should be safe, there's no need to edit any files anyway!
Peace,
C.
Great, apparently it was just that simple, worked great, <3
Dumb question - is this only for Galaxy tab? Or can I use it on my Captivate?