[Q] question on zip folders. - General Questions and Answers

i am relatively new to roms and themes. when i get into CWR and go to flash a zip file is is bad if it is .zip.zip or does it matter?

What are you trying to flash?

dhjohnson said:
i am relatively new to roms and themes. when i get into CWR and go to flash a zip file is is bad if it is .zip.zip or does it matter?
Click to expand...
Click to collapse
Yes it is bad and does matter. Just xxx.zip for it to work.

It sounds to me like you renamed it whatever.zip, in which case it will look like .zip.zip, but it doesn't matter. The first .zip will just be part of the file name, it will not affect what type of file it is. I have done this with an image file when flashing a new splash screen, so i had to adjust the adb command from custom.img to custom.img.img...didn't make a difference.

Related

Question about modifying signed Rom zip files

Can I modify an existing one by simply dropping in updated bootscreen files, rosie.apk, etc.. and signing the existing rom zip?
Any good guides on how to do one if not, and/or how to use Flipz kitchen tool to create a rom?
Ceger
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Kcarpenter said:
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Click to expand...
Click to collapse
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Ceger said:
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Click to expand...
Click to collapse
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
wtphoto said:
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
Click to expand...
Click to collapse
Oh well, was trying to have a one step zip. I guess I can make at least have a 2 step process which is better than 4-5.
Thanks,
Ceger
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
zippy-man said:
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
Click to expand...
Click to collapse
Perfect, just what I was looking for.
Thank you, just made my day!
Ceger

[Q] 3 quick questions

Alright this is 3 really quick and easy questions.
I have infused 2.2.3 and i wanna know:
1) if i install a theme, or probably any mod or something like that, how would i take it off?If i wanted to change the theme im on, do i simply go into cwm and apply a different theme? Or do i have to do something to remove the other one?
2)Do i need the old zips i applied to the phone or should i just delete them?
3) and if i were to put allll my zips in there could i just install them from there or do they need to be in the main part of my internal sd card? Basically does it matter where in my internal sd card they are or not?
joeym11 said:
Alright this is 3 really quick and easy questions.
I have infused 2.2.3 and i wanna know:
1) if i install a theme, or probably any mod or something like that, how would i take it off?If i wanted to change the theme im on, do i simply go into cwm and apply a different theme? Or do i have to do something to remove the other one?
2)Do i need the old zips i applied to the phone or should i just delete them?
3) and if i were to put allll my zips in there could i just install them from there or do they need to be in the main part of my internal sd card? Basically does it matter where in my internal sd card they are or not?
Click to expand...
Click to collapse
1) To revert your theme back to the original you would either need to flash the rom again or the theme developer SHOULD have a revert for you to flash.
2)I keep them around just because, I always keepat least two roms and two kernels and a whole bunch of mods and modems. I mean the infuse has 16gb internal storage so memory isnt really that big of a deal. But no you dont NEED them.
3)Nope I've flashed from all sorts of places on my SD card. Root of the SD is probably the easiest though because then you dont have to do all the navigating through files etc in CWM.
Reynaldinho111 said:
1) To revert your theme back to the original you would either need to flash the rom again or the theme developer SHOULD have a revert for you to flash.
2)I keep them around just because, I always keepat least two roms and two kernels and a whole bunch of mods and modems. I mean the infuse has 16gb internal storage so memory isnt really that big of a deal. But no you dont NEED them.
3)Nope I've flashed from all sorts of places on my SD card. Root of the SD is probably the easiest though because then you dont have to do all the navigating through files etc in CWM.
Click to expand...
Click to collapse
Thank you SOOO much... got so tired of seeing 30+ views and no replies... thank you
joeym11 said:
Thank you SOOO much... got so tired of seeing 30+ views and no replies... thank you
Click to expand...
Click to collapse
Haha, no problem man
joeym11 said:
Thank you SOOO much... got so tired of seeing 30+ views and no replies... thank you
Click to expand...
Click to collapse
I just went to look for the revert but he didn't have it
This is the thread here
http://forum.xda-developers.com/showthread.php?p=17642552#post17642552
If you see it then lemme know, otherwise, do i reflash infused??
joeym11 said:
I just went to look for the revert but he didn't have it
This is the thread here
http://forum.xda-developers.com/showthread.php?p=17642552#post17642552
If you see it then lemme know, otherwise, do i reflash infused??
Click to expand...
Click to collapse
Yeah I dont see it. You can reflash infused. Make sure to back up everything you're gonna need though.
joeym11 said:
I just went to look for the revert but he didn't have it
This is the thread here
http://forum.xda-developers.com/showthread.php?p=17642552#post17642552
If you see it then lemme know, otherwise, do i reflash infused??
Click to expand...
Click to collapse
One of the "tricks" I usually do is this:
- make a copy of the .zip you're going to install -- rename it with 'revert' or 'undo' or something
- open the copy with 7zip, navigate to see what files are in it... (*don't touch the META-INF folder)
(themes usually contain /system/framework/framwork-res.apk and /system/app/SystemUI.apk)
- extract the same files from your current ROM
(either from the original zip, or directly from the phone -- I like to use 'Android Commander')
- replace those same files in the 'revert' zip -- and Bingo -- you now have a backup to restore if you don't like the theme
Reynaldinho111 said:
Yeah I dont see it. You can reflash infused. Make sure to back up everything you're gonna need though.
Click to expand...
Click to collapse
gwbard said:
One of the "tricks" I usually do is this:
- make a copy of the .zip you're going to install -- rename it with 'revert' or 'undo' or something
- open the copy with 7zip, navigate to see what files are in it... (*don't touch the META-INF folder)
(themes usually contain /system/framework/framwork-res.apk and /system/app/SystemUI.apk)
- extract the same files from your current ROM
(either from the original zip, or directly from the phone -- I like to use 'Android Commander')
- replace those same files in the 'revert' zip -- and Bingo -- you now have a backup to restore if you don't like the theme
Click to expand...
Click to collapse
Thanks ryan very much
And gwbard... i dont exactly understand that
Edit: Alright i got to the part where i extract the same files wiht my current rom... but how do i do that?... i just opened the zip from infused and all i see was the meta and then a folder with updates... what do i do? Im on infused 2.2.3 if that helps
joeym11 said:
Thanks ryan very much
And gwbard... i dont exactly understand that
Edit: Alright i got to the part where i extract the same files wiht my current rom... but how do i do that?... i just opened the zip from infused and all i see was the meta and then a folder with updates... what do i do? Im on infused 2.2.3 if that helps
Click to expand...
Click to collapse
Just browse through the "update-infused-v2.2.3-full.zip" -- get familiar with the filesystem.
At the root you should see META-INF, system, and updates.
'META-INF' contains the scripting to run the update itself.
'updates' contains the modem & kernel.
'system' is what you should be looking at. Inside 'system' (amongst other stuff) are 'app' and 'framework' folders. "SystemUI.apk" is in 'app'. "framework-res.apk" is in 'framework'. 99% of the time these are the only two files changed in themes.
Now, not all developers follow the same folder structure in their CWM zips, for example they might just have a folder 'framework' where the scripting copies framework-res.apk to /system/framework, and so on...
sorry but it appears my building is on fire gotta go
edit: all is well (sorta) -- seems lightning has fried one of the A/C units on the roof!
gwbard said:
Just browse through the "update-infused-v2.2.3-full.zip" -- get familiar with the filesystem.
At the root you should see META-INF, system, and updates.
'META-INF' contains the scripting to run the update itself.
'updates' contains the modem & kernel.
'system' is what you should be looking at. Inside 'system' (amongst other stuff) are 'app' and 'framework' folders. "SystemUI.apk" is in 'app'. "framework-res.apk" is in 'framework'. 99% of the time these are the only two files changed in themes.
Now, not all developers follow the same folder structure in their CWM zips, for example they might just have a folder 'framework' where the scripting copies framework-res.apk to /system/framework, and so on...
sorry but it appears my building is on fire gotta go
edit: all is well (sorta) -- seems lightning has fried one of the A/C units on the roof!
Click to expand...
Click to collapse
Lol Glad youre aight man
Sent from my friggin huge Samsung Infuse
So if i was to flash infused but wanna keep my kernel and modem id just remove the update folder from the zip and run it as usual?
Sent from my SAMSUNG-SGH-I997 using XDA App

[Q] Screwed up and am in boot loop, help?

So silly me tried to replace the lock screen clock font, and apparently the phone didn't like the font I picked, because it is now boot looping
I have the original font file backed up. But I can't get it back on the phone.
I can boot into custom recovery, but when I plug the phone in, adb cannot see it. I have used adb sheel on this PC many times before just fine, but now when I boot to custom recovery and plugthe phone in, nothing happens, and adb devices shows nothing
I need to push this file over, but can't do it without adb seeing the device. Any ideas? Am I totally screwed? Is it possible to get an update.zip that will copy the correct Clockopia.ttf to /system/fonts? I have no experience writing Edify scripts, could someone write an edify script that replaces Clockopia.ttf in system/fonts with the default one?
I'll have to PM you a link to the flashable.zip that I use (I don't have enough posts to put the link in here). After you download it unzip it and place your font into /system/fonts. Rezip and make sure under compression method you select Stored. move this new zip to your sdcard, boot into recovery and "install zip from sdcard"->"choose zip from sdcard" find your zip, flash it and reboot and you should be good to go.
~SkiZophr3nic~
Thanks, one quetions, why is the manifest.mf referencing three fonts?
Name: system/fonts/DroidSans-Bold.ttf
SHA1-Digest: eNby4Fea150Moa0YW6Cm9GxRldk=
Name: system/fonts/DroidSans.ttf
SHA1-Digest: eNby4Fea150Moa0YW6Cm9GxRldk=
Name: system/fonts/Clockopia.ttf
SHA1-Digest: eNby4Fea150Moa0YW6Cm9GxRldk=
Shoot that was the wrong one, my bad. I thought I uploaded a different one. Do you know how to change it or do you want me to fix it and re-up later on tonight?
lol sorry about that.
~SkiZophr3nic~
I got the same thing from someone else, but thanks for the tip that led me in that direction!

[Q] How to make a zip to install apk on recovery mod?

Hi there, i read some thread about this, but really i dont understand what to do for make a flasheable zip...
Can someone take a moment for this request...
Thnx in advanced for read this
blackgf said:
Hi there, i read some thread about this, but really i dont understand what to do for make a flasheable zip...
Can someone take a moment for this request...
Thnx in advanced for read this
Click to expand...
Click to collapse
wassup, well i think your talking about different things. The apks can be installed any time in the system. the files for a flashable system in recovery mode are system.img.
Now some apks can be intalled by comand promp pushing by code but i really dont remember the exact code lol. But i think is over here in the xoom forum.
now some apks in zip mode just need to be stored no zipped, instead of check the option "compress" look for the one named "Store" that makes a file zip but the files are inside uncompresed, that why most of people can't install apks at first.
hope this helps in something.
See ya!
I think you are looking at how to make your own flashable zips for CWM.
This link here from MODACO was like the first result in google.:
http://android.modaco.com/topic/344906-how-to-create-a-flashable-zip-for-cwm/
It's a pretty decent guide, and it will allow you to install apk's from CWM if you don't want to install them normally.
not too sure but...
I think there is a new program in the Dev. board called fruitcake maker. Says it backs open boot.img and system.img and rolls it into an update.zip . I don't know if that's what you're really looking for.
intensus said:
wassup, well i think your talking about different things. The apks can be installed any time in the system. the files for a flashable system in recovery mode are system.img.
Now some apks can be intalled by comand promp pushing by code but i really dont remember the exact code lol. But i think is over here in the xoom forum.
now some apks in zip mode just need to be stored no zipped, instead of check the option "compress" look for the one named "Store" that makes a file zip but the files are inside uncompresed, that why most of people can't install apks at first.
hope this helps in something.
See ya!
Click to expand...
Click to collapse
Thnx for your replay, yes, i see the adb commands in some threads but i really want to do my flashable zips for CWM.
Delgoth said:
I think you are looking at how to make your own flashable zips for CWM.
This link here from MODACO was like the first result in google.:
http://android.modaco.com/topic/344906-how-to-create-a-flashable-zip-for-cwm/
It's a pretty decent guide, and it will allow you to install apk's from CWM if you don't want to install them normally.
Click to expand...
Click to collapse
Thnx man this is what i need! i try to search in some threads and forums but i didnt know how to search.

TronBike bootanimation for Droid Charge?

Anybody have or know where to get "Tron Bike" boot animation for droid Charge??
http://rootzwiki.com/index.php?app=core&module=search&do=search&fromMainBar=1
I love this.
Here is the instruction from cliMAKtic:
*To make this work you must be rooted, AND you must have a supporting kernel (i.e. PB&J by IMNUTS)
1. You need to go here: http://bit.ly/pJ1znp and download the zip file which will contain two other zip files, one animation for landscape and one animation for portrait.
**You can watch both previews here (they are only slightly different): http://rootzwiki.com/topic/7344-boot...-like-android/
2. Extract one of the inner zip files (or both) and put them on your sd card.
3. Rename the one you want to sanim.zip, and use a file explorer app (I use Root explorer -it's awesome), to copy the renamed "sanim.zip" from your sd-card to the /system/media folder on your phone.
4. Reboot and Ta Da
Thanks
You copy the image files into the bootanimation folder...
Sent from my SCH-I510 using xda premium
Haha, finally I got it to work on the Charge. It's awesome. I'm proud of myself.
Sweet
Haha, finally I got it to work on the Charge. It's awesome. I'm proud of myself.
Click to expand...
Click to collapse
Glad to hear you got it working, is it the animation with the four androids on their bikes? If so would you mind sending me the link to where you got it from? The one in the original post is broken.
cliMAKtic said:
Glad to hear you got it working, is it the animation with the four androids on their bikes? If so would you mind sending me the link to where you got it from? The one in the original post is broken.
Click to expand...
Click to collapse
I would be interested too.
Sent from my handheld Linux computer using electromagnetic radiation.
JihadSquad said:
I would be interested too.
Click to expand...
Click to collapse
So I found it in zip here:
http://gunnermike53.com/Themers/jaekar99/Galaxy-Nexus/TronBikeLr4-Nex.zip
I couldn't find a flash file so you'll have to rename it and push the file. I'm doin' it now..
Yes that's is correct.
They have 2 versions: one for vertical screen, which the video is kind of square and not fit the screen. The one that you posted is for the landscape version which fit the screen perfectly. Also the ending of the vertical screen is different than the landscape one. The vertical ending is with the word "galaxy nexus" goes from small to large and stay large. The landscape ending is the word "galaxy nexus" on top of a green android image and light shadow around it (very cool looking). So I combined both ending together. The landscape ending then ended with the vertical ending. By the time the vertical ending is done, my phone boot right into to OS. I don't think it's going to work straight out of the box. I have to recompile this thing to make it works.
What do I do with the ZIP file? Instal zip in recovery? then what?
khalilcr said:
What do I do with the ZIP file? Instal zip in recovery? then what?
Click to expand...
Click to collapse
download the zip to your PC, unzip it and in /system/media there is a file named bootanimation.zip. Take this file out and rename this to sanim.zip, then copy it to your phone under /system/media/
khalilcr said:
What do I do with the ZIP file? Instal zip in recovery? then what?
Click to expand...
Click to collapse
NO, it is not a flashable zip file, you clown you .
*To make this work you must be rooted, AND you must have a supporting kernel (i.e. PB&J by IMNUTS)
1. You need to go here: http://bit.ly/pJ1znp and download the zip file which will contain two other zip files, one animation for landscape and one animation for portrait.
**You can watch both previews here (they are only slightly different): http://rootzwiki.com/topic/7344-bootanimation-galaxy-nexustron-like-android/
2. Extract one of the inner zip files (or both) and put them on your sd card.
3. Rename the one you want to sanim.zip, and use a file explorer app (I use Root explorer -it's awesome), to copy the renamed "sanim.zip" from your sd-card to the /system/media folder on your phone.
4. Reboot and Ta Da
cliMAKtic said:
NO, it is not a flashable zip file, you clown you .
*To make this work you must be rooted, AND you must have a supporting kernel (i.e. PB&J by IMNUTS)
1. You need to go here: http://bit.ly/pJ1znp and download the zip file which will contain two other zip files, one animation for landscape and one animation for portrait.
**You can watch both previews here (they are only slightly different): http://rootzwiki.com/topic/7344-bootanimation-galaxy-nexustron-like-android/
2. Extract one of the inner zip files (or both) and put them on your sd card.
3. Rename the one you want to sanim.zip, and use a file explorer app (I use Root explorer -it's awesome), to copy the renamed "sanim.zip" from your sd-card to the /system/media folder on your phone.
4. Reboot and Ta Da
Click to expand...
Click to collapse
How can I add audio? (using the landscape version)
cliMAKtic said:
NO, it is not a flashable zip file, you clown you .
*To make this work you must be rooted, AND you must have a supporting kernel (i.e. PB&J by IMNUTS)
1. You need to go here: http://bit.ly/pJ1znp and download the zip file which will contain two other zip files, one animation for landscape and one animation for portrait.
**You can watch both previews here (they are only slightly different): http://rootzwiki.com/topic/7344-bootanimation-galaxy-nexustron-like-android/
2. Extract one of the inner zip files (or both) and put them on your sd card.
3. Rename the one you want to sanim.zip, and use a file explorer app (I use Root explorer -it's awesome), to copy the renamed "sanim.zip" from your sd-card to the /system/media folder on your phone.
4. Reboot and Ta Da
Click to expand...
Click to collapse
Hey, if u don't mind, I'm going to use your instruction for ppl.
Hmm..
khalilcr said:
How can I add audio? (using the landscape version)
Click to expand...
Click to collapse
To add sound on boot, you need a .wav file, you need to rename said .wav file to PowerOn.wav, and you need to put it in /System/Etc on your phone. I ripped the audio file that goes along with this boot animation and converted it/renamed it yadda yadda which I could give you if you really want, it is also available on that link I posted earlier in some format.
HOWEVER, there is still the problem of boot sounds getting cut off after about 9 seconds, leaving about 4-5 seconds of the animation without sound DEPENDING on what Rom you are running [I know Khali was able to get it working for the full length so if you are running TweakStock 1.4 you should be all set]. As for my InfinityRom I'm sure there is some xml editing that could be done to extend the sound for any given Rom but I am not sure what it is yet, I am looking into it..
If you wanted to put a shortened PowerOn.wav file on your phone that would only play for a portion of the animation that would work just fine (might look a little stupid though ).
**Again TweakStock 1.4 should NOT cut your sound short.
buhohitr said:
Hey, if u don't mind, I'm going to use your instruction for ppl.
Click to expand...
Click to collapse
No worries, just keep my nametag attached somewhere if ya dont mind
Thank cliMAKtic! Got it to work. Just replaced the poweron.wav. It plays during the entire animation. I am running TweakStock 1.4 (dont know if that matters)

Categories

Resources