Problem with update.zip - Android Q&A, Help & Troubleshooting

Hi all i create an update.zip.
I signed it, after adding apks (/system/app), datas (/data/data) and modifying the updater-script.
So, when i flash it, the recovery executes it perfectly, but when i reboot my phone, only a part of the apps that i wanted to add are installed and the others are in /system/app but not installed and when i try to install them manually with Root Explorer in /system/app, this is the output:
Code:
There is a problem parsing the package
Why does it happen?! What can i do??

I have ever a error when i make a update zip or can not open update zip what i can do??? I used a updatezip creator.
Sent from my LG-P920 using XDA Premium App

I've created an easy guide to make a good and working update.zip. It's here: Create your own UPDATE.ZIP

Whan i start my update my lg p920 write all what i write to my update but the update doesn't make what i want. I want to delete a system app and copy for this a modified edition. I don't know what i make wrong
Sent from my LG-P920 using XDA Premium App

Write there: Create your own UPDATE.ZIP, cause your problem and the solution can help someone else...

Thanks mackief now works fine.
Sent from my LG-P920 using XDA Premium App

Related

[TUT]Tutorial for making Custom Rom

Today I went to computer center and tested.
Finally,I got a full working custom rom.
Note:Now,I don't have computer at home.
My dad shifted the computer to his room(another house) due to my final year exam.
Now explaining all these steps with my remembered things at center.
Sorry,I'm not responsible if anything goes wrong.
Synopsis:
1.Making a Kitchen
2.Create a Stock Base Rom
3.Making Custom Rom
4.Finished
1.Making a Kitchen:
Code:
You must install a Kitchen properly.
To do,
Download a dsixda kitchen from Chef Central Forum.
Install it properly according to that post.
Short synopsis for windows:
1.Download all necessary things.
2.Install Java.
3.Then install cygwin.
4.Copy the kitchen to home folder.
Now your kitchen ready.
Test the kitchen by running it.
Type ''./menu'' in cygwin
It will show Main Menu.
Don't go to next step until you prepare Kitchen.
2.Create a Stock Base Rom:
Code:
From this stock base rom we can made a custom rom.
First reinstall a Android 2.1.
Then root it.
Install a XRecovery.
Then backup it.
Now you will get system.img in backup folder.
Then copy the system.img to your kitchen folder "original_update"
In new version of kitchen you don't have to create fake file.Skip next step.It will automatically created.
Make a fake file called "boot.img"(empty file).
Now Run a kitchen by typing in the cygwin
./menu
You will get a main menu.(if you installed properly)
Choose option 1 and press enter.
Again press Enter.(now your system.img will extract)
It will take above 5min to extract.
At last you will get a question asking ''you want see the rom details'' for that press n(No). Bcoz we don't have boot.img.
Then it return to main menu.
Now minimise the cygwin.
Then you will get working folder in your kitchen.
Stock base rom created successfully.
Backup this base rom.
It will useful for future Re-use.
3.Making custom rom
From Stock base rom modifiy what you want in your system folder like removing unwanted apps,add new theme,root option,etc...
4.Making update.zip
Maximise the cygwin and choose option 99.
Your rom will be created and signed in output_zip folder.
Installing Rom using Xrecovery.
1.Copy the zip to sdcard(rename it to update.zip)
2.Go to Xrecovery.
3.Factory reset(Full Wipe)
4.Then install update.zip
Hope this you can understand and work.
All the best.
-CyB
Thanks for this great tutorial! Has anybody actually tried it yet? I'm not home atm and can't try it.
I think Surely this will work on mini also.
Sent from my U20i using XDA App
confirmed working?? anyone?
I have working rom but no computer to upload.
Sent from my U20i using XDA App
Nice one, I set up the kitchen and did the backup thing a couple of days ago but got stuck at the boot part... Now you have explained that part I will give it another go tonight... If it works ill upload the results and let you lot know tonight... Thanks!!!!
Sent from my U20i using XDA App
svprm said:
I have working rom but no computer to upload.
Sent from my U20i using XDA App
Click to expand...
Click to collapse
ill wait for your working rom.. suddenly i got excited
I wonder what is the difference betwen this custom rom and those you get backing up your rom?? I understood that you need a rom to modify apps in /system...
Please explain the differnce.
We can't take system directly from the device.
So from backuping we can get system.
Then modify what you want in the system like removing unwanted apps,adding new theme,etc....
Sent from my U20i using XDA App
typo error on the first part making the kitchen in checking the menu of kitchen instead of "/.menu" type or use "./menu"..
Sorry,I made mistake.
It should "./menu".
Sent from my U20i using XDA App
Nice tutorial mate.
Confirmed to work properly, i made a small custom test rom and it is working flawlessly.
Thanks man for confirmed.
Sent from my U20i using XDA App
Cant wait....
Sent from my E10i
svprm said:
Thanks man for confirmed.
Sent from my U20i using XDA App
Click to expand...
Click to collapse
I will try to add /data also i think it should be easy.
awesome i am going to try this out and see what i can create. lets see if we can get a x10 mini pro rom up and running
svprm said:
First reinstall a Android 2.1.
Then root it.
Install a XRecovery.
Then backup it.
Now you will get system.img in backup folder.
Click to expand...
Click to collapse
can i skip this step here? can i use my old rom just want to add/edit something..??
First time we want system.
Then we can use the previous one.
Now you can skip those steps.
Sent from my X10i using XDA App
Ok, i've got to step with removing apps... Problem is, that i have App2SD and those apps which are stored at card are not there (in working folder). Therefore it seems that if i will give that update.zip to someone, he will be missing some apps won't he? Or are they somewhere and i am just blind?
question on system.img
could i use a system.img file converted from system.sin decrypted from update files for this tutorial?

[solved] Totally obliterated /system partition

While attempting to modify my wpa_supplicant in /system/app (not by any process listed here) I somehow managed to completely destroy my /system partition. Not a single file was left alive. My nook did not particularly like this, and now will not boot. I had installed cwm recovery through indirect's app, and cwm won't flash either of Barnes and noble's update zips for some reason. My question is, does anybody have a cwm compatible zip that will restore my /system, or can anyone point me to information on how to make one? Cwm's scripting language seems to be poorly documented, if documented at all. Thank you in advanced for any help! I worked on this for several days before posting.
Sent from my MB860 using xda premium
Have you tried with adb? If not then you haven't try it all.
Get in CWM and plug your device to the machine you used for root or working nook drivers, in CWM mount /system, take the \system folder of the acclaim_update.zip(unzip it) and put it in C:\ntroot ( where adb should be) , cut \system\bin folder and put it outside so it will look like this C:\ntroot\bin, open CMD as administrator and run
>cd C:\ntroot
> adb devices (Check if your device really gets recognized)
> adb push bin /system/bin ( it will push all the files inside bin folder to /system/bin and override them)
Repeat the process with the other folders.
Wish you luck!
PS: if you have CWM backup you could even unpack system.img is easy but you need linux ubuntu is fine so you use your own modified tweaked and working system.
~ Veronica
Sent from XDA premium using my Nook Tablet
Thank you, I didn't know adb could push entire folders! I would still like to learn how to make flashable zips, though. Should I just read the source code or something? I really cannot find any documentation.
Sent from my MB860 using xda premium
Zapcorns said:
Thank you, I didn't know adb could push entire folders! I would still like to learn how to make flashable zips, though. Should I just read the source code or something? I really cannot find any documentation.
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
Pm celticwebsolutions user he just learned how to make flashable zips so he must have the documentation, I will look into it this week. Let me low if you managed to fix your nook.
~Veronica
Sent from XDA premium using my Nook Tablet
http://forum.xda-developers.com/showthread.php?t=1187313
http://www.freeyourandroid.com/guide/introdution_to_edify
http://blog.coralic.nl/2010/01/25/how-to-create-update-zip-using-your-build-aka-system-img/
A cwm flashable zip must have a META-INF directory and whatever you're loading with a structure like below:
/META-INF
-/com
--/google
---/android
----/update-binary (file)
----/updater-script (file)
/system (or whatever you're loading)
'updater-script' uses the edify script language to mount, copy, set permissions, etc. Make sure this is in unix formatted text and not dos/win. Some CWM versions dislike dos/win formatted text. May as well make sure it's unix to avoid any issues.
You can just pull 'update-binary' from any flashable zip for the NT.
Once the zip is created you need to sign it, but CWM can be set to ignore that.
Just look at other cwm installable zips for examples.
http://downloads.androidsu.com/superuser/
http://forum.xda-developers.com/showthread.php?t=1458452
Igthorn said:
http://forum.xda-developers.com/showthread.php?t=1187313
http://www.freeyourandroid.com/guide/introdution_to_edify
http://blog.coralic.nl/2010/01/25/how-to-create-update-zip-using-your-build-aka-system-img/
A cwm flashable zip must have a META-INF directory and whatever you're loading with a structure like below:
/META-INF
-/com
--/google
---/android
----/update-binary (file)
----/updater-script (file)
/system (or whatever you're loading)
'updater-script' uses the edify script language to mount, copy, set permissions, etc. Make sure this is in unix formatted text and not dos/win. Some CWM versions dislike dos/win formatted text. May as well make sure it's unix to avoid any issues.
You can just pull 'update-binary' from any flashable zip for the NT.
Once the zip is created you need to sign it, but CWM can be set to ignore that.
Just look at other cwm installable zips for examples.
http://downloads.androidsu.com/superuser/
http://forum.xda-developers.com/showthread.php?t=1458452
Click to expand...
Click to collapse
lol now i realized i've always played with the tools for make this but i have never used them to create update.zip's or flashable zips just to extract .img files and sign them lmao, i have made a tutorial about this in other forum toowhich will be posting here too, for now i leave the tools i used like unyaffs, etc which are needed and will make your life easier.
IMG_tools.zip
And this is the tutorial, just some more reference
~ Veronica
Good news, I just managed to make it fail to boot at a different point. That's not much, but its progress. Does anyone have any ideas? I did successfully restore /system (I think) so I don't know why I'd won't boot.
Sent from my MB860 using xda premium
Zapcorns said:
Good news, I just managed to make it fail to boot at a different point. That's not much, but its progress. Does anyone have any ideas? I did successfully restore /system (I think) so I don't know why I'd won't boot.
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
unmount system, wipe cache, advanced> wipe dalvik cache, fix permissions in CWM try that and give more details of its status.
~ Veronica
Zapcorns said:
While attempting to modify my wpa_supplicant in /system/app (not by any process listed here) I somehow managed to completely destroy my /system partition. Not a single file was left alive. My nook did not particularly like this, and now will not boot. I had installed cwm recovery through indirect's app, and cwm won't flash either of Barnes and noble's update zips for some reason. My question is, does anybody have a cwm compatible zip that will restore my /system, or can anyone point me to information on how to make one? Cwm's scripting language seems to be poorly documented, if documented at all. Thank you in advanced for any help! I worked on this for several days before posting.
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
find any CW flashable zip, get the 1.4 acclaim zip, copy all content from acclaim zip, EXCEPT META folder, to the CW zip, and put the CW zip, overwrite if it asked, you just produced on SD and flash it win recovery. You will need to re-root.
So, I managed to do the same thing...not to ask for help or anything but can someone provide a link to a CW zip that can get me back to square one?
I was finally able to fix it! Using Cobrato's flashable zip in the developer forum, i was able to flash a working system. It even included many of the apps i had been using before not available on the market. Thank you for all youre help.
Sent from my BNTV250 using xda premium
Zapcorns said:
I was finally able to fix it! Using Cobrato's flashable zip in the developer forum, i was able to flash a working system. It even included many of the apps i had been using before not available on the market. Thank you for all youre help.
Sent from my BNTV250 using xda premium
Click to expand...
Click to collapse
Great News!
Please update your OP title.
And link to the file that fixed it. I'm sure one of us other n00bs will do the same.
Sent from my PG06100 using xda premium
Heric1 was in the same situation but i gave him a link that i found in development with 1.4.0 stock ROM with indirect and cfoesch root methods and it worked ill post this links in My FAQ. Development should have the thread that was created to index all the ROMS updated and stickied
http://forum.xda-developers.com/showpost.php?p=21748940&postcount=57
~ Veronica
Sent from XDA premium using my Nook Tablet

Rom zip's not showing up in recovery?

Ok so i did search to see if i could figure this out on my own but failed miserably so maybe i cold get some help here?
i download a rom to my download folder boot into recovery go to flash said rom but it is not there. reboot system search with file explorer and the rom zip is there. Any reason why its a no show?
If you ever used a 4.2 Rom it makes a "0" folder. So if you see that folder put the roms in that folder and then your recovery should see it
Sent from my HTC6435LVW using xda premium
I use oi file manager to copy from downloads to 0/downloads. Its easy, no pc needed. I bounce between 4.2 an 4.1 all the time
Sent from my HTC6435LVW using xda app-developers app

[FIX][Offline Charging][All Models]

Hello!
After looking into the issue of offline charging I did lot of research that what is it causing which affects offline charging and the answer is root and CWM, and I have found a fix to it NOTE : I have tested this method several times only on newly flashed ftf so I recommend using newly flashed ftf and then trying this , so if you want to fix offline charging you have to flash a new ftf, Steps-
1 - root using DooMLord's method : http://forum.xda-developers.com/showthread.php?t=2405933
2 - install CWM for locked/unlocked bootloaders : http://forum.xda-developers.com/showthread.php?t=2352920 until you don't root and install CWM offline charging will work but as soon as you root and install CWM offline charging wont work anymore
3 - open root explorer go to folder "Data" and then open "Local" folder, in local folder open tmp folder you will see many files there, from all those files replace "Charger" files with the file given in attachments and delete "Chargemon" file and power off your device get into CWM wipe cache and power off thats it! You have your offline charging working again even after root and CWM! This method is fully tested by me on several devices and it works without any problems so you can do this without thinking twice, good luck! Do report me!
There is no file named charger in tmp folder..... Infact there is only one file in it named init.rc......
Sent from my C5302 using xda premium
Can confirm no file in that location
Sent from my C5303 using xda premium
Me I have a file but It doesn't work ^^
I follow the instructions
Yep me too I can't find the folder over there.....
Sent from my Xperia U using xda app-developers app
When opening system files with root explorer in / there is a file called charger size 234.23k.
in system/bin there are both those files chargemon size 5.27k and charger size 62.02k
Sent from my C5303 using xda premium
mansoorarb said:
There is no file named charger in tmp folder..... Infact there is only one file in it named init.rc......
Sent from my C5302 using xda premium
Click to expand...
Click to collapse
zolaisugly said:
Can confirm no file in that location
Sent from my C5303 using xda premium
Click to expand...
Click to collapse
Karchikumar said:
Yep me too I can't find the folder over there.....
Sent from my Xperia U using xda app-developers app
Click to expand...
Click to collapse
You guys sure you are looking in the correct folder. It is /data/local/temp/
I have just installed as per the instructions and there is no difference. When charger is connected, the phone boots. Not sure about deleting Chargemon either.
Yes sure looking at correct location
Sent from my C5303 using xda premium
Hello, RuchRha,
i think that nothing can be. charger file is different in each locale. And it must match with locale/customize information in the build.prop for your locale.
Furthermore, it is also in my device in the path /data/local/temp only one file init.rc.
The charger file is in root / and can not delete or replace with a rootexplorer!
The Right Fix must be done befor you flash custom rom:
-before the flash needs charger in custom rom under /system/bin to be replaced with your own (match the locale of your device! best copy out of a stockrom recovery)
-in the build.prop of the custom rom need to be replaced before the flash even the lines for customize and locale.
So, don `t flash custom rom with false information for charger and locale. otherwise you lose offline charge!
+also pays attention to the following when locked bootloader! in our custom rom under /system/bin must be a recovery.tar, chargmon and ric available, otherwise you will lose the CWM after flash!
Sent from my C5303 using xda premium
@roadrunner00
bootloader unlocked?
heross said:
@roadrunner00
bootloader unlocked?
Click to expand...
Click to collapse
Stock Rom locked bootloader
Sent from my C5303 using xda premium
no custum rom installed after CWM installation?
I think that the files are present there only after the install of CWM. The installer copies the files there. After you flash in CWM a custum rom on locked bootloader this files receives anymore, because they then write directly into system/bin directory.
followed the instructions, but no luck.
even unZIPed the file from the ZIP and copied it to /data/local/temp
Not working. Tried for 3-4 times
Sent from my C5302 using xda app-developers app
hello rucha
tried but not working...
No need for a "Fix" if using DooMLoRD's easy rooting on a locked bootloader.
After rooting and installing the CWM recovery for locked bootlaoders and checking for proper root acces, flash the correct kernel in flashmode but select ALL the wipes, EXCLUDE SYSTEM and check NO FINAL VERIFICATION. The phone will start like new, but with CWM, Root and no longer the offline charging bug.
cachanilla86 said:
No need for a "Fix" if using DooMLoRD's easy rooting on a locked bootloader.
After rooting and installing the CWM recovery for locked bootlaoders and checking for proper root acces, flash the correct kernel in flashmode but select ALL the wipes, EXCLUDE SYSTEM and check NO FINAL VERIFICATION. The phone will start like new, but with CWM, Root and no longer the offline charging bug.
Click to expand...
Click to collapse
Not quite correct I have followed doomlords tut to get root and installed cwm,I have offline charging issue,but this is no biggey for me as I always keep phone on and when possible connected to charger.
Sent from my C5303 using xda premium
followed all procedure but it didn't worked
Unlocked, rooted and CWM...followed precisely without any issues and it made no change.

[Q] Replace recovery.img with cwm recovery

This is my first time trying to root my Micromax Canvas HD.
I am trying to install CWM recovery using this http://forum.xda-developers.com/showthread.php?t=2167621
However I am stuck in the second step itself. I have extracted the "Kernel Source" SouceCode(IQ451_4.1).zip file. But I am not able to find any recovery.img file to replace. What is the problem here? Have I downloaded the wrong file? Should I download something else?
While trying to extract the zip file, Winrar asked me if I want to rename the duplicate files, because there were a few files with the same name but different size. I asked Winrar to rename the files. Is this a problem?
I am completely new to this field, so I am not exactly sure what I am doing wrong.
Any help regarding this problem would be of great help to me. Please tell me of the things that need to be taken care of before rooting my phone.
Thanks a lot.
sudhingr8 said:
This is my first time trying to root my Micromax Canvas HD.
I am trying to install CWM recovery using this http://forum.xda-developers.com/showthread.php?t=2167621
However I am stuck in the second step itself. I have extracted the "Kernel Source" SouceCode(IQ451_4.1).zip file. But I am not able to find any recovery.img file to replace. What is the problem here? Have I downloaded the wrong file? Should I download something else?
While trying to extract the zip file, Winrar asked me if I want to rename the duplicate files, because there were a few files with the same name but different size. I asked Winrar to rename the files. Is this a problem?
I am completely new to this field, so I am not exactly sure what I am doing wrong.
Any help regarding this problem would be of great help to me. Please tell me of the things that need to be taken care of before rooting my phone.
Thanks a lot.
Click to expand...
Click to collapse
Use mobile uncle tools instead of the above method.. Download recovery... Rename it to recovery.img... Place it in sd card... Not in any folder.. Just inside sd card.. Open mobile uncle tools... Update recovery.. It automatically detects the file in sd card... Select... Flash...reboot.. Done...
Hit thanks if this helped..
Sent from my Nexus 4 using XDA Premium 4 mobile app
$hino said:
Use mobile uncle tools instead of the above method.. Download recovery... Rename it to recovery.img... Place it in sd card... Not in any folder.. Just inside sd card.. Open mobile uncle tools... Update recovery.. It automatically detects the file in sd card... Select... Flash...reboot.. Done...
Hit thanks if this helped..
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Is there no other solution? Will I be able to use the files that I have already downloaded?
I have tried loading the recovery.img file through the Flash tool, but it asks me to select the path for the PRELOADER..
How do I find the preloader file?
You can use the downloaded file... Why do you want to use the flash tools method when the thing can be done in 2 clicks..
Sent from my Nexus 4 using XDA Premium 4 mobile app
just use Framaroot app and then Rashr app
sudhingr8 said:
Is there no other solution? Will I be able to use the files that I have already downloaded?
I have tried loading the recovery.img file through the Flash tool, but it asks me to select the path for the PRELOADER..
How do I find the preloader file?
Click to expand...
Click to collapse
U need to root chd to install custom recovery. To do so download framaroot app from framaroot.net . Then to install custom recovery just use Rashr (search it in google play)

Categories

Resources