1. Are you ready for the Galaxy S20? Here is everything we know so far!

Rooting Android 5.0 / L(ollipop)...

Discussion in 'Android Lounge' started by scary alien, Oct 20, 2014.

  1. scary alien

    scary alien not really so scary
    VIP Member Thread Starter

    Don't know how many folks are following the imminent release of Android 5.0 (L(ollipop)), but for those folks getting a new Nexus 6 or Nexus 9 or have an older device that will be receiving Android 5.0 (Lollipop) OTA soon, getting root is going to be "interesting".

    If you've been following Chainfire on Google+ or XDA, you might be aware of the research and testing he's been doing getting root (su / SuperSU) ready and working on Android 5.0.

    Well, Android 5.0 brings us more things set in Security-Enhanced Linux enforcing mode (vs. the previous permissive mode introduced in Android 4.3).

    Anyway, what he's found is that SELinux as configured in the Android 5.0 preview images (the latest being LPX13D) makes rooting a device very difficult. To root a device running Android 5.0, you'll need to:

    - flash a new kernel (boot.img) which has the init.rc file (contained in the ramdisk) changed from:

    to:

    (i.e., the install_recovery.sh script to again (still) run in the init context vs. the new install_recovery context by commenting-out the above line in blue (that's what the "#" does)).

    - flashing (via a custom recovery) the latest version of the UPDATE-SuperSU-v#.##.zip package (currently #.## = 2.14) to install the root components (su, SuperSU, etc.).

    Needing to flash an updated kernel (boot.img) to update the init.rc (in the ramdisk) is obviously going to be an issue for devices with a locked bootloader :(.

    So, as the newest Android devices with Android 5.0 / L(ollipop) are delivered and the OTA's start being sent-out, it's going to be a very interesting and challenging time for many.

    ~ ~ ~

    References:


    ~ ~ ~

    Side note: I've spent time on and off over the last several weeks updating one of my root apps to work properly on Android L (version LPV79) the name of the first preview version of Lollipop). I got things working well a few weeks back and revisited it again tonight after flashing the most recent version (LPX13D) on my Nexus 5. I also read and re-read Chainfire's recent Google+ posts (see above) and realized I would indeed have to flash the new boot.img (with it's devilishly simple one-byte change) for things to work.

    Kudos and many, many thanks again to Chainfire for all of the research, testing, solutions, and information he's made available regarding this.
     


    Brian706, badblue1, alfick3 and 5 others like this.

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Rooting Android ollipop
  1. Yesi Trotamundos
    Replies:
    6
    Views:
    299
  2. kumaranil13k
    Replies:
    4
    Views:
    473
  3. kumaranil13k
    Replies:
    5
    Views:
    639
  4. David Chang
    Replies:
    2
    Views:
    440
  5. lionheart8329
    Replies:
    2
    Views:
    582
  6. Roy Oxlade
    Replies:
    11
    Views:
    1,173
  7. Ajhalls
    Replies:
    0
    Views:
    1,500
  8. glob_ial
    Replies:
    3
    Views:
    756
  9. Daniel Warren
    Replies:
    1
    Views:
    1,374
  10. monkeyman15
    Replies:
    10
    Views:
    1,502

Share This Page

Loading...