[SOLVED] assert failed

Cristian Barreto

New member
Jan 3, 2013
2
0
0
Visit site
is just on /META-INF/com/google/android/updater-script , the file dosent have extension, just open it on a text editor and delete the first line from assert to the semicolon (delete it too).
 

Unc0ntr0ld

New member
Jan 14, 2013
1
0
0
Visit site
thanks so much, i did exactly that and now running PA v2.55 on my s3 :) couldnt be happier.

EDIT: BTW, for windows user, it will ask you to save the file and will automatically save it under txt extention. You won't see it if you didn't uncheck "hide extensions for known file types" in the folder options. so make sure you uncheck it. Then delete just .txt from the save file and copy it back to the zip. It will ask if you want to replace that file, say yes. Et voila.

hope this helps.
 

Damien Murtagh

New member
Jan 19, 2013
1
0
0
Visit site
Ok. I'm missing something. How do you extract just one file from the zip and then replace it. I'm using 7-Zip and every time I edit the file, or try to replace the script file with the edited one I get an error about duplicate files.
 

AndyOpie150

Well-known member
May 15, 2011
1,254
32
0
Visit site
Use zipplus by Express Zip File Compression Software Company / NCH Software.
It allows you to delete, add folders, or add files. When done there is no need to resign zip. It's only a 14 day trail period. When trial period is done delete all instances of it off computer and download new.

Sent from my LG-VM670 using Android Central Forums
 

sammyz

Well-known member
Dec 15, 2011
825
190
0
Visit site
Use zipplus by Express Zip File Compression Software Company / NCH Software.
It allows you to delete, add folders, or add files. When done there is no need to resign zip. It's only a 14 day trail period. When trial period is done delete all instances of it off computer and download new.

Sent from my LG-VM670 using Android Central Forums

Or use WinRAR with an annoying pop-up ;)
 

umataro42

New member
Jun 7, 2012
3
0
0
Visit site
I was getting a "status 7" error when trying to flash the 4.2.2 update for the Verizon Galaxy Nexus, so I used ZArchiver to extract just the updater-script and delete the first line of code (using Notepad+), and re-insert it into the zip (this was all done from my phone, not through Windows).

And now I'm getting a "status 6" error.

E: Error in /sdcard/Download/5939ff985946.signed-mysid-JDQ39-from_JRO03O.5939ff98.zip
(Status 6)
Installation aborted.
 

thekraven

Well-known member
Nov 10, 2010
1,407
1,148
0
Visit site
What phone are you trying to flash on? That update could have or need signature verification or a stock recovery to flash.
 

Josh Parker1

New member
May 3, 2013
2
0
0
Visit site
how come every time i delete the line in notepad ++, i save it and then i refresh the folder, click on updater-script to make sure and it keeps coming back! i keep deleting the first line but it wond go away. how do i fix this?
 

thekraven

Well-known member
Nov 10, 2010
1,407
1,148
0
Visit site
Not sure of your procedure, but you might be saving the changes in a temp directory and not in the zip file.

Try pulling the file out of the zip and then edit/save it. Then drag it back to the zip file and overwrite the old file.
 

InkSlinger666

New member
Nov 2, 2013
1
0
0
Visit site
You also cannot use wordpad or equivalent windows text editor to do this or you will get an error..It has to be in Unix so if on windows you must use notepad++ or similar..Just an FYI
 

perpusbio

New member
Jan 8, 2014
2
0
0
Visit site
this is content file updater-script
where i am can delete part script?....Thanks

mount("ext4", "EMMC", "/dev/block/mmcblk0p27", "/system");
assert(file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:2.3.7/ZVD.GWK74/bf40112:user/release-keys" ||
file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:4.0.4/ZVI.IMM76D/LS840ZVI.4820d7b4:user/release-keys");
assert(getprop("ro.product.device") == "cayman" ||
getprop("ro.build.product") == "cayman");
ui_print("Verifying current system...");
show_progress(0.100000, 0);
assert(apply_patch_check("/system/app/ApplicationsProvider.apk", "3be0d4cabe17409729f4a1fff1eacaa723d18cc3", "9dee0a86cee1a2630d8d17ba21f4fb6ac6e9dbf1"));
set_progress(0.000037);
assert(apply_patch_check("/system/app/ApplicationsProvider.odex", "84531ef8095ac0ce86cdac9ce964622749d23b8c", "ac698c8209c5d53105dcecdcf300b9a13ea9b3ee"));
set_progress(0.000149);
assert(apply_patch_check("/system/app/CameraApp.apk", "7b9ff899a90003741c5d53add1f95ca40b27cccb", "f1ef3e95d1435d821adf844a359c2f3e4e39fa08"));
set_progress(0.009554);
assert(apply_patch_check("/system/app/CameraApp.odex", "03fca080f1ab020d537baf4f7a14ea32e25768dc", "4a1fc5e67db7e4cfbe5e1d5b4905d1d28d404f21"));

result from editing updater-script is:
file_getprop: failed to start "/system/build.prop": No such file or directory
E:error in /sdcard/update.zip
(status 7)
installation aborted
please help me master, i am need help in this part ?
 
Last edited:
Feb 19, 2011
1,971
284
0
Visit site
this is content file updater-script
where i am can delete part script?....Thanks

mount("ext4", "EMMC", "/dev/block/mmcblk0p27", "/system");
assert(file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:2.3.7/ZVD.GWK74/bf40112:user/release-keys" ||
file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:4.0.4/ZVI.IMM76D/LS840ZVI.4820d7b4:user/release-keys");
assert(getprop("ro.product.device") == "cayman" ||
getprop("ro.build.product") == "cayman");
ui_print("Verifying current system...");
show_progress(0.100000, 0);
assert(apply_patch_check("/system/app/ApplicationsProvider.apk", "3be0d4cabe17409729f4a1fff1eacaa723d18cc3", "9dee0a86cee1a2630d8d17ba21f4fb6ac6e9dbf1"));
set_progress(0.000037);
assert(apply_patch_check("/system/app/ApplicationsProvider.odex", "84531ef8095ac0ce86cdac9ce964622749d23b8c", "ac698c8209c5d53105dcecdcf300b9a13ea9b3ee"));
set_progress(0.000149);
assert(apply_patch_check("/system/app/CameraApp.apk", "7b9ff899a90003741c5d53add1f95ca40b27cccb", "f1ef3e95d1435d821adf844a359c2f3e4e39fa08"));
set_progress(0.009554);
assert(apply_patch_check("/system/app/CameraApp.odex", "03fca080f1ab020d537baf4f7a14ea32e25768dc", "4a1fc5e67db7e4cfbe5e1d5b4905d1d28d404f21"));

result from editing updater-script is:
file_getprop: failed to start "/system/build.prop": No such file or directory
E:error in /sdcard/update.zip
(status 7)
installation aborted
please help me master, i am need help in this part ?
remove this chunk to stop the no such file or directory error.
Code:
assert(file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:2.3.7/ZVD.GWK74/bf40112:user/release-keys" ||
       file_getprop("/system/build.prop", "ro.build.fingerprint") == "sprint_lge/cayman_sprint_us/cayman:4.0.4/ZVI.IMM76D/LS840ZVI.4820d7b4:user/release-keys");
but it looks like whatever it's trying to verify isn't flashed, in which case you'll just get more of the same type of error.