[Q] newb problem How to rezip a rom - General Questions and Answers

I have googled this alot and have not found any helpful results. I have unziped a rom I like to remove some .apks and add some of the ones I always find myself re-installing. I also have been playing with the build.prop, and the framework. I'm not trying to steal anyones work I just want to have a fresh version of this rom when I go back to it (which I do about once a week). my intent would be to flash, enter my wifi and google passwords, and start using it. I know I can just do a backup and reinstall that, but this has been helpful with my trying to understand how to build a rom and what makes it work. My question being what are the steps to rezip this rom into a flashable update. I have tried dsixda kitchen with no luck, just reziping it, and some other dumb methods. What am I missing here? plz help thank you.
also don't think it matters but this is for a o.g. evo

we got same problem, i edited a working rom for galaxy y (adding and removing some apk) then i was like huh??? what to do next, tried zipping it but doesnt work. hope.someone will reply here.
Sent from my Nokia 3310 running ICS

The problem is the signature verification of the ROM. We sign the ROMS when we create them.
No idea what custom recovery you might use but there should be an option to disable it before you try flashing.
I hope this helps.

No I have cwm and I disabled signature verification, it still starts fine says updating than immediately says its failed
Sent from my PC36100 using XDA App

I also just have it in the folders it unzips in then inside a folder and I just zip that folder is that not right I don't know lol hope someone can help
Sent from my PC36100 using XDA App

That's what's wrong. You can't zip an entire ROM as a folder then zip that folder. Doesn't work that way.
Open a ROM. See how its packed. You'll have a system folder, data, sdcard perhaps. But that's how you package it.
This isn't as easy as you think. You can't just hack stuff up and expect it to work if you don't do it properly.

MattCrystal said:
That's what's wrong. You can't zip an entire ROM as a folder then zip that folder. Doesn't work that way.
Open a ROM. See how its packed. You'll have a system folder, data, sdcard perhaps. But that's how you package it.
This isn't as easy as you think. You can't just hack stuff up and expect it to work if you don't do it properly.
Click to expand...
Click to collapse
No I'm leaving the folders inside the ROM intact. everything is in a folder with all the folders ( data folder, META-INF folder, system folder ect..., and the boot image inside that single folder and then I am ziping all those items in the folder into a zip. I just can't get it to flash it starts then after a second of installation it says aborted.

sknight13602 said:
No I'm leaving the folders inside the ROM intact. everything is in a folder with all the folders ( data folder, META-INF folder, system folder ect..., and the boot image inside that single folder and then I am ziping all those items in the folder into a zip. I just can't get it to flash it starts then after a second of installation it says aborted.
Click to expand...
Click to collapse
Zip up the ROM you want. Take that ROM to the kitchen then build it again. Try that. Sign it and everything. If you want a walk through PM me and ill give you my gtalk address.

sknight13602 said:
No I'm leaving the folders inside the ROM intact. everything is in a folder with all the folders ( data folder, META-INF folder, system folder ect..., and the boot image inside that single folder and then I am ziping all those items in the folder into a zip. I just can't get it to flash it starts then after a second of installation it says aborted.
Click to expand...
Click to collapse
After reading this more I'm still understanding that the data and meta, system folders are in a folder, then that folder is zipped.
This is incorrect way to package it. The data, meta, system etc needs to be zipped all together as one. Not in a folder that is zipped. Make sense? Hope this explains more.

I'll try that I guess Mabry them all being in a folder is the prob I hope thanks man
Sent from my PC36100 using XDA App

Yup. Let me know if you need anymore help and if that works for you.

MattCrystal said:
After reading this more I'm still understanding that the data and meta, system folders are in a folder, then that folder is zipped.
This is incorrect way to package it. The data, meta, system etc needs to be zipped all together as one. Not in a folder that is zipped. Make sense? Hope this explains more.
Click to expand...
Click to collapse
lol so I find this funny but after some research I found that their were some commands in my update script I was leaving in that needed to be removed because I was removing the apk from the rom but it was looking for them and causing errors so after all my headaches it was something simple that'll teach me not to mess with something that aint broke

just tryed to flash it and now after it almost finished flashing I got
"update sdcard/romname/blah blah. failed"(status 6)
does that mean anything to you besides that I messed something up?
I playing with a sense 3.5 rom on a gb 2.3.5 base. Is their an easier rom to play with thats is more user freindly for a newb? mabey takeing the original ruu and tweaking that? I just want to start somewhere and develop my skills.

sknight13602 said:
just tryed to flash it and now after it almost finished flashing I got
"update sdcard/romname/blah blah. failed"(status 6)
does that mean anything to you besides that I messed something up?
I playing with a sense 3.5 rom on a gb 2.3.5 base. Is their an easier rom to play with thats is more user freindly for a newb? mabey takeing the original ruu and tweaking that? I just want to start somewhere and develop my skills.
Click to expand...
Click to collapse
k I got it now thnx for your help MattCrystal

Your welcome. Every phone works a little differently but get used to having problems and fixing them. Part of the struggle. And to me the fun. I love troubleshooting.

i think just open the zip (not unzip it)..
when dialog box open,,you can choose the apk or the others you want to delete..
if you want add somthing to zip,,just open the folder location you want add that,,and than drag n drop the file(s)..
thats it..
than close the dialog box..
winrar will ask you to save the change or not,,choose,,save..
its work for me..
P.S.
use the rom by yourself..
as your personal rom..
if you want to publish it,,ask the permit from the devs..

Related

help: how to add removable apk to roms?

I wasn't able to find info about this until now. But I need to know how to make the apks I include in a rom removable. I guess, maybe, I have to copy into a different folder instead or /system/app. is it right?
thanks
you have to install it in data directory not in system directory. so data/app
ok, thanks, but, if it doesn't exist, should I create it?
no u should not create it because then it wouldnt be a proper directory for your rom, the rom may not recognize it, i think.
which rom are you on? most rom has a data directory, that is where third party apps are installed and where apps downloaded from the market is also installed
this one
http://forum.xda-developers.com/showthread.php?t=556962&highlight=enomther
ok i see what u mean when there's no data directory. what you should test out first is go to market and download an app. then see where that app is install. see if it created a data directory or not. it should...
I had a look using root explorer, and there is a folder in the root called /data/app , and there inside are every installed apk, even the ones I installed by astro...
and there is another one called /data/data where I find folder of every app too
ANd another one called /data/app-private (there I found one apk that I downloaded from market.
I try to download a new one
Yup put your apks in data/app
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
The_Chrome_Coyote said:
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
Click to expand...
Click to collapse
I think no, but have a look for a program called autosign.
It very easy
NguyenHuu said:
Yup put your apks in data/app
Click to expand...
Click to collapse
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
joshuas_79 said:
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
Click to expand...
Click to collapse
ok your running a reg rom system, thus meaning 1.5/1.6 non hero. i can teach you step by step on how to set up "signing .zip's". its super super convenient!! i promise and its not to hard. just pm me if you need help. its way way easier to flash a rom with whatever apk you want then to push them and hope you pushed them to the right spot.

Default launcher, and app removal...

Just a few quick questions that I had trouble finding answers to.
1. Easy way to set the default launcher to launcher.apk, even if rosie is removed it still shows up after flashing rom?...
2. When I unzip a rom, remove apk's, resign, and flash, many of the apk's I had removed still show up. Rosie, sprint nfl, default music, htc contacts, etc. Anyone know why this is? Tried with several different roms and wiped excessively. Still seem to be several app's I cannot remove without adb'ing after flash...
Thanks in advance
Make sure you Wipe Data/Factory Reset from the Recovery image before flashing
mrinehart93 said:
Make sure you Wipe Data/Factory Reset from the Recovery image before flashing
Click to expand...
Click to collapse
Turdburglar said:
Tried with several different roms and wiped excessively. Still seem to be several app's I cannot remove without adb'ing after flash...
Click to expand...
Click to collapse
10charsssssssssssssssss
Aah sorry I missed that. It could be that the apps you're attempting to remove that are being left-over are in /system/app... because wiping Data doesn't remove them from there.
mrinehart93 said:
Aah sorry I missed that. It could be that the apps you're attempting to remove that are being left-over are in /system/app... because wiping Data doesn't remove them from there.
Click to expand...
Click to collapse
Thanks, strange, shouldn't it format system/app on flash? Anyone tell me how I might accomplish that?
Actually now that I think about it, even if I adb rm, and flash a rom with the apk's removed, they still show up.
Wow... I have no idea then Nevermind, scratch that! DO you have an ext partition or Apps2SD installed? That would be the culprit!!!!!
mrinehart93 said:
Wow... I have no idea then Nevermind, scratch that! DO you have an ext partition or Apps2SD installed? That would be the culprit!!!!!
Click to expand...
Click to collapse
nope, weird right? think I got sprint nfl out by default finally. Still got Rosie, music, people...
default im won't go away either, or weather.
Screw it, i'll just make a .bat, what a pain...
Well I think I found my problem, not sure how to fix it tho if anyone can lead me in the right direction. I've been using fresh pre-kitchen to sign zips. Seems no matter what I put in the update-script before I sign it with pre-kitchen this is all I have in there afterword...
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
So obviously it's not formatting system. or doing anything but copying "system". I can also try to edit/replace the update-script after I sign the zip but that gives me a "E:/Wrong Digest .../update-script E:Verification failed" error when I attempt to flash.
All I'm trying to do is add a data folder to damagecontrol2.07.2, remove some apps, rosie, add a new taskbar, and lockscreen.
Is there any better easy way to do this, update-script is killing me.....
Suppose I could try to sign it manually, but I'm a noob and lazy I guess, easy and quick is good. Anyone else having this sort of problem with pre-kitchen?
I already got damagecontrol running on my phone with all the things I want using a .bat, just trying to figure out how to put it all in a rom I can flash and be done with it in the future.... Thanks for any help.
I find the easiest way to sign update.zip's is to find the script somewhere around here (I have no idea... I found it like 4 months ago) that adds "Sign Zip" to your right-click context menu. If you do that, then all you have to do is pull the META-INF folder from the ROM you're basing it off of, put that next to System and boot.img in the same directory, highlight them all, zip them, and then right click and sign the zip. That's how I do stuff, and it works perfectly every time.
mrinehart93 said:
I find the easiest way to sign update.zip's is to find the script somewhere around here (I have no idea... I found it like 4 months ago) that adds "Sign Zip" to your right-click context menu. If you do that, then all you have to do is pull the META-INF folder from the ROM you're basing it off of, put that next to System and boot.img in the same directory, highlight them all, zip them, and then right click and sign the zip. That's how I do stuff, and it works perfectly every time.
Click to expand...
Click to collapse
thanks, I'll take a look around for it.
No problem. If it helps, I'm pretty sure I found the script on a Droid forum. I'd help you look for it, but I have homework to do that involves Shakespearian soliloguy's... and Shakespeare is not one of my forte's.
Found one for linux here...
http://forum.xda-developers.com/showthread.php?t=538020
to bad I'm on windows at the moment, might be about time to go back to ubuntu anyway.
Anyone got one for windows for sh..s and giggles?
ahhh well I've been using winzip to zip the files, seems others have been having problems also, supposedly 7-zip works better? I'll post results in case anyone else has similar issues.
Nice! found the windows script for right click also incase anyone wants it.
http://forum.xda-developers.com/showthread.php?p=6232592
Yep problem was winzip. works like a charm when zipped with 7zip... tried zips from both winzip and 7zip with pre-kitchen and the script, update-script in the winzip'd files is always bare. odd. Thanks for pointing me to the script mrinehart, doesn't get easier than that.
No problem! Glad you were able to find it and get everything working

[Q] Can you rename Rom backup folders?

noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
great question i also would like to know never had the balls to try cuz it says something about messing it up i know in rom manager u can under manage and restore (i think) also rom manager doesnt see ur cwm backups i usually go through ando zip but yea id def like to kno
Suprah said:
noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
Click to expand...
Click to collapse
I don't know if you can rename the folders themselves, but you CAN rename the backup file itself. I use Root Explorer to do this. Just make sure you don't put any spaces in the new file name. You can use dashes and underscores to separate words and numbers, though.
Someone in the past said you can download mand5 to generate a new md5 sum, but I haven't tried it.
@visedmonk do u think andro zip will work it says it will let me rename then i click on that and it says change to file extension can make file unusable and i dont space any letters for instance il put cm for (cyanogenmod) rite next to the numbers havent had the balls to try it
sarni84 said:
@visedmonk do u think andro zip will work it says it will let me rename then i click on that and it says change to file extension can make file unusable and i dont space any letters for instance il put cm for (cyanogenmod) rite next to the numbers havent had the balls to try it
Click to expand...
Click to collapse
I dunno. I've never used andro zip. Only one way to find out...
But seriously, it should work. To be safe, though, make a copy of the file you want to rename and place the copy with the unaltered name on your computer or sd card or whatever. Then you can rename the file and see if it works. If it does, great. If it doesn't, you still have the backup you need.
Suprah said:
noob question i know however just a quick one,
can you rename nandroid backup folders with messing up md5sum ?
i load a ton of roms on the regular [a junkie i know] basis and get flustered when i have tons of backups but they are all dated
Click to expand...
Click to collapse
Don't know if you're using "nandroid" generically to refer to both the true nandroid as well as CWM but I rename CWM backup folders all the time and have never had trouble restoring them. I've done it from ROM Manager, via a file manager and also via ADB.
short/y said:
Don't know if you're using "nandroid" generically to refer to both the true nandroid as well as CWM but I rename CWM backup folders all the time and have never had trouble restoring them. I've done it from ROM Manager, via a file manager and also via ADB.
Click to expand...
Click to collapse
im talking about the folder not the actual files in the folder.
i just want to organize my roms so i can always jump between each
@suprah name it like this ex, 2011-06-16.05.57.13.....
you want...2011-06-16.05.57.13gingerbread ? rite well when i try that in andro zip it sayin it will make file unusable.... n i guess i will have to try and i always used to use rom manager and just go to manage and restore backups but its different with this phone especially cuz rom mana doesnt see cwm i guess?
Suprah said:
im talking about the folder not the actual files in the folder.
i just want to organize my roms so i can always jump between each
Click to expand...
Click to collapse
Yup, that's exactly what I'm talking about. I rename the folders all the time and have no problems restoring.
short/y said:
Yup, that's exactly what I'm talking about. I rename the folders all the time and have no problems restoring.
Click to expand...
Click to collapse
alright welp as long as you rename the folder without any spaces, then there would be no problem with restoring nandroid backups
nice nice will try soon cuz yea i have like 6 backups on here n was writing the date down with a name lmao
I renamed the folder once and couldn't restore. It was making a reference to the md5 file.
What I did to fix the backup is rename the folder again but this time without spaces and then it let me restore without any problems.
Now my Nandrioids are all organized
Hope that helped
Sent from my Bionix 2 - A TeamWhiskey Production using XDA App
the stock rooted nandroid restore that's posted in the dev section is renamed to LG-P999-V10f. it's not the typical date format. and alot of people have used it. so the answer is ....yes.
crazythunder said:
the stock rooted nandroid restore that's posted in the dev section is renamed to LG-P999-V10f. it's not the typical date format. and alot of people have used it. so the answer is ....yes.
Click to expand...
Click to collapse
jus making sure, im not a dev so i assumed that was possible with some code editing
moshe22 said:
I renamed the folder once and couldn't restore. It was making a reference to the md5 file.
What I did to fix the backup is rename the folder again but this time without spaces and then it let me restore without any problems.
Now my Nandrioids are all organized
Hope that helped
Sent from my Bionix 2 - A TeamWhiskey Production using XDA App
Click to expand...
Click to collapse
Could be there's a coding error in the recovery code and stops parsing the directory name when it hits a space. The md5 file only references the individual files not the directory.
In general it's better to stay away from spaces in file and directory names. Back in the early days of *nix spaces were verboten and there are still some vestigial issues lurking either in the code or in the coding habits of some people. It's rare but it does happen. Hyphens, underscores, periods are all OK though.
Sent from my Xoom using Tapatalk
If after you rename the folder you get an md5 error. This http://forum.xda-developers.com/showthread.php?t=714114 can help you fix it.
BE SURE AND READ THAT POST COMPLETELY
It's imperative that one not generate an md5 sum for a nandroid that is actually corrupted. That will wreak all kinds of havoc on your system.
ONLY PERFORM THE ABOVE IF YOU KNOW ITS NOT RESTORING DUE TO A NAME CHANGE
EDIT: For the record, the above commands can be performed from terminal emulator if you know what bits to leave out. Saved me a few steps.
I rename all of my nandroid backups. They are easy to get confused otherwise. The only thing I change is the year in the date, and leave the month/day alone.
Sent from my LG-P999 using XDA Premium App
Yea I downloaded the Stock Nandroid and loaded it. I renamed the folder and got a MD5 error. Now I'm not sure it if was because of the rename or because it was a bad download to begin with.
I think I still have the file on my pc and possibly find the MD5 checksum before copying it over this time.
player911 said:
Yea I downloaded the Stock Nandroid and loaded it. I renamed the folder and got a MD5 error. Now I'm not sure it if was because of the rename or because it was a bad download to begin with.
I think I still have the file on my pc and possibly find the MD5 checksum before copying it over this time.
Click to expand...
Click to collapse
Most likely because you renamed it
Sent from my LG-P999 using XDA App

[Q] Can't see Zip files in recovery

after flashing several roms back and foward, I'm having this problem, if I go into recovery I can't see any zip file at all, folders are there, but no zip files, I can still install from Rom manager but not from recovery since i cant find them, Please help
Running Ginger Beast 2.1.2.
But regardless what rom I'm running Zip's are gone
Are they on root of SD card or in a folder? If in a folder, try them in the root. I have never tried with them in a folder, but instructions always say put them on the root so there must be a reason.
they are on root, just can't see them from recovery, but can see and flash from Rom Manager.
I place my ROMs in a folder along with another folder containing kernels and system tweaks, there really is no problem placing them in folders.
I will try that, will let you know
Well guest what I can see them when I place them under a folder! Weird but I guess is another way to do it, I will still like to know why I can't see them on the root.
dragonfuego said:
Well guest what I can see them when I place them under a folder! Weird but I guess is another way to do it, I will still like to know why I can't see them on the root.
Click to expand...
Click to collapse
Try throwing a z in the file name and scroll all the way down while in CWR and see if it appears...maybee you couldnt decipher the right file out of a lot of others.
Folders make everything easier
Nope I always erase old roms from my phone, for some reason they just won't show
Hmm... Well thank you for that bit of info. I had a few roms j downloaded to play around with in folders never tried flashing! I always assumed since they stress placing them on a root there must be some reason! Well I guess the old saying about what happens when we assume holds true! I would thank now but can't from the app. Will do it soon!
Sent from my Inspire 4G using XDA App
I am not positive why Devs tell people to place them on the root of the SD card, but I have somewhat of an idea...
Many users simply do not know how to work there way around a file system and so they just infer every user doesn't understand and so placing on the root is just the easiest to do.
Yeah that's what I was thinking too... You'd think anybody who could root and use cwm would not be big enough noobs to fail with folder structures. Oh well. Thanks again!
Sent from my Inspire 4G using XDA App

[Q] Is it safe to remove files from a custom rom zip for android?

Hopefully this is a simple answer. I'm using a custom rom on my phone, flashed through CWM. I would like to delete most of the ringtones that come inside the zip file, prior to flashing it to my phone, to make the process quicker/easier than doing the cleanup after they are installed on my phone in /system/media.
If I open the custom rom zip file, and simply delete the ringtones, will CWM simply skip those files? Or will this error on me and cause the installation to fail?
If i cannot simply delete these files, what process would i need to do to remove these from the rom zip?
I have been lurking for a while, and slowly digging in more and more on my android phone, getting more comfortable doing things with it, without being afraid of breaking it. I'm still a bit cautious so far though.
Thanks in advance for any help with my question!
It should be safe. I haven't removed ringtones before, but i have deleted apps before flashing.
Do not unzip the file, but just open thg zip file with WinRAR or something and delete the stuff from within WinRAR. Then flash it.
If you don't feel good about doing this, check out ROM Cleaner (google it). If you want to completly delete stock apps and stuff after you've flashed, use "Root App Remover" from the market
Sent from my HTC Desire HD using XDA Premium App
Some apps such as system ones will cause errors on the final product once done flashing, but removing such unimportant files as ringtones will cause no problem what so ever. Go ahead with it.
Sent from my tiamat hammerhead xoom
P.s. if this helped please press the thanks button
Thank you very much for the answers!

Categories

Resources