rom editing question - Droid Incredible Q&A, Help & Troubleshooting

so basically i have flashed cm6 on my incredible and a theme and i want to know if there is a way i can make a rom of what i have on my phone now of if i can combine the zips to make a working rom i can further edit. i have a rom kitchen set up and i am still trying to learn all the in's and out's of it.

undeclared said:
so basically i have flashed cm6 on my incredible and a theme and i want to know if there is a way i can make a rom of what i have on my phone now of if i can combine the zips to make a working rom i can further edit. i have a rom kitchen set up and i am still trying to learn all the in's and out's of it.
Click to expand...
Click to collapse
I would say that is what alot of people are doing right now with incredible rom's.....that is why people are releasing patches and fixes after seeing them working in other roms.
......I have a rather easy question that applies to this subject also....
before loading a rom to my phone, can i go into the zip file and remove some 3rd party app apk files that i don't want before running it and will it still be ok ?

JustinD,
U can not just unzip it change things and rezip. It needs a signiture. Use the basic htc kitchen that's posted in chef central, it will unzip it into a working folder allowing u to change things at your will, u also use the kitchen to rezip and sign.
Sent from my ADR6300 using XDA App

tcberg2010 said:
JustinD,
U can not just unzip it change things and rezip. It needs a signiture. Use the basic htc kitchen that's posted in chef central, it will unzip it into a working folder allowing u to change things at your will, u also use the kitchen to rezip and sign.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Excellent. Thank you. I figured it wasn't as simple as I put it, but I just wanted to make sure before I did something stupid.

Or use 7zip to manipulate files in the archive without even having to unzip it.
Sent from my Incredible using XDA App

mini_monsta said:
Or use 7zip to manipulate files in the archive without even having to unzip it.
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
No. Changing even 1 byte will change the signature needed. You need to use the kitchen so you can resign the ROM and flash it.

Even if u did just unzip, rezip, and flash it would just throw back an invalid signature error and return u to recovery menu. No real harm done.
Sent from my ADR6300 using XDA App

Clockwordmod has signature validation disabled by default. So it will still flash if you change a kb or remove an app.

Related

Delete apps from rom

When I have downloaded a rom is there a way to edit the zip file before I flash it. I want a sense hd rom but they all have alot of stuff I dont want . I would like a sense hd rom that is almost bare. Thanks
Sent from my PC36100 using XDA App
Maybe this is what you are looking for http://forum.xda-developers.com/showthread.php?t=758197
I think you posted in the wrong section, so if you post gets moved check Q & A or General section.
Sacs has a sense hd rom and calkulin has one too but they both have alot of apps that I dont want. Is there a way to unzip rom and remove stuff before I flash it to phone.
Sent from my PC36100 using XDA App
Step 1 Setup Android Kitchen
Step 2 Create a Custom Rom
OR....How to Creat Custom Rom on Android
Thanks alot
Sent from my PC36100 using XDA App
No Problem. Good luck bro. You are a braver man than me to try this. I have thought about making my own Rom because every one I try I like some things but not everything. I would be cool to combine features or implement features from other Rom's and take out the things you don't like and have one happy Rom that you created and use designed especially for you! Anyway, let me know the results and how difficult it is and maybe I'll give it a shot.
Alternatively, you can use apps like System App Remover to remove apps though you would have to remove each app individually...
or you could just open the zip file with any zip application and remove the files you want and then flash
ZIP
after unzipping and removing apps does the zip need to be signed before flashing or will it be ok ?
Kingmac38 said:
after unzipping and removing apps does the zip need to be signed before flashing or will it be ok ?
Click to expand...
Click to collapse
It depends witch recovery are you using with Amon-Ra you need signed zips but with Clockwork you can flash unsigned zips.
gmramirez1973 said:
It depends witch recovery are you using with Amon-Ra you need signed zips but with Clockwork you can flash unsigned zips.
Click to expand...
Click to collapse
download Regaw's zip signer if you are unsure
just open the zip file in winrar, then delete the apks you dont wont. No need to resign. NOTICE I DID NOT SAY UNZIP the file.

(Q) Can someone tell me how to make .zip files compatable with cwm3.0.0.6, please?

Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
sniperkill said:
Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Found this thread in Dev and Hacking:
[Q] Upgrading Amend Scripts to Edify
http://forum.xda-developers.com/showthread.php?t=898289
maybe that will help?
Dont overthink it. Find a zip that is edify ready and does something similar to what u wanna do and replace ur files in it. Yes it can be done on the phone. I have created flashables from root explorer before. Just extract it replace what u want and re-create it.
sniperkill said:
Im wondering if it is possible to be able to make it from my phone? Can I use the app ZipThemer to accomplish this? Like, is there a way to take a regular zip file, and use an app to make it edify compatable? How does one make files cwm 3.0.0.6 compatable?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Sent from my SPH-D700 using XDA App
Make the zips just like you see them, usually all files and folders will match where they go, then google and download amend2edify and use that on them. But I prefer the previously mentioned file swaps.
Thanks guys. I downloaded amend2edify ad that took care of the files. I'm not real good at doing the file swap thing, as I wouldn't even know what I was looking at. But, the file/zip I ran thru amend2edify didn't work after I ran it thru. It was the file in Epic android and development about adding the reboot mod to the power menu. It was the complete power mod. I mean, in cwm3.0.0.6 it said "appy from sdcard complete", but after I rebooted, no power mod was there. I'm guesing that I did something wrong.
Sent from my SPH-D700 using XDA App
Maybe, upload the zip that amend2edify spit out and we can debug the updater-script. That mod requires a framework.jar change and an android.policy.jar change and a framework-res.apk change. Are those all in the zip you made?
sniperkill said:
Thanks guys. I downloaded amend2edify ad that took care of the files. I'm not real good at doing the file swap thing, as I wouldn't even know what I was looking at. But, the file/zip I ran thru amend2edify didn't work after I ran it thru. It was the file in Epic android and development about adding the reboot mod to the power menu. It was the complete power mod. I mean, in cwm3.0.0.6 it said "appy from sdcard complete", but after I rebooted, no power mod was there. I'm guesing that I did something wrong.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse

Re-signing rom?

If I delete some unwanted APK's from the rom before flashing, do I need to re-sign the rom? Thanks in advance!
- Z
zzelinka said:
If I delete some unwanted APK's from the rom before flashing, do I need to re-sign the rom? Thanks in advance!
- Z
Click to expand...
Click to collapse
umm depends.. are u usin 7zip? also windows are ubuntu? either way just try it and if it doesnt work then toggle the signature thingy in clockwork, and you can use this to resign
http://forum.xda-developers.com/showthread.php?t=633246
You can also extract the Rom on your phone with Root Explorer or the equivalent, then go in and make your changes, then simply delete the two "cert" files, and the "manifest" file that are in the "Metainfo" folder.
Re-zip it using Root Explorer, and you'll be good to go.
(Of course, you'll have to have the unsigned zips allowed thing toggled in whichever recovery you're using...but this works the easiest, IMHO.)
Sent from my SPH-D710 using xda premium
Thanks for all the responses! I use Calkulin's ROM, but still way too many apps on first boot. I hate going through TB and deleting all the unnecessary and unwanted apps. I'll try it and get back to y'all. Probably on the next update of Calkulin though...
-Z
Just open in 7zip, remove what you want, and flash.
BigJPNut said:
Just open in 7zip, remove what you want, and flash.
Click to expand...
Click to collapse
This is correct. Simple and easy and doesn't jack up anything up.

[Q] Zipped Backup

Is there anyway i can backup my whole ROM as a zip file? I want to be able to bring it to my computer, edit some png's, then reflash and have the modifications up. If there is such thing please let me know. I am extremely interested in this!!
Why not just transfer the rom.zip you used to flash and edit the framework-res and systemui.apk's and then gut a flashable zip and place those in appropriate folder and flash that? That's what I do if you need a plain empty flashable I can upload one for you
Sent from my SPH-D700 using xda premium
Let me elaborate on that
You take a flashable that already contains an updater-script in it aka meta-inf.
Make a framework folder and this is where you will put your signed and renamed Framework-res.apk then make a folder named System and in system folder make an App folder and this is where you'll place the SystemUI.apk.
*note* you need to sign these when your done swapping pngs and rename them appropriately.
Once done sign the whole.zip boot into cwm and flash it this will replace the stock framework-res etc and you'll be good to go
http://db.tt/xfQOB8Kg
Use this .zip for your flashable this will do all the work in cwm mounting wise. Just delete the folders in the system folder and do what I told you above
Sent from my SPH-D700 using xda premium
this post was so noobish i feel stupid
joe_d08_17 said:
Thank you very much. That sounds like a plan. But how can I make it so the apps will stay on the desktop and settings can be saved? I take it I would have to edit the XML files or something difficult right?:/
Click to expand...
Click to collapse
What do you mean? All you'd have to do is open the zip and find the .apks extract them edit the pngs and sign them put them in the flashable and flash it... I'm not understanind your issue
Sent from my SPH-D700 using xda premium
its because what i want is literally like a clockworkmod backup but as a flashable zip. This is not possible is it? I want all my settings and referennces to be saved along with my messages etc.
joe_d08_17 said:
its because what i want is literally like a clockworkmod backup but as a flashable zip. This is not possible is it? I want all my settings and referennces to be saved along with my messages etc.
Click to expand...
Click to collapse
No if you create this flashable what you edit to put it this it will only change what your flashing like if you put nothing in the flashable then nothing will change. If you want to flash a vending.apk put in this flashable and flash it that's all that's going to change is the replacing of the market...
Sent from my SPH-D700 using xda premium
What do you plan on editing anyways? An app? Your theme?
Sent from my SPH-D700 using xda premium
Oh ok wow i am so dumb. I didnt understand you but now i get it. Thanks this sounds better
joe_d08_17 said:
Oh ok wow i am so dumb. I didnt understand you but now i get it. Thanks this sounds better
Click to expand...
Click to collapse
No problem
Sent from my SPH-D700 using xda premium
There also is a way to make a flashable from your nandroid backup. I don't remember where I saw the thread offhand but will look tonight.
Sent from my SPH-D700 using XDA App
ok i got more questions-.- what is sign? and which apk's do i have to sign?
that would be great. if you find please post a link
joe_d08_17 said:
ok i got more questions-.- what is sign? and which apk's do i have to sign?
Click to expand...
Click to collapse
Lol if you have windows 32bit ill find my installer on my pc for the apksigner and ill upload it for you xD
If you plan on editing an applications png then once you've opened it and replaced said pngs then it needs to be resigned and renamed to not have the "signed" in it
Signing means its certifed and has the ability to be installed as application
Sent from my SPH-D700 using xda premium
lol upload it please. im using apk manager 4.9 but man this really tough. can u elaborate a bit more? im so sorry lol im just not grasping it.
do not give up on me!! lol
how bout this look: so im trying to make a minor change to an app just for fun. its airdroid. so is the first step to extract the apk or to decompile?
and lol i was trying to accomplish the task of making mynandroid backup a flashable zip but this interests me to.
So, lets get clear, what exactly r u helping me do now? In my head im thinking ur trying to help me edit an app and then install it in my phone right?
if im wrong then tell me what we are trying to do!! lol
Yeah that sounds like its much more difficult then what I use what I use you drag and drop the finished apk and it signs it lol simple give me a minute to find it upload it and paste a download link..pc sucks arse phone is much faster....
Edit: yes I'm helping you edit an apk and then have it install on the phone or be able to be pushed to the /system/app folder...
Sent from my SPH-D700 using xda premium
http://db.tt/SxsN7FdP
Extract this and install it once done open the android apk signer and drop the apk file in the box hit sign and done
Sent from my SPH-D700 using xda premium
Go into Themes subforum in the sticky at the top and read Guide to Themeing by Dreamsforgotten....it is awesome and has all the programs and links...plus he answer all questions.
Sent from my SPH-D700 using XDA App
ok great im gonna try it. i tried it another time with apk manager and it didnt work. hopefully urs works.

twrp2.3 update-binary

I can't flash nearly half my zips, and after doing some googling I found out that you have to now replace a file within the zip in order to be useable within twrp. Not a big deal.... only I can't save the dang file without appending some sort of file association. txt, zip, img, bin,mp3 etc...... So how do I exactly save this thing so I can overwrite the original?
I normally frown on double posts, but I can't find this information anywhere. Any information on how to replace an update-binary will prevent me from throwing my phone at a wall. I just want to flash my mason kernel
Sent from my PC36100 using xda premium
Naturesretard said:
I normally frown on double posts, but I can't find this information anywhere. Any information on how to replace an update-binary will prevent me from throwing my phone at a wall. I just want to flash my mason kernel
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
If u having problem with ur recovery flashing I wouldn't care replacing binaries why u don't use another recovery ?
What about smelkus. That could be the faster and the better option to solve ur issue.
Sent from my Nexus 7 using Tapatalk 2
Okay what the problem is that with the 2.3x recovery software they use the jellybean update-binary. To fix this you unzip any zip file that works. Copy that binary over the one that wont flash check updater script to make sure you don't have to change any of the script. Then rezip it all back and it will work fine.
I would suggest changing your recovery also. It is quicker than redoing all the zips. If you want to stay with twrp 2.2.2.0 will work with all your zips.
Oh just double read your post. I use es file explorer on my phone to do the zip fix. I am guessing that you are on a Windows machine. I forget about that sometimes. Been running a Linux box for couple years now.
Sent from my PC36100 using xda app-developers app
a lucid explanation here
If you use 7-zip, simply put the file on windows somewhere and drop it into the right directory. Note that update-script changes to updater-script and the parsing is Amend not Edigy anymore so scripts will change.

Categories

Resources