Profile

Cover photo
Verified name
372,339 followers|29,196,115 views
AboutPostsPhotosVideos

Stream

Chainfire

Shared publicly  - 
 
FlashFire v0.32: Fastboot flashable backups

The major new feature of today's FlashFire update is the ability to create backups that can be flashed back to the device with fastboot. This will allow you to restore your phone from your computer without booting Android or even a custom recovery. This is a new and experimental feature, and as such there are a number of ifs, buts, snags, and caveats.

Only the main Android-related partitions are able to be backed up: boot, recovery, system, vendor, oem, userdata (including internal storage), and cache. Radio/modem partitions need some further investigation and testing, while bootloader (and other not mentioned) partitions will probably never be supported.

As the userdata partition generally contains both /data and internal storage, you should be aware that if you choose not to backup internal storage, restoring the userdata partition through fastboot will leave you with an empty internal storage.

As with backing up the internal storage normally in FlashFire, backups and other files from FlashFire, TWRP, CWM and MultiROM are skipped.

The backup of userdata is currently always in unencrypted ext4 format (even if you are currently running encrypted f2fs). If you restore it, you will end up with an unencrypted ext4 device - a pro for some, a con for others. You need to be aware that stock Marshmallow+ kernels may refuse to work with an unencrypted userdata partition. A SuperSU-patched boot image should work fine though, and chances are, that is included in your backup. Both encryption and f2fs support are under investigation for future versions.

Fastboot backups are truly meant to be restored from your PC using fastboot. While you can 'install' the backup ZIP file using the '_Flash firmware package_' option, that currently does not support flashing the userdata partition, which is usually the most important partition to backup/restore. There may be support for this in the future, though.

The backup itself is a ZIP file containing partition chunks (similar to Motorola's sparsechunk format) and a flash-all.bat file to perform the restore. The commands in that batch file should also work on Linux and OSX, but regardless of platform, the fastboot command needs to be on the PATH, and support the -u switch (which all recent Android SDK versions do). Obviously, your bootloader also needs to be unlocked for the flash to work.

Last but not least, this feature has only been tested with a handful of devices, while there are a great many devices out there that support fastboot. It might not work well or at all for your device.

Other noteworthy changes
When flashing a ZIP or OTA, there is now the option to '_Preserve recovery_'. This will backup your current recovery image before starting the action, and restore it afterwards. This option is automatically enabled if FlashFire detects you have TWRP or another custom recovery installed. With this feature enabled, you can have TWRP survive an OTA flash, even if FlashFire restores the stock boot and recovery to let that OTA succeed.

A pretty severe issue with SurfaceFlinger has been identified and worked around. This issue could cause FlashFire to black screen indefinitely rather than performing the flash or rebooting. This might not fix all black screen issues, but it will fix some.

I've also finally gotten round to implementing the Credits listing, which details the used libraries and binaries and their authors and licenses. I'll cower behind the BETA tag for not taking care of this sooner.

Download
Google Play's awkward BETA program opt-in: https://play.google.com/apps/testing/eu.chainfire.flash

Direct APK download: https://download.chainfire.eu/957/FlashFire/FlashFire-v0.32-20160420152035.apk

Discussion, bug reports, feature requests, etc
XDA thread: http://forum.xda-developers.com/general/paid-software/flashfire-t3075433

Changelog
- Exclude multirom folder from internal storage backup as well
- Ability to create fastboot flashable backups
- Use proper ioctls for partition and block size detection
- Added option to backup recovery before installing ZIP/OTA and restoring it afterwards (automatically enabled when a custom recovery is detected)
- Added a watchdog to detect SurfaceFlinger crashes, fixes some black screen issues
- Prevent repeating OTA flash suggestion on rotate
- Added credits listing
Downloads served: FlashFire: 34 027. This file: 0. Maintaining all my projects takes a lot of work, please consider donating for my efforts, and/or trying some of my apps! Follow @ChainfireXDA. Follow me on Google+ Download FlashFire-v0.32-20160420152035.apk. Copyright © 2011-2016 - Chainfire.
339
28
Melquis Cáceres's profile photoAndré Franco's profile photojooshh ramos's profile photo
40 comments
 
Funcionando perfecto en Sony Xperia c5 ultra 
 ·  Translate
Add a comment...

Chainfire

Shared publicly  - 
 
SuperSU v2.71 BETA released, CF-Auto-Roots updated

Really isn't much to mention about this, other than that all the changes for N Preview have been merged with the main BETA releases, where they were two separate releases before.

Additionally, all CF-Auto-Roots have been updated with the new version, and a lot of them have seen base firmware updates as well.
417
33
Swendell Feirce's profile photoWaqar Hyder's profile photoAsh Tiwari's profile photoSaiful Porter's profile photo
43 comments
 
How fix the su binary failed update?
Add a comment...

Chainfire

Shared publicly  - 
 
CF.lumen v3.66 released

Today brings a minor update to CF.lumen, fixing some issues for Tasker users and fixing a minor performance snafu.

It may take a couple of hours for Play to give you the new version, but as always it is already available from the XDA thread here: http://forum.xda-developers.com/showthread.php?t=2711912

Changelog
- CF.lumen driver: smoother filter switching
- CF.lumen driver in Performance mode: fix disable hardware overlays option sticking when CF.lumen is disabled
- Tasker: fix black screen on filter selection
- Tasker: fix brightness change on filter selection
CF.lumen adapts the colors on your Android device based on the position of ...
126
7
Craig D's profile photoMadeline Gleich's profile photoPatirea Virgil's profile photoBanan PL's profile photo
13 comments
 
Why this app is not available for kit kat?
Add a comment...

Chainfire

Shared publicly  - 
 
S7 and S7 Edge (Exynos) CF-Auto-Root available

CF-Auto-Roots for G930F and G935F are available at the repo - http://autoroot.chainfire.eu/

These will very likely also work for other Exynos-based S7 models.

Before flashing, make sure you have enabled "OEM unlock" from "Developer Settings" !

Note that CFAR's display code isn't yet compatible with the S7, as such, there is no output on screen. This means that after flashing with ODIN, the device will only show you the S7 logo, and it seems like nothing happens. Just leave the device alone for 5 minutes. It'll reboot a few times, then boot into Android, but now you have root. 

If it still doesn't do anything after 5 minutes, something has gone wrong, and you should probably reflash your stock boot.img and recovery.img.
When newer firmwares are released for a certain device, sometimes that firmware includes new bootloaders that prevent kernels based on the old firmwares from booting. This usually coincides with a transition to a newer Android version. In that case, the CF-Auto-Root for download here may no ...
333
20
Pierre Valentin's profile photoLou Capo's profile photocross LD's profile photoaurasdz zombla's profile photo
67 comments
 
Est ce qu'il marche sur G935FD
 ·  Translate
Add a comment...

Chainfire

Shared publicly  - 
 
SuperSU v2.69 BETA RC - N Preview

The first test release for SuperSU on N Preview is available now from XDA (see the link below), both in ZIP and CFAR form.

There have been some changes to SELinux on N Preview, and virtually all important changes in this SuperSU release are related to that.

Of course, this version of SuperSU will allow the system to keep running in SELinux Enforcing mode.

Interestingly, last BETA release I noted some changes to how Samsung handles some SELinux things on their new Marshmallow firmwares, and some of those appear in N Preview as well. Not sure who inspired who or if it is just a coincidence. Nevermind that, it seems I have misinterpreted something.
515
67
Tracey Grimes's profile photoMark Gillespie's profile photoDwight Goliday Jr's profile photoChainfire's profile photo

Chainfire

Shared publicly  - 
 
CF.lumen v3.65 released

I have just uploaded v3.65 of CF.lumen to Google Play, which should start redistributing it in a few hours. In the meantime, you always grab the latest APK from the XDA discussion thread (see below) as well.

Two weeks ago v3.60 was released ( https://plus.google.com/+Chainfire/posts/HUG8zXYduYM ), and while it greatly increased compatibility with many devices, it also came with its own set of problems.

With a few dozens BETA testers and testing on many different devices and firmwares myself, a couple serious issues were not caught - I sincerely apologise for the inconvenience caused to some users.

Today's release of v3.65 should fix most of these issues.

Performance
On some devices, the last CF.lumen driver revision caused a drop in performance, making it as dreadfully slow as some better known apps.

To counter this, the CF.lumen driver now has a performance mode. While this mode is not compatible with all devices (which is why it isn't the default setting), and may occasionally cause display artifacts, it is just as fast or faster as older versions of CF.lumen.

Filter disappearing
The filter would completely disappear at intervals or when certain actions were performed. This should now be greatly reduced. You may still see a flash of the original colors now and then with the default setting.

The performance mode mentioned above doesn't suffer from this issue, and there is now also an anti-flicker mode. The latter tries to prevent these flashes of the original colors, but does not cause the (rare) artifacts the performance mode may cause.

Color accuracy
On some devices, color rendering changed on v3.60, with v3.65 this should be back to normal.

Filter darkening
If you select a filter, the brightness menu option now also allows you to darken the filter. This works outside of normal display brightness, but can produce a much darker image. This technique is known outside of CF.lumen as sub-zero brightness.

This setting is handy specifically with the sleep filter, as lowering the brightness to the lowest setting may still be too bright at night.

It should be noted that this option works best on AMOLED screens, as on LCD screens it doesn't affect the backlight brightness at all.

Usability
One thing that keeps being requested is being able to input numbers directly, aside from the sliders present on various screens. All underlined numbers are now tap-able and you can input values directly.

PCC/RGB driver
A driver was added to control the display via the PCC/RGB kernel mod. It is very closely related to the KCAL driver and uses the same hardware, but many kernels only offer one of these interfaces; so now you can use CF.lumen with either.

Gamma correction
If using the KCAL or PCC/RGB driver, make sure to configure the gamma correction option, to make sure you get the right color output.

Future
There are many feature request still on my list, if you have any more, report them to the XDA thread.

Discussion
All discussion, including bug reports, should go to XDA thread here: http://forum.xda-developers.com/showthread.php?t=2711912

Download
You can grab the download from the Play store using the link below this post, or download the APK from the second post of the XDA discussion thread.

Changelog
- Reworked raw remote control receiver
- Fix logcat spammed with notification errors regarding a missing icon
- Fix issue with "Bright light" setting
- Fix flicker on location update
- Reduce frequency of notification updates
- Add color checker to rgb/custom and temperature filter selection dialogs
- Underlined numbers next to sliders can now be tapped to input a text value
- CF.lumen driver: fix not closing properly when switching to KCAL
- CF.lumen driver: better monitor accessibility settings
- CF.lumen driver: added anti-flicker and performance modes
- KCAL driver: add gamma correction feature
- KCAL/CF.lumen drivers: Tune color temperature algorithm
- PCC RGB driver added
- Add "Darken filter" setting to "Brightness" option (sub-zero)
- Made "Brightness" setting on filter selection an icon
- Moved "Auto-update location" option to the Map activity
CF.lumen adapts the colors on your Android device based on the position of ...
338
11
dimmos nadz's profile photoRobert Armani's profile photoPatrick Drummond's profile photoChainfire's profile photo
15 comments

Chainfire

Shared publicly  - 
 
FlashFire v0.31 released

Most of todays update is compatibility related (again), fixing issues with various popular update ZIPs.

Additionally, lz4 compression (used when creating and restoring backups) is now multithreaded, which can provide a nice speed-up.

For Samsung users, generating a .tar.md5 with bootloaders and modem to flash through ODIN now includes partitions FlashFire cannot see or detect. This should fix missing bootloader issues on for example the S6.

*warning warning warning*
Something less fun to announce is that due to a bug in partition detection, some backups created in FlashFire v0.26 through v0.30 cannot be restored by 'installing' them in TWRP. This does not affect all backups, but it is hard to tell which ones will or will not work.

Of course, all of these backups are still restorable in FlashFire itself, but if you rely on TWRP for emergency restore if you mess up your system, you should create a new backup for this purpose.

Download
Google Play's awkward BETA program opt-in: https://play.google.com/apps/testing/eu.chainfire.flash

Direct APK download: http://download.chainfire.eu/956/FlashFire/FlashFire-v0.31-20160405175326.apk

Discussion, bug reports, feature requests, etc
XDA thread: http://forum.xda-developers.com/general/paid-software/flashfire-t3075433

Changelogs
- Exclude usbStorage folder from internal storage backup as well
- Switched to multi-threaded lz4 implementation (much faster backup/restore)
- Replace gzip with pigz in flash mode
- Set umask to 0 in flash mode
- Use tmpfs for /tmp
- Fix several other issues preventing flash mode from starting (reboots)
- Fix bug in TWRP restore listing (warning: old backups may not restore in TWRP !)
- Fix files present in firmware packages not being shown if the partition cannot be found
- Fix sdcard daemon running multiple times and eating CPU for no reason
- AROMA: prevent reboot call
- AROMA: only do framebuffer emulation if AROMA is actually detected, to prevent running into https://code.google.com/p/android/is...tail?id=178583
367
23
Nescio Neo's profile photoJimmy Sinor's profile photo‫يوسف عبدالوهاب‬‎'s profile photoJose 79's profile photo
36 comments
Jose 79
 
great, 
Add a comment...

Chainfire

Shared publicly  - 
 
FlashFire v0.30 released

Another FlashFire update mostly improving compatibility.

AROMA based installers should now work across all devices. To accomplish this, FlashFire emulates the Linux framebuffer driver. While it appears to work fine, you may notice the graphics aren't as smooth as running AROMA from recovery - but at least it works. And if it doesn't, please report it in the XDA thread :)

A number of devices that would previously reboot instead of performing the requested action, should now be compatible. This includes a number of LG and LeTV devices.

Yet more external storage configurations are supported - including StickMount based -, and the backups listing will now also show you where they are stored.

The embedded SuperSU version has also been update to v2.71. There's a noticable performance increase in flash mode startup if you run FlashFire on a system with SuperSU v2.71 installed.

Download
Google Play's awkward BETA program opt-in: https://play.google.com/apps/testing/eu.chainfire.flash

Direct APK download: http://download.chainfire.eu/950/FlashFire/FlashFire-v0.30-20160331135212.apk

Discussion, bug reports, feature requests, etc
XDA thread: http://forum.xda-developers.com/general/paid-software/flashfire-t3075433

Changelogs
- Exclude TitaniumBackup folder from internal storage backup as well
- Add location (internal storage, sd card, USB drive, ...) to backup listing
- Improve compatibility with StickMount-based USB mounts
- Fix a number of issues that could cause reboot while switching to flash mode
- Fix display brightness on some devices
- Framebuffer emulation for AROMA Installer (pretends to be a debugger, hijacks graphics calls)
- Fix bug where cache partition could lose data
- Complete refactor of flash mode code
- Improve Samsung CSC handling
- Fix bug where internal storage mounting could fail if external (sdcard/usb) storage present
- Update embedded SuperSU to v2.71
182
12
samir babou's profile photoMitch Barber's profile photoTRAN TRONG HUYNH's profile photoJoshua Pankhurst's profile photo
4 comments
 
Keep it up you magnificent bastard!!!!
Add a comment...

Chainfire

Shared publicly  - 
 
FlashFire v0.29 released

Today's update of FlashFire is mostly a compatibility update. A bug in Android N itself that prevented OTAs from flashing has been worked around (you may still see incorrect size listings of 2048 MiB in some places, though), and there have been quite a few modifications to partition detection and external storage handling (portable and adopted sd cards, as well as USB).

Both the app's startup time as well as the time it takes to switch from Android to flashing mode have been reduced. The latter will be even faster when combined with the soon-to-be-released SuperSU v2.71.

Feature wise, an option to format /cache has been added to the Wipe action, to fix /cache partitions that are the wrong size and prevent OTAs from flashing. Additionally, the internal storage can now also be backed up, though it will skip FlashFire and TWRP backup files.

Last but not least, a setting has been added to allow primary and secondary bootloader partitions to be flashed (on devices where this is possible, such as most Nexus devices). This is extremely dangerous - any failure may hard-brick your device - don't touch it if you don't know what you are doing.

Download
Google Play's awkward BETA program opt-in: https://play.google.com/apps/testing/eu.chainfire.flash

Direct APK download: http://download.chainfire.eu/931/FlashFire/FlashFire-v0.29-20160322212736.apk

Discussion, bug reports, feature requests, etc
XDA thread: http://forum.xda-developers.com/general/paid-software/flashfire-t3075433

Changelogs
- Fix some compatibility issues with N Preview
- Fix app_process causing a reboot during startup
- Fix bug which could cause flashing /system to freeze
- Improve partition detection size accuracy
- Reduce app startup time
- Reduce time taken to switch to flash mode
- Add option to format /cache (wipe action)
- Improve external sdcard compatibility
- Improve adopted storage compatibility
- Improve USB drive compatibility
- Add additional OTA paths for NVidia
- Improve partition platform detection
- Add support for backing up internal storage (excludes FlashFire, TWRP and CWM backups)
- Fix error when opening bootloader image not wrapped in an archive
- Add setting to enable flashing primary and secondary bootloaders (automatically disabled)
- EverRoot: "Enable ADB" no longer enabled by default
341
24
Zaki Manzanza's profile photoK-D Fredrick's profile photoSebastijan Kocman's profile photoChainfire's profile photo
13 comments

Chainfire

Shared publicly  - 
 
N Preview: Surviving Your Trip To Mount Doom

Preface: What's in the box?
The three boxes on Android are toolbox, busybox, and toybox. These boxes provide implementations for various basic unix commands - similar to those GNU Core Utils provides on various Linux distributions.

toolbox was until recently the standard Android implementation. busybox is pretty much the standard box outside of Android, GPL-licensed, and has been ported to Android by many. toybox is a BSD-licensed alternative to busybox created by a former busybox maintainer. toybox first appeared on Android in M, and is slowly replacing the toolbox implementation for various commands.

These commands are mostly used by root apps, device scripts, and adb shell / terminal emulator users.

Consistency is key
Those who have been following me for a while know that I am not a fan of busybox. This is mainly because many users install it in such a way that it overrides the default commands.

Many root apps need to execute commands provided by these boxes. While the base command is generally the same, the accepted parameters, exact working, and output, will differ between implementations, and different versions of those implementations.

For example, around 4.3-ish days, there were at least three different versions of busybox common, with different levels of SELinux support, and inconsistent behavior for common commands.

Of course, a developer can call toolbox explicitly, and work around a user using an overriding install of busybox. Exact toolbox implementation can be matched with currently running Android version, and is thus easier to work with for developers. Apps with special needs usually come with their own copy of busybox so they can predict exactly what a command does - but this is overkill for most apps.

Mmmmm?
Since toybox's introduction in M, calling toolbox explicitly stopped being reliable, as commands were being removed from toolbox as the default implementations shifted to toybox.

Unlike toolbox though, toybox provides a list of supported commands, so there was still a way to avoid the dreaded busybox, and get to a more predictable (even if not generally consistent) implementation, be it toolbox or toybox.

At this point, you might be starting to suspect that supporting all this from a root app supporting years old Android versions up to the most recent is a painful affair.

Mount Doom
(or: why apps fail to remount /system read/write)

And so, we finally arrive at the perils of the mount command. Even on M, toybox had a mount implementation. In many cases, this implementation would just segfault at you without doing any work. No matter, toolbox still had its mount command, and that still worked.

Unfortunately, on N Preview, toybox mount has replaced toolbox mount as the default implementation, and even worse, toolbox mount has been removed, so you cannot fall back to it. While toybox mount seems to have gotten rid of its saga of segfaults, it still doesn't actually work all that well. Not nearly as well as the toolbox implementation it has replaced, at least.

One of it's issues is that it doesn't understand relatime - and that's not even a joke. As most mounts are relatime by default, when a remount is performed, first it checks the current mount flags, finds relatime, and then panics.

In SuperSU v2.70, this has been countered by setting the (by default) read-only mounts to use noatime, which toybox mount does understand.

With this fix applied, the following remount commands will work:

((/system/bin/)(toybox )mount -o rw,remount /system
((/system/bin/)(toybox )mount -o rw,remount /path/to/device /system

Unfortunately, this does not cover all the popular forms of the mount command as used by various apps, and as such, many root apps will fail to remount /system, and thus will not be able to modify it. These apps will need an update, as I don't see an easy way to work around this.

Let's start with the /path/to/device parameter. The actual (g)libc/bionic mount(2) syscall that is ultimately called generally ignores this parameter completely in case of a remount, but various mount utilities do not.

For example, on Android 2.x the parameter had to be both present and correct, while on 3.x and early 4.x, it only needed to be present. On later versions, it can be present or omitted. As a shortcut, many apps actually use:

mount -o rw,remount /system /system

With toybox, if you specify the /path/to/device parameter, it has to be correct again as well. An interesting note on that is that toybox's mount command's output differs from toolbox as well, and may actually resolve symlinks in its output - so you actually need to examine /proc/mounts instead to get the correct /path/to/device (otherwise you'll get a busy error).

As toolbox prefixes will now also no longer work to perform the remount, the following commonly used mount constructs by root apps will fail:

(/system/bin/)toolbox mount -o rw,remount /system
(/system/bin/)toolbox mount -o rw,remount /path/to/device /system
(/system/bin/)mount -o rw,remount /wrong/path/to/device /system

If you're a root app dev, you know what you need to fix. If you're a user, this is the reason many root apps will fail manipulating /system on N Preview right now.
409
35
John L Galt's profile photoAbdul Munim Kazia's profile photoabdullah waseem cheema's profile photoKhalidh Khaleefa's profile photo
22 comments
 
انا عندي مشكله في الاكس مود
 ·  Translate
Add a comment...

Chainfire

Shared publicly  - 
 
SuperSU v2.70 BETA RC - FlashFire v0.28 BETA - N Preview

Another day another update. The SuperSU updates brings a few fixes to yesterday's release, while the FlashFire update brings (only) N Preview compatibility.

Notes on SuperSU
This update must be flashed through TWRP or CF-Auto-Root (see XDA thread linked below). If you extract the APK from the ZIP, install that, and update binaries, you will not get all the fixes.

Encryption
Some users noticed that flashing the previous version of SuperSU started re-encrypting the device if it was unencrypted. This has been fixed.

Remounting /system read/write
There have been some issues with this. This update alleviates the issue somewhat, but the fix will not work for all root apps. I will dedicate a post to the details after I'm done writing this post. EDIT: https://plus.google.com/+Chainfire/posts/dGPQytapwe3

Log daemon and permissive mode
While this is something I would wholeheartedly advise against, I know some of you like to call "setenforce 0" and switch SELinux to permissive mode. If you've tried this on N Preview, you'll notice that it reboots your device into safe mode.

Normally the device would stay in safe mode because of this until a data wipe or new OTA install, but SuperSU automatically clears the flag for you on the next boot, so you don't get stuck.

Anyway, the trick to get "setenforce 0" to work is to call "stop logd" first.

Temporarily disabling root
Some users have been having issues with the Enable superuser option in SuperSU settings, which is used to temporarily disable root. I have rewritten the code behind this (for system-less roots only), let me know if it still gives you issues.

Notes on FlashFire
All this update really brings is compatibility with N Preview, but it already requires SuperSU v2.70 for this. So if you are already on N, you cannot use this version FlashFire to update SuperSU from v2.69 to v2.70.

However, you can use this version of FlashFire to flash N Preview itself to a currently Marshmallow device, and in the process root it with v2.70.

Downloads
SuperSU: http://download.chainfire.eu/927/SuperSU/RC-SuperSU-v2.70-20160314191951.zip
(CF-Auto-Roots with this SuperSU version are available from the XDA thread linked below)

FlashFire: sign up for the Play Store BETA program through this link - https://play.google.com/apps/testing/eu.chainfire.flash (note that it may still offer you v0.27 for the next few hours) - or download the latest APK directly from my site - http://download.chainfire.eu/928/FlashFire/FlashFire-v0.28-20160314195220.apk

XDA
SuperSU: http://forum.xda-developers.com/apps/supersu/wip-android-n-preview-t3335726

FlashFire: http://forum.xda-developers.com/general/paid-software/flashfire-t3075433

Changelogs - SuperSU
- Rewrote re-enabling root after temp-disable
- supolicy: Improve permissive domain handling
- N: Disable forced encryption
- N: Fix remounting /system for some apps (relatime becomes noatime for ro mounts)
- ZIP: call users scripts without setting LD_LIBRARY_PATH

Changelogs - FlashFire
- N preview compatibility (requires SuperSU v2.70)
- Properly copy selinux contexts
- Updated embedded SuperSU version to v2.70
346
35
Steven Porteous's profile photoLoverBoy 2415's profile photoDavid Newman's profile photoKH SHAFI DAR's profile photo
31 comments
 
Hi
Hi
Add a comment...

Chainfire

Shared publicly  - 
 
SuperSU v2.68 BETA, and Samsung 6.0.1 CFARs

Today's beta update to SuperSU comes with a number of bugfixes and changes, as is usually the case. The important thing this release is compatibility with the new Samsung 6.0.1 retail firmwares.

While the previous SuperSU versions worked fine out-of-the-box with Samsung's beta 6.0 firmwares, the retail firmwares had some extra 'security'.

AUDITDENY

First, they AUDITDENY'd nigh every possibly permutation of SELinux rules. In English, that means they took a pretty convoluted (and possibly performance degrading?) route of disabling policy violation logging.

While they undoubtedly had a brilliant reason for this, this is annoying for developers (both root and non-root) as seemingly random failures are often related to SELinux violations, and you no longer have a way to spot those.

As such, SuperSU now disables all AUDITDENY rules in the SELinux policy.

Permissive mode

Second, they finally killed off per-type permissive mode. While full permissive mode had been disabled on Samsung firmwares for a while already, we could (and did) switch individual types to permissive mode.

For example, the 'init' context, where commands run through 'su' are usually executed with SuperSU, was one of these permissive contexts. This significantly reduced the amount of interaction root app developers had to have with SELinux - many apps needed no changes.

As this no longer works, SuperSU now patches the SELinux policy so that virtually all common cases root apps encounter should be covered. In theory, from a root app's perspective, it should work the same. However, it is always possible I've missed something. As such, developers of root apps should take some extra care and do some extra testing on Samsung retail 6.0 firmwares. Don't forget to report issues to the relevant XDA thread.

Again, I'm sure they had a spectacular reason for doing this, even though it doesn't change anything in practise but add to the number of rules every syscall has to check against.

CF-Auto-Root
I've updated various G920, G925, G928 and N920 CFARs to work with the retail 6.0 firmwares. See the download page.

All other CF-Auto-Root downloads are also being re-created with the SuperSU v2.68 BETA right now. This process generally takes a few hours.

Disclaimer
I've only been able to test the new version on my G920F, while I hope the other Samsung 6.0 firmwares behave the same, no other users have done any testing yet.

Download

SuperSU: http://download.chainfire.eu/supersu

CF-Auto-Root: http://autoroot.chainfire.eu/

Changelog
Full changelogs are available in the 'stable' XDA thread here: http://forum.xda-developers.com/showpost.php?p=64916199&postcount=3

Comments
All your comments, questions, discussion, etc should go to the 'beta' XDA thread here: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 

KNOX
Please imagine there was a wise-crack about knocking KNOX somewhere in this post, and laugh accordingly.
699
64
syazil  Fairus's profile photoVan Papiashvili's profile photo黄镇彬's profile photo‫يوسف عبدالوهاب‬‎'s profile photo
81 comments
 
i have root file for  LRX21T.G900FDXU1BOA2 , can i flash it for LRX21T.G900FXXS1BPC3 ?
Add a comment...
People
In their circles
1 person
Have them in circles
372,339 people
flavia roberta's profile photo
Артём Рябцев's profile photo
Emmanuel Soult Smith's profile photo
Matheus Beserra de Lima's profile photo
David Daniel Herrera Díaz's profile photo
Aashish kumar's profile photo
leesh natsuki's profile photo
Domick Rosenkarenz's profile photo
Esteban J. ferdez h's profile photo