SuperSU v2.01, Android L Preview
Posted on 2014-06-30, 67 comments, 564 +1's, imported from Google+/Chainfire

NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.

I am back from I/O, where many new people have been introduced to me, all of whom no doubt now have me on their douchebags-to-avoid-in-the-future list. I enjoyed myself either way :)

I have the worst case of jetlag I've ever suffered from (perhaps I am getting old ?) so I have not done nearly as much work as I had hoped today, and I hope what I did do doesn't break, and this post is not as incoherent as I expect it to be :)

SuperSU was updated to v2.01, and may already be rolling out to some via the Play Store. The flashable update ZIP is available from this permalink as always: http://download.chainfire.eu/supersu . This version does not require a binary update for those running v2.00.

All CF-Auto-Roots have been updated as well to install this version (previously v1.94, if I'm not mistaken), so the Nexus 5 and 7 CFARs should root your L just fine.

I have only played with SuperSU on the L preview on my Nexus 7 for an hour or two, just to make sure the base functionality works. No doubt some cases will be found where it still breaks. That being said, I don't plan on spending too much time on compatibility with the L preview, as I'm sure some security related stuff will change before 'retail' release.

As it is, not all the things I have previously written or talked about have come to pass yet on the L preview (though I expect most of them to be present in the full release). Right now the two most obvious changes are:

Curiously, the u:r:recovery:s0 context is present in the L preview, which (as I recall) was only added to SELinux a very short time before they killed writing to /system completely from AOSP in normally booted Android. I do expect the latter to be present in the full L release, which will then require us to patch all kernels' SELinux policies, simply disable SELinux, or require all apps to modify /system to do so via custom recoveries (yikes!)

In the L preview though, remounting /system read-write and actually writing to it (just remounting it will probably stay available) still works.

If you have issues with SuperSU itself, be sure to visit the thread on XDA: http://forum.xda-developers.com/showthread.php?t=1538053


SuperSU Download

+1564
Mick Lee commented on 2014-06-30 at 23:20:

Your the man mate

Julio Lagara commented on 2014-06-30 at 23:22:

Glad you had fun. Great things are coming for Android enthusiasts.

Jeremy Meiss commented on 2014-06-30 at 23:22:

As always it was a great time hanging out with you. Until next time.....

Jim DeArras commented on 2014-06-30 at 23:34:

I still get "no su binary installed" :(

Jim DeArras commented on 2014-06-30 at 23:36:

Android "L", I forgot to mention.

Evan Wickes commented on 2014-06-30 at 23:37:

Way to upset the natural order.. Good job!!

Chainfire commented on 2014-06-30 at 23:39:

+Jim DeArras which method did you use?

Douglas Boehme commented on 2014-06-30 at 23:40:

Also, +Jim DeArras did you flash the ZIP from a custom recovery?  If so, is the recovery up to date?

Jim DeArras commented on 2014-06-30 at 23:41:

installed 'l' with the adb tools and flash-all.bat.  then flashed TWRP.  Used TWRP to flash your zip.

Jim DeArras commented on 2014-06-30 at 23:44:

twrp 2.6.0.0

Jim DeArras commented on 2014-06-30 at 23:47:

that twrp looks a little stale. downloading 2.7.1.1

robert lemons jr commented on 2014-06-30 at 23:51:
Jim DeArras commented on 2014-06-30 at 23:55:

That was for Nexus 5.  I cannot locate any later Nexus 7 2013 twrp images.  :(

Jim DeArras commented on 2014-07-01 at 00:04:

found it.  that was the problem, thanks!

zi can commented on 2014-07-01 at 00:09:

can‘t root fqrouter2 (ROOT not working)

Emmanuel Elizalde commented on 2014-07-01 at 00:13:

Greates!!

John Hallanger commented on 2014-07-01 at 01:03:

Thanks for your great work and for your detailed posts.

Nikolay Elenkov commented on 2014-07-01 at 01:06:

Have you come across this? Happens with SuperSU 2.0, but not always. Intially it works, then breaks at some point. Either the SELinux policy is updated dynamically at some point, or "upgraded" when you enable managed profiles and/or disk encryption. Looks like access via abstract sockets is forbidden.

I/auditd  ( 6064): type=1400 audit(0.0:87): avc:  denied  { connectto } for  comm="su" path=0065752E636861696E666972652E73757065727375 scontext=u:r:shell:s0 tcontext=u:r:untrusted_app:s0 tclass=unix_stream_socket

Haven't tried w/ 2.01 yet, because no recovery can currently handle the new disk encryption format. 

Nikolay Elenkov commented on 2014-07-01 at 02:19:

It definitely breaks after encrypting, with 2.01 as well. Also this: 

I/auditd  ( 4676): type=1400 audit(0.0:92): avc:  denied  { sys_ptrace } for  comm="daemonsu" capability=19  scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability

Nikolay Elenkov commented on 2014-07-01 at 02:20:

Very crude fix: add 'setenforce 0' to init.rc. (Because androidboot.selinux=permissive doesn't work anymore on production builds)

gilbert soto commented on 2014-07-01 at 02:43:

I rooted my phone and I keep losing it why, I have T-Mobile s4, running on kitkat

Nikolay Elenkov commented on 2014-07-01 at 03:32:

Scratch that, androidboot.selinux=permissive still works, abootimg was somehow messing the kernel cmdline.

James Mason commented on 2014-07-01 at 05:54:

AOSP to root users: "Go to L!" ?

Göktuğ Vatandaş commented on 2014-07-01 at 07:56:

You are awesome man

Roberto Radaelli commented on 2014-07-01 at 09:15:

Marry me ! Oooops ! Hope my wife doesn't read this ;-]

RAYQ CATER commented on 2014-07-01 at 11:42:

AWESOME

Gonçalo Vaz commented on 2014-07-01 at 12:05:

You are a god. Thanks a lot.

Sjoerd Wegman commented on 2014-07-01 at 12:45:

Je bent een baas man! Top werk! Mijn inziens ben je een van de belangrijkste mensen van de Android community!

Chainfire commented on 2014-07-01 at 12:52:

+Nikolay Elenkov I think that audit happens regardless of encryption. Not sure what the actual problem is, but I doubt it's just that quoted audit. Abstract socket access fails in various circumstances since the recent SELinux changes, and SuperSU employs other methods of connecting to work around this when needed.

Nikolay Elenkov commented on 2014-07-01 at 12:57:

Evertime I got this su blocked and never returned (called from shell).

Derek Ross commented on 2014-07-01 at 13:32:

Confirmed +Chainfire. You are on my douchebags-to-avoid-in-the-future list. ;) Good times man. Glad we got to party together, can't wait until we can do it again! Thanks for the chats about the future of root.

Shachar Lerer commented on 2014-07-01 at 13:57:

+Chainfire, would there be an update to the CF-Auto-Root for the N4 for 4.4.4?

Steve Albright commented on 2014-07-01 at 13:58:

I removed +Chainfire from douchebags-to-avoid-in-the-future list to put +Derek Ross back on.

It was nice to finally meet you in person Jorrit!

Joël Bourquard commented on 2014-07-01 at 14:46:

For you guys who are having intermittent/strange root problems, try asking SuperSU 2.0.1 to "forget" the app and then let it re-authenticate. For me it resolves this kind of issue!

Joël Bourquard commented on 2014-07-01 at 14:48:

+James Mason  well put, and damn right imho!

Chainfire commented on 2014-07-01 at 15:15:

Just an FYI, I know there are still some issues. ART and AM and some other Android internal crashes. Figure them out eventually... Or they may just be resolved in the 'retail' release of L.

FR 1975 commented on 2014-07-01 at 15:51:

Thank you so freaking much +Chainfire just love Android L !!

Ramon Gonzalez commented on 2014-07-01 at 16:50:

Take some rest dude, we appreciate your job..

kodintent commented on 2014-07-02 at 10:28:

jetlag secret. dont eat until the first morning at your destination. fasting in this way helps reset your body clock.

Nathan Schmidt commented on 2014-07-03 at 13:32:

Hey +Chainfire,  will your method of rooting work on the #OppoFind7?

Jan Horwatt-Baniewicz commented on 2014-07-03 at 18:55:

+Nathan Schmidt Yes it works on oppo find 7 (x9076) tested on coloros 1.2.2i

Jithu Mathew Joseph commented on 2014-07-04 at 17:34:

+Chainfire This update is giving me reboot after 10 seconds of every boot up on HTC Desire 816. Please fix this. After uninstalling latest version, it works fine.

Edit: Works fine after flashing through recovery

Samuel Holland commented on 2014-07-07 at 11:43:

Just wanted to take the time and say,Thanks so much for the dedication and hard work. I will continue to support your work as you definitely deserve it.

Stefano Bianchi commented on 2014-07-08 at 21:36:

HI superSU is great But i have a problem.

Everytime i start my device, Galaxy note 2 N7100 and Knox disabled, a popup show me this lines: SuperSU is stopped, then i have to update it every time to 2.01 version in order to use it. Is there a fix ?

Vishal Shah commented on 2014-07-10 at 12:02:

Hello. I am facing reboot issues on HTC Desire 816 running Android 4.2.2. I didn't have any issues with any version of SuperSU below v2. Now after update to v2.01, my device constantly reboots after few seconds of loading!!

Jithu Mathew Joseph commented on 2014-07-10 at 12:04:

+Vishal Shah Uninstall latest version before the phone reboots & flash v2.01 zip via recovery.

Rohit Dhamal commented on 2014-07-14 at 03:44:

Hey Chainfire pls help me rooting the lenovo s660. Framaland does not work. I can find nothing to do it. I did the sduos earlier. Now that I changed my phone I need to Root this too.

Thanks

Stefano Bianchi commented on 2014-07-14 at 05:32:

I solved my problem

Davut Semizoglu commented on 2014-07-14 at 20:20:

Süper

Racky Wong commented on 2014-07-16 at 11:16:

I use Tasker and every time it askes for granting root access, it crashes and reboots. I am using v2.01 on my N7 2013 Preview L. All the other programs have no problem. 

JAMES HILLMAN commented on 2014-07-16 at 18:06:

I don't know what is happening but I my superSu pro is unresponsive now for over 3 days+ and also I can't access wifi or phone settings? ? On Su app I get a message saying that Su is not responding same with settings. ....Any ideas on what is going on? Please advise, thanks

Alessandro Cuccia commented on 2014-07-20 at 15:07:

Hi +Chainfire, not worked on Nexus 4. Every time lunch the app, it going to crash and every time restart the smartphone. it install 5 upgrade but not worked. Bye

Rholand Bucci commented on 2014-07-20 at 20:52:

+Chainfire, I currently have a Galaxy S 5 G900H International version. When I root with CF-AutoRoot, everything seems to work perfectly but when I run Root Checker Pro it states that it's rooted halfway.. How may I fix that? Thanks! [I'm running Android 4.4.2 and I've tried countless times to root it but failed]

Jack Nunez commented on 2014-07-21 at 06:44:

+Chainfire I'm having the issue yes root xbin su fix how do I get rid of that comes up after every back up

mein Ich commented on 2014-07-24 at 10:14:

+Chainfire . Thanks for your great work. I cannot post on xda-developer, so I am asking what the status of the following xda post is:

http://forum.xda-developers.com/showpost.php?p=48461376&postcount=4421&nocache=1&z=9772865223321424.

Unfortunately, currently SuperSU is almost useless for me.

Stefano Bianchi commented on 2014-07-24 at 10:24:

+Rholand Bucci sorry for my stupid question...after CF autoroot did u install SuperSU?when u use root checker you must give to it the root permissions so a SuperSU pop up must come out asking you "root checker request root permission" so you have to select the option to guarantee the permissions.

Rholand Bucci commented on 2014-07-24 at 16:24:

+Stefano Bianchi it's not a stupid question given that you have no way of knowing. The steps I take are: 1. Flash Official Stock (Paraguay) Unbranded firmware. 2. Flash CF-Auto-Root-k3g-k3gxx-smg900h.tar.md5 3. Wait for the install and auto-reboot. 4. Install SuperSU and update the binaries hitting NORMAL 5. Flash philz_touch_6.48.4-k3gxx.tar

The problem is that when I use Root Checker Pro it states that I don't REALLY have root, that the root I have is superficial.

When I go to Terminal Emulator, I get root access and when I type in "whoami" the result is "unknown UID 0". It should be "ROOT UID 0"

Rimovanax zmije commented on 2014-07-26 at 12:19:

Supersu is root??? Buth why not permenantly:8.5

Stefano Bianchi commented on 2014-07-26 at 14:41:

Rholand Bucci do your nave the supersu pro installed?

Stefano Bianchi commented on 2014-07-26 at 14:44:

I wanna ask...how to understand if my supersu is updated??? I don't know why but everytime that i open supersu i have an update...the problem is that I don't know if the procedure that I done is finished successfully

Jack Black commented on 2014-08-22 at 16:47:

Hello,

thx u so much for the auto root for my tablet and smartphone. Greetz from germany

Vasily Danilov commented on 2014-09-13 at 14:31:

Fffff

Berkant Nazif commented on 2014-09-15 at 14:32:

How to root

EDM commented on 2014-10-10 at 15:24:

เยี่ยมมม

Rasty Boss commented on 2014-10-12 at 19:45:

How to root

Wagiono Suparan commented on 2014-10-19 at 11:51:

flash SU

Cathalia Jones commented on 2015-04-04 at 15:05:

Help me to root my phone

This post is over a month old, commenting has been disabled.