18
[FLASHABLE ZIP] [CM12] Enable integrated superuser

  1. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    As I did with CM11S, I am presenting you a zip file to enable the integrated superuser settings in Cyanogen OS 12.0 and 13.X. This is a more integrated alternativ to SuperSU, for those who like integrated things.

    Current release (13.1.2): 13.1.2-ZNH2KAS3P0 (zip revision: 1)
    http://jak-linux.org/cm/cm-unofficial-13.1.2-ZNH2KAS3P0-bacon-signed-superuser-r1.zip

    Last 13.0 release: 13.0-ZNH0EAS2JK (zip revision: 1)

    http://jak-linux.org/cm/cm-unofficial-13.0-ZNH0EAS2JK-bacon-signed-superuser-r1.zip

    Last 12.1 release: 12.1-YOG4PAS3JL from early Nov 2015

    http://jak-linux.org/cm/cm-unofficial-12.1-YOG4PAS3JL-bacon-signed-superuser.zip

    Last 12.0 release: 12.0-YNG1TAS2I3 (third 12.0 release from Jun 18)

    http://jak-linux.org/cm/cm-unofficial-12.0-YNG1TAS2I3-bacon-signed-superuser.zip

    Older releases & GPG signatures
    Older releases can be found at:

    http://jak-linux.org/cm/

    The page also contains GPG signatures for the zips, proving that I made them.

    Known Issues
    • (Theoretically) The backup stored by one of my light zip files for CM11S is not removed. This has no effect right now, as the backup/restore script in /data/local/userinit.d/ does not run anyway, due to a bug in CyanogenOS. This will be fixed in a future zip file for the next OS release.
    Source Code
    Most source code is available at:
    https://github.com/julian-klode/bacon-superuser
    The full zips include debuggable boot images build by Cyanogen, Inc. Their kernel sources can be found at
    https://github.com/CyanogenMod/android_kernel_oneplus_msm8974/
    History
    The CM11 thread can be found at:
    https://forums.oneplus.net/threads/flashable-zip-enable-integrated-superuser.75511/

    I split the thread here, because it gets too confusing otherwise, and nobody notices the CM12 support.
     
    Last edited: Aug 28, 2016

    #1
  2. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    Frequently asked questions

    How to use it?

    Flash the zip file with your favorite custom recovery (TWRP, for example) - not stock - on top of Cyanogen OS 12. Then, enable superuser access from the developer settings.

    Root access is now integrated into privacy guard. If you want to revoke root permissions, look there. By default, all apps have to ask for root access.

    How is this implemented?

    The zip file flashes a debuggable boot image from Cyanogen to the boot partition and installs a su binary to /system/xbin/.

    Will this wipe data?

    If you already have an unlocked bootloader, no data will be harmed. If you do not have an unlocked bootloader yet, unlocking it will wipe data.

    Does this prevent future OTA updates?

    I hope not, but I could not test it, as there is no other OTA available. But if this breaks OTAs from working, any other root method will too.

    Can I use stock recovery to flash this?

    No, stock recovery only flashes zip files signed by Cyanogen. As this is an unofficial project, it is only signed by the test key.
     
    Last edited: Apr 14, 2015

    #2
  3. aneesimran
    Honeycomb Apr 14, 2015

    aneesimran , Apr 14, 2015 :
    So will i have to flash this on top of cyanogen OS 12?
     

    #3
  4. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    Yep.
     

    #4
  5. xLucaHD
    Cupcake Apr 14, 2015


    #5
  6. Novacaine
    Froyo Apr 14, 2015


    #6
  7. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    No. Unless your bootloader is locked and you unlock it for flashing this.
     

    #7
    Novacaine likes this.
  8. Novacaine
    Froyo Apr 14, 2015


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

    jak , Apr 14, 2015 :
    I hope so. It's less harmless than any other super user method. If it works with other superuser zips, it will work with this one too.
     

    #9
  10. VictorOPO
    Cupcake Apr 14, 2015


    #10
  11. Novacaine
    Froyo Apr 14, 2015

    Novacaine , Apr 14, 2015 :
    Install failed

    Finding update package...
    Opening update package...
    Veryfying update package...
    E: footer is wrong
    E: Signature verification failed
    Installation aborted

    What does that mean?
     

    #11
  12. Rushvanth
    Gingerbread Apr 14, 2015

    Rushvanth , Apr 14, 2015 :
    I understand that this is for integrating superuser into privacy guard like the cm12 nighties. If I just want the app I could just flash SuperSU.zip right?
     

    #12
  13. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    Do you use a custom recovery? I only tested TWRP.
     

    #13
  14. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    Yes, you could use SuperSU instead. But this method is more integrated, so I like it more :)
     

    #14
    Rushvanth likes this.
  15. jak
    Ice Cream Sandwich Apr 14, 2015

    jak , Apr 14, 2015 :
    TWRP (or any other custom recovery, if there are any others).
     

    #15
  16. Novacaine
    Froyo Apr 14, 2015

    Novacaine , Apr 14, 2015 :
    No I am using the cyanogen recovery.. I previously had twrp but after flashing cm12 it was gone and I can't get it back on my device because if I try to flash twrp it doesn't work and I don't know why..

    I unlocked the bootloader etc. with the xda tool a almost a year ago and now I have a new pc and if I try flashing twrp again it says "Waiting for device"
     

    #16
  17. Rushvanth
    Gingerbread Apr 14, 2015

    Rushvanth , Apr 14, 2015 :
    Yeah I too like it more:p will flash this once I install cyanogen os12:D
     

    #17
  18. Rushvanth
    Gingerbread Apr 14, 2015

    Rushvanth , Apr 14, 2015 :
    Drivers are not configured properly. Try installing proper drivers
     

    #18
  19. Novacaine
    Froyo Apr 14, 2015


    #19
  20. aneesimran
    Honeycomb Apr 14, 2015

    aneesimran , Apr 14, 2015 :
    Can confirm that it works exactly like it did on cm12 Nightly and I used TWRP to flash it on
     

    #20
    jak likes this.