[Q] How to close the update.zip file the right way - Android Q&A, Help & Troubleshooting

Hi everyone,
I want to eventually create an edited ROM for an Android tablet. (Very simple stuff, really. Removing apks, adding build.prop mods)
I have a working update.zip file, which re-installs the image on the tablet, through stock recovery and the install from sdcard option.
But once I unzip it,
and then zip and even re-sign it (with the tool I found by searching the forum),
the recovery says 'installation aborted', when it is verifying the package.
1. How can I avoid this from happening? I get it that closing the update.zip is done wrong. How can I pass the verification section?
2. It IS possible to push such a .zip through stock recovery, right? I want to avoid CWM and TWRP and make it as simple as possible.
Thanks.

Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).

dxppxd said:
Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).
Click to expand...
Click to collapse
I tried this, too.
I only deleted one apk from system/app and later I tried again by deleting the apk and its odex file, too.
In both cases, instead of rejecting the update instanlty, it starts the process and then stops after a few seconds.
IS it possible that there is a filesize checker text inside the image?
(or maybe a propery inside the build.prop or updater-script ?)

Any ideas, anyone?

Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?

iraklisvel said:
Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?
Click to expand...
Click to collapse
No
Stock recovery doesn't flash custom roms
Get cwm from builder.recovery.com
Press thanks :good: I'd helped :highfive:

Related

Pack a custom rom

Hi, I want to create my own custom rom, I've finish them, but I've a problem.
I don't know how to pack all the files in a flashable zip, I've make a zip with 7-zip but when I try to install it, recovery say "Installation Aborted".
Someone can explain to me how to create the zip? I've an good experience on android but I haven't already create a flashable zip...
Thanks!
Would not have a clue my friend but by reading the following threads your best bet is to go to the following links
http://forum.xda-developers.com/showthread.php?t=1227549
http://forum.xda-developers.com/showthread.php?t=1133846
Have a look at those links and those are the best options you have to create your own rom. Enjoy
It is possible to make a simple tutorial for me, I'm french and that's too hard to understand for me. I just need to pack in a zip file flashable. Thanks you .
Wouldn't there need to be a script to tell CW what to do with the files in the package/how to install them, etc ?
I wouldn't have a clue how to do this BTW, I'm just thinking logically around what I know about the way CW works so far as installing roms/kernels goes.
MistahBungle said:
Wouldn't there need to be a script to tell CW what to do with the files in the package/how to install them, etc ?
I wouldn't have a clue how to do this BTW, I'm just thinking logically around what I know about the way CW works so far as installing roms/kernels goes.
Click to expand...
Click to collapse
Thanks, but we can't pack a rom with cwm if that's what you want to say.
sangosnip69 said:
Thanks, but we can't pack a rom with cwm if that's what you want to say.
Click to expand...
Click to collapse
still check those links i gave you above. there must be a solution or guide to tell you how to pack a rom once you are finished putting everything together.my guess is that you do need an updater script and updater binary script something like that..check on those two links and have a look..or zip the rom using powerarchiver if you are on windows
just head over to http://perka.zapto.org and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk.
You can just take the signatures from the zip and add them in your future zips or just keep copying this one.
The update script shows the screens on install so change text in there and it will show on install.
Or there is a guide to Edify Scripting here: http://forum.xda-developers.com/showthread.php?t=1265120

[SOLVED] I messed this up....

I have CM 10.1.3 installed on my i9100 and I flashed the ZIP file from the thread at the bottom of this post through CWM Recovery. Now, my phone is stuck at the boot screen.
I would realllly hate to reinstall my ROM and all apps, so I'd just like to fix the problem. The ZIP makes changes to the 'SurfaceFlinger' library. Could I reflash a ZIP of the original library? Any idea how I could get the file?
surfaceflinger-fix.zip
http://forum.xda-developers.com/galaxy-nexus/development/fix-lag-fix-cm10-based-roms-cm10-t1875490
SOLUTION:
The only file that surfaceflinger-fix.zip affects is libsurfaceflinger.so. So, I tried extracting this file from a copy of the CM 10.1 zip file. libsurfaceflinger.so is located in system/lib. I then created a flashable ZIP using this guide:
http://forum.xda-developers.com/showthread.php?t=2163974
I flashed the ZIP after pushing it via 'ADB push sample.zip /sdcard'. I installed the ZIP via CWM Recovery. Clear caches, reboot. STILL DIDN"T WORK.
So then I took a look a look in the META-INF folder of surfaceflinger-fix.zip and noticed some additional files that I did not have in my custom 'sample.zip'. So, I just took the libsurfaceflinger.so file that I extracted from CM 10.1 and put this file in surfaceflinger-fix.zip, replacing the original one in the ZIP file. Pushed this ZIP via ADB, everything works.
Had you taken a backup prior to flashing the zip it would've been five minutes work fixing your problem, I'm sure there's a lesson for all of us there.
ghostofcain said:
Had you taken a backup prior to flashing the zip it would've been five minutes work fixing your problem, I'm sure there's a lesson for all of us there.
Click to expand...
Click to collapse
This was definitely easier and this is a better fix than using a backup, but I absolutely agree with you.

[Q] I broke it

Hi guys!
I was hoping one of you could help me.
Yesterday i modified a build.prop file on my NextBook EBM8000ND (Next800T) tablet, causing it to get stuck in a bootloop every time it's turned on. I've been searching the Internet all day long but it's hard to find support when you have a device which no one in the world uses . It was rooted but I did a factory reset hoping that it would fix it. It didn't and now it's also unrooted. I tried to make a custom update.zip with the backup of the original build.prop file but the stock recovery simply refuses to load any update file. It always stops at verification. I used 7zip with store option. I tried signing the zip, I even edited the updater script to only print some text on the screen but the recovery still wouldn't load it. I tried to find a way to install CWM using sdcard but with no luck. When i tried to use ADB in recovery the device says: "failed to open driver control: No such file or directory". It might be worth mentioning that I found my device's ROM online with boot.img and recovery.img files and a .tar file which contains the original system folder.
Is there any way to make the stock recovery (since installing CWM or TWRP seems impossible) read my update file? Or is there another way to fix this? I only need to replace that single file.
Hoping to get help soon.
Cheers!

Flashing Issues | Will not pass Android Logo on XtreStolite ROM

Flashing Issues | Will not pass Android Logo
I have have the T-Mobile version of the S5 and it is currently running XtreStolite rom on lollipop. I have been messing around with the SystemUI and framework apks. (getting them to work every now and again)
However, I was searching around and tried to push the apk files through adb at first, instead of a complete reflash with the modified apks inside, with no luck. Adb says that the files were successfully sent but are not there and no changes are made. I then stumbled across a method using a flashable zip that is supposed to just replace the files I need.
I n doing so, after reboot the phone just sits at the Android Logo on powerup, them I have to reflash or restore my recovery. My question is this: Is there a method that allows me to setup a flashable zip with the system/priv-app/systemui/systemui.apk so that it will only replace those files and not the whole system folder itself?
There may be some more information that I am leaving out, sorry I have not slept all night and I am about to go to class.
Thanks in advance, if I have posted incorrectly, please advise.
RockyCaballero said:
I have have the T-Mobile version of the S5 and it is currently running XtreStolite rom on lollipop. I have been messing around with the SystemUI and framework apks. (getting them to work every now and again)
However, I was searching around and tried to push the apk files through adb at first, instead of a complete reflash with the modified apks inside, with no luck. Adb says that the files were successfully sent but are not there and no changes are made. I then stumbled across a method using a flashable zip that is supposed to just replace the files I need.
I n doing so, after reboot the phone just sits at the Android Logo on powerup, them I have to reflash or restore my recovery. My question is this: Is there a method that allows me to setup a flashable zip with the system/priv-app/systemui/systemui.apk so that it will only replace those files and not the whole system folder itself?
There may be some more information that I am leaving out, sorry I have not slept all night and I am about to go to class.
Thanks in advance, if I have posted incorrectly, please advise.
Click to expand...
Click to collapse
Here download this https://www.androidfilehost.com/?fid=24052804347782219
Extract and Add whatever directories/folders you want inside the system folder and flash. The script just extracts the system folder as a whole so as long as you make the correct folders, file names, directories etc it'll flash everything to the right spot.
Delete the jar file out of system/framework/ tho since it's a 5.1.1 jar file I did
Much obliged sir, worked perfectly. I'm sure it was the coding. [emoji2]

Replacing/updating files in ROM update zip

Quick scenario: I am working on a Nook Simple Touch UK ROM zip (now obsolete), trying to get from it the essentials that make it "UK" and move them into/replace similar files (mostly images and documents, but maybe one or two system apps) to the current US version of the ROM so that everything will function properly, but the ROM will have the look and feel (and localization options) of the obsolete UK ROM. There's not a lot to change.
The zips don't open for inspection properly in anything I've tried except 7zip. I can move/overwrite files from one ROM to the other, but there does seem to be a slight compression going on and I have no idea how to stop this. In WinRAR I could, but I don't see any similar option in 7zip. Then the zip contents go into a CWM flashable zip.
Preparing the CWM zip with no changes to the current US ROM gives an error-free flash and a functioning result. But if I change even one file (like the boot splash screen--same name, same file size--until moved), the flash fails almost immediately.
I asked someone about internal checksums before ROMs would install but they did not think there were any on these ROMs. Now I wonder. I don't see anything that looks like a checksum or even a "to do" list.
Have I missed some fundamental step or am I using my tools incorrectly (or the wrong tools)? One last thought, these are "update" zips, if that makes any difference, so on their own they would not wipe user data,for example.
Edit: I think I've got it!
1. Unzip (not just "open") both zips with WinRAR (7zip would not extract the update zips for me)
2. Drag alternate versions of files from one folder to the other
3. Zip up with 7zip
4. Open CWM update zip (just has META-INF folder) and ROM update zip with 7zip
5. Drag contents of ROM update zip to CWM zip.
6. Copy new CWM zip to CWM card and flash.
7. SMILE!
nmyshkin said:
Quick scenario: I am working on a Nook Simple Touch UK ROM zip (now obsolete), trying to get from it the essentials that make it "UK" and move them into/replace similar files (mostly images and documents, but maybe one or two system apps) to the current US version of the ROM so that everything will function properly, but the ROM will have the look and feel (and localization options) of the obsolete UK ROM. There's not a lot to change.
The zips don't open for inspection properly in anything I've tried except 7zip. I can move/overwrite files from one ROM to the other, but there does seem to be a slight compression going on and I have no idea how to stop this. In WinRAR I could, but I don't see any similar option in 7zip. Then the zip contents go into a CWM flashable zip.
Preparing the CWM zip with no changes to the current US ROM gives an error-free flash and a functioning result. But if I change even one file (like the boot splash screen--same name, same file size--until moved), the flash fails almost immediately.
I asked someone about internal checksums before ROMs would install but they did not think there were any on these ROMs. Now I wonder. I don't see anything that looks like a checksum or even a "to do" list.
Have I missed some fundamental step or am I using my tools incorrectly (or the wrong tools)? One last thought, these are "update" zips, if that makes any difference, so on their own they would not wipe user data,for example.
Edit: I think I've got it!
1. Unzip (not just "open") both zips with WinRAR (7zip would not extract the update zips for me)
2. Drag alternate versions of files from one folder to the other
3. Zip up with 7zip
4. Open CWM update zip (just has META-INF folder) and ROM update zip with 7zip
5. Drag contents of ROM update zip to CWM zip.
6. Copy new CWM zip to CWM card and flash.
7. SMILE!
Click to expand...
Click to collapse
Nice job!

Categories

Resources