Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Page 1 of 2 12 LastLast
Results 1 to 25 of 43
Like Tree3Likes
  1. Thread Author  Thread Author    #1  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default [SOLVED] assert failed

    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
  2. #2  

    Default

    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.
  3. Thread Author  Thread Author    #3  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by ThatGuyLurkin View Post
    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.
  4. #4  

    Default

    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
  5. Thread Author  Thread Author    #5  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by ThatGuyLurkin View Post
    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.....
  6. #6  
    andrewnelson23's Avatar

    Posts
    795 Posts
    ROM
    Quattrimus

    Default Re: [SOLVED] assert failed

    What is an assert script?
  7. Thread Author  Thread Author    #7  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by andrewnelson23 View Post
    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
  8. #8  
    drewwalton19216801's Avatar

    Posts
    2,538 Posts
    Global Posts
    2,539 Global Posts
    ROM
    HydroROM

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by sammyz12 View Post
    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.
  9. #9  
    gyanos422's Avatar

    Posts
    11 Posts
    ROM
    aospCMod-vm670-20110601

    Default Re: [SOLVED] assert failed

    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?
  10. Thread Author  Thread Author    #10  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by gyanos422 View Post
    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
    Thanked by:
    livewire195 likes this.
  11. Thread Author  Thread Author    #11  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default

    Quote Originally Posted by drewwalton19216801 View Post
    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
  12. #12  

    Default Re: [SOLVED] assert failed

    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.
  13. #13  
    koeylondon's Avatar

    Posts
    226 Posts
    ROM
    DanteROM(w/Hydro)/CAI CM9

    Default Re: [SOLVED] assert failed

    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.
  14. Thread Author  Thread Author    #14  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by koeylondon View Post
    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.
  15. #15  
    EarthnFire78's Avatar
    YAY!!! ME :)

    Posts
    964 Posts
    ROM
    Custom ROM & Kernel

    Default Re: [SOLVED] assert failed

    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.
  16. Thread Author  Thread Author    #16  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by EarthnFire78 View Post
    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.
  17. #17  

    Default Re: [SOLVED] assert failed

    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!
  18. #18  

    Default Re: [SOLVED] assert failed

    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...
  19. #19  

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by sammyz View Post
    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.
  20. #20  

    Default Re: [SOLVED] assert failed

    IT Works!, thank you!, just delete the first line from "assert..." to the semicolon and delete it too "... ;"

    THANK YOU!
  21. #21  

    Default Re: [SOLVED] assert failed

    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).
  22. #22  

    Default Re: [SOLVED] assert failed

    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.
  23. #23  

    Default Re: [SOLVED] assert failed

    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.
  24. #24  
    AndyOpie150's Avatar

    Posts
    1,256 Posts
    ROM
    Bean_Whiz-CM10v2.2.2CX

    Default Re: [SOLVED] assert failed

    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
  25. Thread Author  Thread Author    #25  
    sammyz's Avatar

    Posts
    825 Posts
    ROM
    OV:quattrimus OM:BACKside

    Default Re: [SOLVED] assert failed

    Quote Originally Posted by AndyOpie150 View Post
    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
    Thanked by:
Page 1 of 2 12 LastLast

Posting Permissions