[Q][MODEM]CWM update fails - Galaxy S 4 Mini Q&A, Help & Troubleshooting

Hi!
I've created CWM installable ZIP which updates only modem.
Updater script is following:
Code:
assert(getprop("ro.product.device") == "serranolte" || getprop("ro.build.product") == "serranolte" ||
getprop("ro.product.device") == "serranoltexx" || getprop("ro.build.product") == "serranoltexx" ||
getprop("ro.product.device") == "i9195" || getprop("ro.build.product") == "i9195" ||
getprop("ro.product.device") == "GT-I9195" || getprop("ro.build.product") == "GT-I9195");
ui_print("------------------------------------------------------");
show_progress(0.100000, 0);
ui_print("GT-I9195XXUBMJ7 modem update - by LackoGyerek");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
show_progress(0.100000, 50);
write_raw_image("/tmp/modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem"),
delete("/tmp/modem.bin"));
show_progress(0.100000, 100);
ui_print("Done!");
ui_print("------------------------------------------------------");
But unfortunately the script fails at the assert(package_extract_file()) line...
Download the whole update package here.
Can anybody check it and find out, what is wrong?
Note: Modem binary is taken form latest GT-I9195XXUBMJ7 official firmware. I only renamed the NON-HLOS.bin to modem.bin.

ladislav.heller said:
Hi!
I've created CWM installable ZIP which updates only modem.
Updater script is following:
Code:
assert(getprop("ro.product.device") == "serranolte" || getprop("ro.build.product") == "serranolte" ||
getprop("ro.product.device") == "serranoltexx" || getprop("ro.build.product") == "serranoltexx" ||
getprop("ro.product.device") == "i9195" || getprop("ro.build.product") == "i9195" ||
getprop("ro.product.device") == "GT-I9195" || getprop("ro.build.product") == "GT-I9195");
ui_print("------------------------------------------------------");
show_progress(0.100000, 0);
ui_print("GT-I9195XXUBMJ7 modem update - by LackoGyerek");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
show_progress(0.100000, 50);
write_raw_image("/tmp/modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem"),
delete("/tmp/modem.bin"));
show_progress(0.100000, 100);
ui_print("Done!");
ui_print("------------------------------------------------------");
But unfortunately the script fails at the assert(package_extract_file()) line...
Download the whole update package here.
Can anybody check it and find out, what is wrong?
Note: Modem binary is taken form latest GT-I9195XXUBMJ7 official firmware. I only renamed the NON-HLOS.bin to modem.bin.
Click to expand...
Click to collapse
Try attached updater binary

citymen34 said:
Try attached updater binary
Click to expand...
Click to collapse
The same error. Message is following:
Code:
assert failed: write_raw_image("/tmp/modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem")
E:Error in /external_sd/Install/Temp/CWM_I9195XXUAMJ1_modem.zip
(Status 7)
Installation aborted.

ladislav.heller said:
The same error. Message is following:
Code:
assert failed: write_raw_image("/tmp/modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem")
E:Error in /external_sd/Install/Temp/CWM_I9195XXUAMJ1_modem.zip
(Status 7)
Installation aborted.
Click to expand...
Click to collapse
try
package_extract_file("modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
or
package_extract_file("modem.bin", "/dev/block/mmcblk0p1");

If You see on Log by MobileOdin attached the partition from modem is like this:
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat
See also the ScreenShot by DiskInfo.
If You replace /modem by /firmware may be... work. Like the /efs, like the /system... (and is a vfat file, not a ext4).

Now the modem /firmware is a Filesystem
Filesystem Size Used Free Blksize
/system 1.46G 1.37G 95.1M 4096
/data 5.42G 455M 4.97G 4096
/cache 196M 4.20M 192M 4096
/persist 7.88M 4.04M 3.85M 4096
/efs 13.4M 4.16M 9.26M 4096
/firmware 64.0M 47.3M 16.7M 16384
/mnt/shell/container 5.40G 455M 4.95G 4096
May by like /system:
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
For /modem /firmware:
run_program("/sbin/busybox", "mount", "/firmware");
package_extract_dir("NON_HLOS", "/firmware"); --> _dir because we have /firmware/image/...many files.
Or something same this.

Related

[Q] My arc has changed to LT18a? Can't apply new update :(

Hi guys...
I was trying to install a new update (the cm7.2 fxp 116) but it failed and now my phone won't boot...
i've tried to install the fxp113 image and then apply that update, but I keep getting this message:
assert failed: getprop("ro.product.device") == "LT18i" || getprop("ro.build.product") == "LT18i" ||...
It continues to write a lot of these, all with == "LT18i" and "LT18a", but then a couple of lines down, it starts to write == "LT15i" instead...
Finally, it gives me an error saying "E:Error in /sdcard/A-IMAGES/cm72fxp113/update-cm-7.2.0-RC1-anzu-KANG-signed_fxp113.zip"
(status 7)
installation aborted
Please help me...
hjalte81 said:
Hi guys...
I was trying to install a new update (the cm7.2 fxp 116) but it failed and now my phone won't boot...
i've tried to install the fxp113 image and then apply that update, but I keep getting this message:
assert failed: getprop("ro.product.device") == "LT18i" || getprop("ro.build.product") == "LT18i" ||...
It continues to write a lot of these, all with == "LT18i" and "LT18a", but then a couple of lines down, it starts to write == "LT15i" instead...
Finally, it gives me an error saying "E:Error in /sdcard/A-IMAGES/cm72fxp113/update-cm-7.2.0-RC1-anzu-KANG-signed_fxp113.zip"
(status 7)
installation aborted
Please help me...
Click to expand...
Click to collapse
open the cm7.zip file, and go META-INF/com/Google/android/
and open update-script file with notepad++
delete the line
assert(getprop("ro.product.device") == "LT18i" || getprop("ro.build.product") == "LT18i" ||
getprop("ro.product.device") == "LT18a" || getprop("ro.build.product") == "LT18a" ||
getprop("ro.product.device") == "LT15i" || getprop("ro.build.product") == "LT15i" ||
getprop("ro.product.device") == "LT15a" || getprop("ro.build.product") == "LT15a" ||
getprop("ro.product.device") == "anzu" || getprop("ro.build.product") == "anzu");
save and replace it
install with cwm
Sent from my Xperia Arc
Hi Kes,
The problem was that the file I had downloaded was corrupted :/
I restored from an older backup, downloaded the file again (and again...) and got a working file.
Thanks anyway

CyanogendMOD 10 FXP Neo V haida

Installing: /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
Finding update package...
I:Update location: /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
Opening update package...
Installing update...
script aborted: assert failed: getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" ||
getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" ||
getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida"
assert failed: getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" || getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" || getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida"
E:Error in /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
(Status 7)
Installation aborted.
What steps will reproduce the problem?
bt4777 said:
Installing: /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
Finding update package...
I:Update location: /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
Opening update package...
Installing update...
script aborted: assert failed: getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" ||
getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" ||
getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida"
assert failed: getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" || getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" || getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida"
E:Error in /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
(Status 7)
Installation aborted.
What steps will reproduce the problem?
Click to expand...
Click to collapse
dude go to META-INF/com/google/android and extract updater-script of the zip file (u downloaded i.e ROM )and open extracted updater-script with Notepad++(for download notepad++ google it) there after delete first three line and save.there after zip it to the rom(META-INF/com/google/android) from where u extracted
Press thank if i helped u
cyanidekiller said:
dude go to META-INF/com/google/android and extract updater-script of the zip file (u downloaded i.e ROM )and open extracted updater-script with Notepad++(for download notepad++ google it) there after delete first three line and save.there after zip it to the rom(META-INF/com/google/android) from where u extracted
Press thank if i helped u
Click to expand...
Click to collapse
which are the first three lines? begins and ends where
bt4777 said:
which are the first three lines? begins and ends where
Click to expand...
Click to collapse
assert(getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" ||
getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" ||
getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida");
delete these 3 lines
Press thanks if i helped u
cyanidekiller said:
assert(getprop("ro.product.device") == "MT11i" || getprop("ro.build.product") == "MT11i" ||
getprop("ro.product.device") == "MT11a" || getprop("ro.build.product") == "MT11a" ||
getprop("ro.product.device") == "haida" || getprop("ro.build.product") == "haida");
delete these 3 lines
Press thanks if i helped u
Click to expand...
Click to collapse
trying this now. will get back with the results in 5 mins
edit: didnt work:
symlink: some symlinks failed
E:Error in /sdcard/FXP133-cm-10-20120813-UNOFFICIAL-haida.zip
(Status 7)
Installation aborted.
Did you try with CWM 6?
I had this problem with CWM 5 so i used the boot.img in the RAR of the cyanogenmod i.e. extracted it to android tools folder
then used the command
fastboot -i 0xfce flash boot boot.img
fastboot -i 0xfce reboot
So it booted on CWM 6 and installation was done without any issues.
If you want to reproduce the problem, try installing CM10 with CWM 5.
What version of CWM to use so i can install FXP137?
5.0.2.7 , 5.5.0.4 or 6.0.1.0 and from where to download it and install it for Neo V (MT11i - haida)? I understand that 5.0.2.7 is for GB, 5.5.0.4 works with ICS and now i see that 6 is recommended for JB... Please advise me, it will be helpfully if you give me a link, i have search on a lot of threads and read all this NoobGuide but the version presented is 5.0.2.7 also i have rooted and unlocked my bootloader using testpoint method. Thanks in advance.

[Q] Assert Failed - What does it mean literally?

Code:
-- Installing: /sdcard/cmupdater/cm-10.1.3-d2att.zip
Finding update package...
I:Update location: /sdcard/cmupdater/cm-10.1.3-d2att.zip
I:using /data/media for /sdcard/cmupdater/cm-10.1.3-d2att.zip.
Opening update package...
Installing update...
Warning: No file_contexts
script aborted: assert failed: getprop("ro.bootloader") == "I747UCDLK3" ||
getprop("ro.bootloader") == "I747UCDMG2" ||
getprop("ro.bootloader") == "I747MVLDLK4" ||
getprop("ro.bootloader") == "I747MVLDMF1" ||
getprop("ro.bootloader") == "I747MUMBLK3" ||
getprop("ro.bootloader") == "I747MUMBLL1"
assert failed: getprop("ro.bootloader") == "I747UCDLK3" || getprop("ro.bootloader") == "I747UCDMG2" || getprop("ro.bootloader") == "I747MVLDLK4" || getprop("ro.bootloader") == "I747MVLDMF1" || getprop("ro.bootloader") == "I747MUMBLK3" || getprop("ro.bootloader") == "I747MUMBLL1"
E:Error in /sdcard/cmupdater/cm-10.1.3-d2att.zip
(Status 7)
Installation aborted.
for my understanding, does an "assert failed" error mean that the script was looking for one of any of the property values (ie I747UCDMG2), didn't find it, and then failed?
Angry Black Man said:
Code:
-- Installing: /sdcard/cmupdater/cm-10.1.3-d2att.zip
Finding update package...
I:Update location: /sdcard/cmupdater/cm-10.1.3-d2att.zip
I:using /data/media for /sdcard/cmupdater/cm-10.1.3-d2att.zip.
Opening update package...
Installing update...
Warning: No file_contexts
script aborted: assert failed: getprop("ro.bootloader") == "I747UCDLK3" ||
getprop("ro.bootloader") == "I747UCDMG2" ||
getprop("ro.bootloader") == "I747MVLDLK4" ||
getprop("ro.bootloader") == "I747MVLDMF1" ||
getprop("ro.bootloader") == "I747MUMBLK3" ||
getprop("ro.bootloader") == "I747MUMBLL1"
assert failed: getprop("ro.bootloader") == "I747UCDLK3" || getprop("ro.bootloader") == "I747UCDMG2" || getprop("ro.bootloader") == "I747MVLDLK4" || getprop("ro.bootloader") == "I747MVLDMF1" || getprop("ro.bootloader") == "I747MUMBLK3" || getprop("ro.bootloader") == "I747MUMBLL1"
E:Error in /sdcard/cmupdater/cm-10.1.3-d2att.zip
(Status 7)
Installation aborted.
for my understanding, does an "assert failed" error mean that the script was looking for one of any of the property values (ie I747UCDMG2), didn't find it, and then failed?
Click to expand...
Click to collapse
Yes it was looking for "I747UCDMG2" and down but failed to find the proper bootloader on your phone. The status 7 error can easily be fixed. just google it.
If you are installing via CWM make sure it's up to date (easy way is to install Rom Manager from the playstore) also why not install the latest version of CM?
get.cm/?device=d2att
Make sure you do a factory wipe/reset and clear cache/daelik
james2432 said:
why not install the latest version of CM?
Click to expand...
Click to collapse
because i'm following this wiki exactly, and it's not working exactly.
removing the asserts hasn't fixed the problem. first i got status 6, and when i did it a second time, repackaging the files with 7zip into zip format, i got no error at all, the installation just failed and aborted.
Angry Black Man said:
because i'm following this wiki exactly, and it's not working exactly.
removing the asserts hasn't fixed the problem. first i got status 6, and when i did it a second time, repackaging the files with 7zip into zip format, i got no error at all, the installation just failed and aborted.
Click to expand...
Click to collapse
Also here's how to update the bootloader via odin:
http://forum.xda-developers.com/showthread.php?t=2321310

[Q] error when trying to flash CM10.2 on n5100 (SOLVED)

I've tried flashing with CWM and TWRP and I systematically get this error:
Installing '/external_sdcard/cm-10.2-20131119-NIGHTLY-n5100.zip'...
Checking for MD5 file...
I:Cannot find file /external_sdcard/cm-10.2-20131119-NIGHTLY-n5100.zip.md5
Skipping MD5 check: no MD5 file found.
Warning: No file_contexts
script aborted: assert failed: getprop("ro.product.device") == "kona3gxx" || getprop("ro.build.product") == "kona3gxx" ||
getprop("ro.product.device") == "n5100" || getprop("ro.build.product") == "n5100" ||
getprop("ro.product.device") == "GT-N5100" || getprop("ro.build.product") == "GT-N5100" ||
getprop("ro.product.device") == "kona3g" || getprop("ro.build.product") == "kona3g"
assert failed: getprop("ro.product.device") == "kona3gxx" || getprop("ro.build.product") == "kona3gxx" || getprop("ro.product.device") == "n5100" || getprop("ro.build.product") == "n5100" || getprop("ro.product.device") == "GT-N5100" || getprop("ro.build.product") == "GT-N5100" || getprop("ro.product.device") == "kona3g" || getprop("ro.build.product") == "kona3g"
E:Error executing updater binary in zip '/external_sdcard/cm-10.2-20131119-NIGHTLY-n5100.zip'
Error flashing zip '/external_sdcard/cm-10.2-20131119-NIGHTLY-n5100.zip'
Click to expand...
Click to collapse
Any help?
Solved.
I followed these steps: http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/182438-solved-assert-failed.html
I basically deleted the assert lines from the rom and reflashed. Worked.

Error when installing zip in recovery

Guys any idea what this error is?
Start at : Sat Jan 4 13:36:05 2014
-- Checking model ID
script aborted: assert failed: getprop("ro.product.device") == "endeavoru" || getprop("ro.build.product") == "endeavoru" || getprop("ro.product.board") == "endeavoru"
assert failed: getprop("ro.product.device") == "endeavoru" || getprop("ro.build.product") == "endeavoru" || getprop("ro.product.board") == "endeavoru"
Installer Error (Status 7)
End at : Sat Jan 4 13:36:05 2014
Any time I try to flash anything through recovery I get that error and abort. I'm using Philz Recovery 6.17.9
Sent from my HTC One X using Tapatalk
Disregard this, sorry...It's due to the new recovery....reverting back to an older version fixed everything

Categories

Resources