I got a Nexus 5 on 2014-06-17 (getgoods, 314.90€).
Unlocking the bootloader
This step will delete all data on the device (except for the stock image itself), thus I recommend to do it immediately before you setup much stuff.
I used Arch Linux with android-tools 4.4.2_r2-1 and android-udev 89-1, but any ADK should work.
Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.
# fastboot devices 08XXXXXXXXXXX1e fastboot # fastboot oem unlock ... OKAY [ 32.363s] finished. total time: 32.363s # fastboot reboot rebooting... finished. total time: 0.001s
On booting, you should see an open lock now.
Getting root access
You could now flash a recovery image and then replace the stock ROM, but I didn’t want to, because I’d like to have OTA updates and think the stock ROm is fine.
Put SuperSU on the phone. Either download it directly, or use
adb
:Enter Settings -> About phone -> Tap 7x Build Number -> Unlock Developer Mode -> Enable USB debugging.
# adb push UPDATE-SuperSU-v2.00.zip /sdcard/
Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.
Temporarily boot into TWRP. This will not modify the recovery image, but just load it once.
# fastboot boot openrecovery-twrp-2.7.1.1-hammerhead.img downloading 'boot.img'... OKAY [ 0.654s] booting... OKAY [ 0.115s] finished. total time: 0.770s
Install -> select UPDATE-SuperSU-v2.00.zip -> Clear Dalvik&Cache -> Reboot.
Enjoy your rooted phone. Possibly, you’ll need to repeat this step after OTA updates (also try SuperSU survival mode).
(Resources: http://forum.xda-developers.com/google-nexus-5/general/guide-nexus-5-how-to-unlock-bootloader-t2507905 and http://forum.xda-developers.com/showthread.php?t=2439536)
Install AdAway
You can now install AdAway.
Install YouTube AdAway
You can now install Xposed and then YouTube AdAway.
More Xposed
- GEL settings to remove the Google Search bar from the launcher.
- Custom Share to rearrange the “Share with…” menu.
The End
The Nexus 5 died in a sudden on 2016-05-08 and doesn’t turn on anymore.