05-16-2015 04:39 PM
45 12
tools
  1. sammyz's Avatar
    You get this error or something similar:
    Code:
    assert failed: getprop("ro.product.device") == "thunderc" || getprop("ro.build.product") == "thunderc"
    You do this with 7-Zip/WinRAR

    Note: DO NOT EXTRACT ROM!
    In the ROM go to:

    /META-INF/com/google/android/updater-script

    1)Open updater-script with a script editor such as notepad/notepad++ (makes things 10x easier), or gedit if you use linux

    2)Delete the first line of code (all the way up to the first semicolon you see) and delete the first semi-colon as well

    Do not go past the first semiclon when deleteing and DO NOT forget to delete the first semicolon.

    Cheers!

    Now please stop posting this problem on everyone's ICS ROMs.....
    Someone make this a sticky please
    06-22-2012 12:51 PM
  2. ThatGuyLurkin's Avatar
    I don't understand. Why not just flash another recovery rather than waiting? xD


    Sent from my LG-VM670 using Tapatalk 2
    tychonose likes this.
    06-22-2012 01:06 PM
  3. sammyz's Avatar
    I don't understand. Why not just flash another recovery rather than waiting? xD


    Sent from my LG-VM670 using Tapatalk 2
    Waiting for what??? This is faster, takes less time, and you don't have to find a working recovery with these messed up assert scripts......BobZhome deletes them when he remembers to anyways...I delete them on all my ports....it's better for the dev to just delete them than to have 20 pages of assert fails...so I made this thread.
    06-22-2012 01:12 PM
  4. ThatGuyLurkin's Avatar
    I mean waiting for it to be compatible.

    But this helps me. I don't understand a thing about update scripts.

    Sent from my LG-VM670 using Tapatalk 2
    06-22-2012 01:57 PM
  5. sammyz's Avatar
    I mean waiting for it to be compatible.

    But this helps me. I don't understand a thing about update scripts.

    Sent from my LG-VM670 using Tapatalk 2
    These ROMs are all compatible......it's just a stupid line in the updater script that I think is completely unnecessary.....
    06-22-2012 02:05 PM
  6. andrewnelson23's Avatar
    What is an assert script?
    06-23-2012 09:09 PM
  7. sammyz's Avatar
    What is an assert script?
    All it does is check to make sure you are flashing the rom on the correct device...

    Sent from my Optimus M
    06-23-2012 09:47 PM
  8. drewwalton19216801's Avatar
    All it does is check to make sure you are flashing the rom on the correct device...

    Sent from my Optimus M
    That's certainly one of the things you can do with asserts but not the only thing it does.

    Assert evaluates a condition (in this case a command, getprop). If the condition returns true (or returns an expected value) the script carries on. If the condition returns false (or returns an unexpected value) it throws an error.

    For example, I can check to see if the file "/system/etc/dooderbutt" exists (and subsequently create it if it doesn't) like so:
    Code:
    assert(file_exists("/system/etc/dooderbutt") || create("/system/etc/dooderbutt"))
    If the above assert command is unable to create the file for some reason, the script should throw an error because it was an unexpected result.
    06-23-2012 10:34 PM
  9. gyanos422's Avatar
    any way that I do this from the phone? For some reason my phone won't show up as usb storage on my laptop. It doesn't even charge when plugged in.. Now my girls phone (we both have ov's) works fine and both are rooted, with custom roms installed. Mine charges fine when using a wall charger but I can't get usb store or debugging to come on when connecting it to a pc.. Anyway, can I edit his file with an app since I can't transfer it back and forth?
    06-24-2012 08:43 AM
  10. sammyz's Avatar
    any way that I do this from the phone? For some reason my phone won't show up as usb storage on my laptop. It doesn't even charge when plugged in.. Now my girls phone (we both have ov's) works fine and both are rooted, with custom roms installed. Mine charges fine when using a wall charger but I can't get usb store or debugging to come on when connecting it to a pc.. Anyway, can I edit his file with an app since I can't transfer it back and forth?
    This wouldn't effect USB problems.....

    Sent from VM670 on MetroPCS
    livewire195 likes this.
    06-24-2012 11:40 AM
  11. sammyz's Avatar
    That's certainly one of the things you can do with asserts but not the only thing it does.

    Assert evaluates a condition (in this case a command, getprop). If the condition returns true (or returns an expected value) the script carries on. If the condition returns false (or returns an unexpected value) it throws an error.

    For example, I can check to see if the file "/system/etc/dooderbutt" exists (and subsequently create it if it doesn't) like so:
    Code:
    assert(file_exists("/system/etc/dooderbutt") || create("/system/etc/dooderbutt"))
    If the above assert command is unable to create the file for some reason, the script should throw an error because it was an unexpected result.
    I only meant the first assert line, not all of them

    Sent from VM670 on MetroPCS
    06-24-2012 11:41 AM
  12. DailyRich's Avatar
    I extracted the file, made the edit, re-zipped it, and moved it to my SD card. Now I don't get the error, but all it does is go:

    Installing update...
    Installation aborted.

    Doesn't even think about it, just goes right to the error. This is with signature verification and script assertion disabled; either of those on produces their respective invalid errors.
    09-22-2012 09:12 PM
  13. koeylondon's Avatar
    Note: You should NOT unzip the entire package. Use 7Zip or Winrar to extract ONLY the file you need, edit it, and replace it. If you unzip the whole thing, it will corrupt.
    sammyz likes this.
    09-22-2012 11:27 PM
  14. sammyz's Avatar
    Note: You should NOT unzip the entire package. Use 7Zip or Winrar to extract ONLY the file you need, edit it, and replace it. If you unzip the whole thing, it will corrupt.
    Forgot to add that...OP updated.

    Sent from my Optimus S running VM670ZV5 on MetroPCS.
    09-23-2012 06:59 AM
  15. EarthnFire78's Avatar
    Should also add that try flashing in the recovery first before editing any file. CWM-Blue-Recovery does not need the file edited, as the build.prop was fixed over three months ago.
    09-25-2012 01:23 AM
  16. sammyz's Avatar
    Should also add that try flashing in the recovery first before editing any file. CWM-Blue-Recovery does not need the file edited, as the build.prop was fixed over three months ago.
    Same with CWM-Green
    I don't think people want to flash another recovery when the deal of this is just removing one line in a script

    I am not going to add that for the sake that it would endorse one's recovery over another when both can flash ICS fine.

    The main point of this thread was so people wouldn't have to flash another recovery, the other point was so that there wouldn't be over 200 posts of people complaining over a Status 7 assert failed error.

    Sent from my Optimus S running VM670ZV5 on MetroPCS.
    09-25-2012 06:29 AM
  17. Catfish81's Avatar
    This method worked for flashing Paranoid Android 4.1.2 Jelly Bean v1.8 ROM onto a Samsung Galaxy Tab 10.1 3G tablet, online this is known as the P7500 model, and the ROMs are usually named "p4". The assert failure message says it cant ID the device as a p4 device so it quits.

    I tried updating my CWM to the latest and this also failed. Only removing the line from the update script as described above worked.

    Thanks for the fix!
    11-26-2012 01:44 AM
  18. Tony Usi's Avatar
    Thank you so much, I flash camera 4.2 on my nexus s and it brick my phone, try to flash strawberry 4.1.2 but failed..i follow your direction of deleting script to the the last semi colon.....works fine....thank again...
    12-04-2012 01:58 PM
  19. Stvpagn's Avatar
    You get this error or something similar:
    Code:
    assert failed: getprop("ro.product.device") == "thunderc" || getprop("ro.build.product") == "thunderc"
    You do this with 7-Zip/WinRAR

    Note: DO NOT EXTRACT ROM!
    In the ROM go to:

    /META-INF/com/google/android/updater-script

    1)Open updater-script with a script editor such as notepad/notepad++ (makes things 10x easier), or gedit if you use linux

    2)Delete the first line of code (all the way up to the first semicolon you see) and delete the first semi-colon as well

    Do not go past the first semiclon when deleteing and DO NOT forget to delete the first semicolon.

    Cheers!

    Now please stop posting this problem on everyone's ICS ROMs.....
    Someone make this a sticky please
    Hi I'm trying to find the updater-script inside my "cm-10-20121215-NIGHTLY-i9300", there isn't one.
    I'd appreciate some assistance with this as I'm trying to get out of stock 4.1.1 since it keeps giving me a bootloop after applying an update.zip from my titanium back up of all my apps+data.
    12-16-2012 04:58 PM
  20. Cristian Barreto's Avatar
    IT Works!, thank you!, just delete the first line from "assert..." to the semicolon and delete it too "... ;"

    THANK YOU!
    01-03-2013 07:38 AM
  21. Cristian Barreto's Avatar
    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).
    01-03-2013 07:40 AM
  22. Unc0ntr0ld's Avatar
    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.
    01-14-2013 01:54 AM
  23. Damien Murtagh's Avatar
    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.
    01-19-2013 10:48 AM
  24. AndyOpie150's Avatar
    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
    01-19-2013 03:50 PM
  25. sammyz's Avatar
    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
    AndyOpie150 likes this.
    01-22-2013 08:44 PM
45 12
LINK TO POST COPIED TO CLIPBOARD