Rooting and updating rooted devices
root on your Nexus and what to do with it. How to get root (not a custom ROM, just more control over your device), what trics you can do with it and how to update your device.
Rooting a Nexus device
XDA has an excellent write-up about how to root the Nexus 6P.
fastboot oem unlock
# or, on for example the 6P and likely some other new devices:
fastboot flashing unlock
Be carefull: this will factory-reset your device, wiping it completely clean, so be sure to copy your images and such to your pc/NAS/cloud before doing this.
Updating a rooted device with changes on /system partition
SuperSU systemless root tries to keep your OTA's (Over-The-Air updates) working. As those check whether changes took place on your device that they don't expect, you may not be able to install an OTA update if you changed something on your system
partition, for example a hosts
file (adblocking), or by removing apps.
No navigation bar
- Add
qemu.hw.mainkeys=1
to the end of your build prop. This permanently hides the Nav Bar - Install Swipe Navigation. This will make it so you navigate by swiping where the Nav Bar used to be. It's totally invisible and utterly intuitive, you literally just swipe up from the edge, no buttons, no timing to trigger something, no worrying about how far or fast you swiped... it just works.
shop PlayStore
source / Swipe navigation forum thread
How to fix Secure Settings on Android devices with SuperSU systemless root
Secure Settings (Google Play) is a really helpful app to help Tasker (Google Play) do things automatically on your Android device.
However, it has not been updated for quite a while (January 2015 at the time of this writing) and since then SuperSU has changed its way of installing the su
binary to your device, by preferring not to install this on the system
partition.
As some older apps hardcode the complete path of this binary in their checks, and Secure Settings is one of these, it thinks it can not get root access.
On my quest of a fix for this problem, I found this post on XDA where a comment on Reddit was referenced, stating the following fix, running the commands from a command line (terminal) on your machine, having adb
installed:
adb shell
su
mount -o remount,rw /system
touch /sbin/su /system/bin/su /system/xbin/su
mount -o remount,ro /system
exit
reboot
This creates some empty files in locations that older (incorrect) apps check for the su
binary, so Secure Settings (and likely other applications) are made to believe they can get root (which they actually can, as you can not make those files without being root through su
anyway).
You can also do this on your device by just omitting the first line and starting with su
in a Terminal app (or for example JuiceSSH in a local session).
I hope this helps other people looking for a solution too.