18
[FIX] Flash Fail for CM12 - A0001 conflict

  1. @BH!
    Ice Cream Sandwich Apr 14, 2015

    @BH! , Apr 14, 2015 :
    Hi All,

    Its obvious that every1's so excited about the CM12s rollout.:rolleyes: You got every reason to be.:cool:

    Lets get to the point here, I created this thread just to let you all (people who are facing this issue in recovery) know how to make it go away.;)

    Issue: While you try t install the CM12s package (zip) in recovery it fails statig the package is meant for A0001.

    Reason: The condition in the updater script.(Similar to conflict in MIUI ROM - if you had tried it you may very well know.)

    FIX:

    1.Open the zip using WinRAR or 7ZIP. and decompress the package to local.
    2.Open the package and navigate to \META-INF\com\google\android
    3.Open updater-script file in a text editor.
    4.Add the below lines to the file (at the beginning) and save it. (SEE EDIT-1)

    assert(getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "bacon" || abort("This package is for \"A0001\" devices; this is a \"" + getprop("ro.product.device") + "\"."););

    5.Compress the folder back to zip.
    6.Flash and enjoy.:cool::cool:

    Lemme know if you are facing any issues. PEACE!!:):)

    DISCLAIMER: Always take a NAND backup and am not responsible for your device getting bricked.:p:p


    EDIT-1: I just downloaded the CM12s zip and could see the code

    assert(getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "A0001" || abort("This package is for device: A0001; this device is " + getprop("ro.product.device") + "."););

    So all u gotto do is replace this line with the above one.

    EDIT - 2: Flash latest TWRP and flash the zip. (Better way to Bypass all the above stuff):D
     
    Last edited: Apr 14, 2015

    #1
  2. SHAKHILONIEL
    Gingerbread Apr 14, 2015


    #2
  3. @BH!
    Ice Cream Sandwich Apr 14, 2015

    @BH! , Apr 14, 2015 :
    Oh ye of li'l faith...:p:p
     

    #3
  4. SHAKHILONIEL
    Gingerbread Apr 14, 2015


    #4
  5. jatish123
    Ice Cream Sandwich Apr 14, 2015

    jatish123 , Apr 14, 2015 :
    Can you give me the link for the zip
     

    #5
  6. @BH!
    Ice Cream Sandwich Apr 14, 2015

    @BH! , Apr 14, 2015 :
    add it to the top of all lines.
     

    #6
  7. MrTeejay619
    Gingerbread Apr 14, 2015


    #7
  8. imcr7
    Donut Apr 14, 2015

    imcr7 , Apr 14, 2015 :
    Just flash the stock recovery, then flash update, then flash twrp again. I solved this way
     

    #8
  9. Astraion
    Ice Cream Sandwich Apr 14, 2015


    #9
    kolyan2k likes this.
  10. SHAKHILONIEL
    Gingerbread Apr 14, 2015


    #10
  11. @BH!
    Ice Cream Sandwich Apr 14, 2015

    @BH! , Apr 14, 2015 :
    See the edited post.
     

    #11
  12. SHAKHILONIEL
    Gingerbread Apr 14, 2015

    SHAKHILONIEL , Apr 14, 2015 :
    What do I need to flash it
     

    #12
  13. SHAKHILONIEL
    Gingerbread Apr 14, 2015


    #13
  14. warrior82
    Honeycomb Apr 14, 2015

    warrior82 , Apr 14, 2015 :
    A programmer mind :cool:
     

    #14
    @BH! likes this.
  15. awadi888
    Gingerbread Apr 14, 2015

    awadi888 , Apr 14, 2015 :
    all i did was flash the newest version of TWRP and it worked for me. no need to modify the zip.
     

    #15
    SHAKHILONIEL likes this.
  16. SHAKHILONIEL
    Gingerbread Apr 14, 2015


    #16
  17. patstar5
    Jelly Bean Apr 14, 2015


    #17
    Madement likes this.
  18. kk22
    Gingerbread Apr 14, 2015

    kk22 , Apr 14, 2015 :
    Did you do adb sideload or installed directly from within TWRP?
     

    #18
  19. awadi888
    Gingerbread Apr 14, 2015

    awadi888 , Apr 14, 2015 :
    I installed directly within twrp
     

    #19
    kk22 likes this.
  20. kolyan2k
    Gingerbread Apr 14, 2015

    kolyan2k , Apr 14, 2015 :
    thanks. this does the trick
     

    #20
    Astraion likes this.