Download SuperSU 2.74 APK
Target: Android 5.0 (Lollipop, API 21)
What's new in SuperSU 2.74
plus.google.com/+Chainfire/posts/XMFgencRR11
SuperSU v2.74 BETA: Samsung Security Policy Updates, and N Preview 3
Let me just start off by noting that SuperSU v2.74, as well as the previous version 2.72, are fully compatible with Android N Preview 3. So if that is all the information you were looking for, there you have it.
Samsung Security Policy Updates
A few days ago many Samsung users suddenly lost root after their devices received a security policy (SELinux) update. As was to be expected, many posts followed about the evils of Samsung and their breaking of root on purpose. Of course the reality of the situation is far less dramatic: any security policy update using this mechanism would have broken root, regardless of the content of said update.
This issue has been expected to occur for quite some time, but Samsung had not pushed this type of update wide enough before that it could be caught and analyzed.
Now that I've finally been able to play with it, this new version of SuperSU blocks these policy updates completely, and keeps you on the SELinux policy version embedded in the boot image (with SuperSU's modifications).
There are several reasons why the update is blocked, rather than patching it with SuperSU's needed changes:
- Samsung's policy updates are loosely based on provisions inside AOSP to do exactly this, but they have modified it enough that it has become non-standard, and other OEMs may have done the same. As such there is no easy generic way to reliably catch and modify these updates across the board before they are applied.
- It is my understanding that the security policy update mechanism in AOSP has been deprecated as of N. Probably in favor of just updating the boot image altogether (which includes these policies) via the now monthly OTA (and future seamless?) updates. Keeping that in mind, writing a bunch of extra code just to catch this edge-case that will probably not be relevant for more than a few months, seems like a waste.
Fixing lost root due to the security update
In theory, fixing root is as simple as flashing the new SuperSU v2.74 BETA ZIP file in TWRP, or using the updated CF-Auto-Root for your device.
In practice, this will not work for a fair share of users. To re-systemless-root using SuperSU ZIP's or CF-Auto-Root, if you have already been rooted, requires the stock boot image to be restored. Both methods create a backup of the stock boot image before applying root. During testing of this fix however, it became clear that a lot more users than I had expected managed to somehow lose this backup (clearing cache, factory reset, etc).
If this backup is no longer on your device, neither flashing the SuperSU ZIP nor re-applying CF-Auto-Root will fix the issue, as both installations will fail.
If you happen to have a TWRP backup of the boot image, you can restore that. Otherwise, the only solution is to find your stock firmware on a site such as SamMobile.com, and either flashing it completely, or extracting the boot.img and manually flashing that, before re-rooting.
For completeness sake, note that you can get rid of the security policy update by deleting the /data/security/spota folder, if you have any way of doing that - which most users who lost root will not.
Ramdisk backups
To reduce the impact of lost boot image backups for the future, starting v2.74, the SuperSU ZIP installer (and thus also CF-Auto-Root) will backup changed files in the boot image ramdisk to the ramdisk itself.
While this backup is not good enough to restore your original boot image to the exact state required to perform an incremental OTA, it should be good enough to be able to re-flash SuperSU even if the full boot image backup got lost - though I make no claims as to what happens if you mix it with custom kernels.
Links
ZIP: download.chainfire.eu/supersu-beta
SuperSU BETA thread on XDA: forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
SuperSU subforum on XDA: forum.xda-developers.com/apps/supersu
All CF-Auto-Root's have already been updated with this new version of SuperSU: autoroot.chainfire.eu/
Changelogs
- supolicy/sukernel: Prevent security updates to SELinux from being applied
- sukernel: backup and restore modified ramdisk files, to be able to re-root if boot image backup got lost
- ZIP: Only show TWRP warning on TWRP v2.x
About SuperSU 2.74
SuperSU is the Superuser access management tool of the future ;)
!!! SuperSU requires a rooted device !!!
SuperSU allows for advanced management of Superuser access rights for all the apps on your device that need root. SuperSU has been built from the ground up to counter a number of problems with other Superuser access management tools.
Features include:
- Superuser access prompt
- Superuser access logging
- Superuser access notifications
- Per-app notification configuration
- Temporary unroot
- Deep process detection (no more unknowns)
- Works in recovery (no more segfaulting)
- Works when Android isn't properly booted
- Works with non-standard shell locations
- Always runs in ghost mode
- Wake on prompt
- Convert to /system app
- Complete unroot
- Backup script to survive CyanogenMod nightlies
- Icon selectable from 5 options + invisible
- Theme selectable from 4 options
- Launch from dialer: *#*#1234#*#* or *#*#7873778#*#* (*#*#SUPERSU#*#*)
NOTE: Not all phones take both codes. On some phones you need to use single *# instead of double *#*#
The Pro version additionally offers:
- OTA survival mode (no guarantees)
- Full color-coded command content logging (input/output/error)
- Per-app logging configuration
- Per-app user override
- Grant/deny root to an app for a set amount of time
- PIN protection
- Per-app PIN protection
- Adjust auto-deny countdown
The discussion and support thread can be found on XDA-Developers here:
http://forum.xda-developers.com/showthread.php?t=1538053
SUPERUSER
This is meant to replace Superuser (if installed), you use either one or the other. You cannot combine them. Statements that this breaks Superuser are therefore completely nonsensical.
NOTICE: A SPECIAL PROCEDURE IS NEEDED FOR UNINSTALLATION. IF YOU DO NOT LIKE THE APP, DO *NOT* JUST UNINSTALL IT, YOU *WILL* LOSE ROOT.
Superuser access management runs through a so called "su binary". There can be only one of these at a time. So if you install SuperSU, your previous superuser access management solution will no longer operate. So if you want to switch back: (1) Open that application, and search for an option for it to install/update/replace the "su binary". (2) Confirm root-using apps are using the superuser solution you want. (3) Uninstall SuperSU.
TRANSLATIONS
Want to help translate SuperSU ? See http://www.getlocalization.com/supersu/ !
IN-APP PURCHASES
These are completely optional and more like donations. They do not unlock any functionality.
SuperSU 2.74 variants
This release may come in several variants. Consult our handy FAQ to see which download is right for you.
Version:2.79-SR4(279) for Android 2.1+ (Eclair, API 7)
Uploaded:March 23, 2017 at 9:48PM UTC
File size:6.24 MB
Downloads:24,939
Version:2.79-SR3(279) for Android 2.1+ (Eclair, API 7)
Uploaded:January 14, 2017 at 10:21PM UTC
File size:6.24 MB
Downloads:28,975
Version:2.79-SR2(279) for Android 2.1+ (Eclair, API 7)
Uploaded:January 3, 2017 at 10:06PM UTC
File size:6.28 MB
Downloads:7,845
Version:2.79-SR1(279) for Android 2.1+ (Eclair, API 7)
Uploaded:December 22, 2016 at 9:31PM UTC
File size:6.6 MB
Downloads:7,090
Version:2.79(279) for Android 2.1+ (Eclair, API 7)
Uploaded:December 15, 2016 at 9:21AM UTC
File size:6.28 MB
Downloads:132,735
Version:2.78-SR5(278) for Android 2.1+ (Eclair, API 7)
Uploaded:November 30, 2016 at 4:55PM UTC
File size:6.33 MB
Downloads:7,272
Version:2.78-SR4(278) for Android 2.1+ (Eclair, API 7)
Uploaded:November 15, 2016 at 8:33PM UTC
File size:6.25 MB
Downloads:6,660
Version:2.78-SR3(278) for Android 2.1+ (Eclair, API 7)
Uploaded:November 3, 2016 at 5:16PM UTC
File size:6.32 MB
Downloads:6,090
Version:2.78-SR2(278) for Android 2.1+ (Eclair, API 7)
Uploaded:October 30, 2016 at 2:12AM UTC
File size:6.26 MB
Downloads:4,275
Version:2.78-SR1(278) for Android 2.1+ (Eclair, API 7)
Uploaded:September 15, 2016 at 8:44PM UTC
File size:6.19 MB
Downloads:17,578
Version:2.82.1
Uploaded:January 1, 2018 at 8:18PM UTC
File size:5.97 MB
Downloads:188,796
Version:2.82-SR5
Uploaded:October 1, 2017 at 10:15PM UTC
File size:6.06 MB
Downloads:82,662
Version:2.82-SR4
Uploaded:September 18, 2017 at 7:11PM UTC
File size:6.06 MB
Downloads:3,591
Version:2.82-SR3
Uploaded:August 13, 2017 at 2:44PM UTC
File size:6.06 MB
Downloads:7,261
Version:2.82-SR2
Uploaded:August 12, 2017 at 11:33PM UTC
File size:6.06 MB
Downloads:2,657
Version:2.82-SR1
Uploaded:June 15, 2017 at 9:04PM UTC
File size:6.03 MB
Downloads:7,483
Version:2.82
Uploaded:May 29, 2017 at 4:33PM UTC
File size:5.93 MB
Downloads:14,313
Version:2.81
Uploaded:May 25, 2017 at 3:21PM UTC
File size:5.87 MB
Downloads:8,394
Version:2.80
Uploaded:May 24, 2017 at 10:47PM UTC
File size:5.87 MB
Downloads:6,699
Version:2.79-SR4
Uploaded:March 23, 2017 at 9:48PM UTC
File size:6.24 MB
Downloads:24,939