FORUMS
Remove All Ads from XDA

[GUIDE] How to add root access & and keep official OTA updates | 4.16.401.10

38,806 posts
Thanks Meter: 77,168
 
Post Reply Email Thread

Some users like to keep their phones running the most official and stock system. Sadly, current Superuser installation process is a little bit more complicated then it was in the past (f.g. su binary needs to be running as a daemon). Flashing official SuperSu package makes OTA updates for the particular device impossible to be installed, because every OTA package during the installation process checks the integrity (with SHA-1) of each file on the system partition. Current SuperUser packages are modifying at least one file on the system partition: system/etc/install_recovery.sh. With that modified file, OTA installation will fail and you won't be able to update your device with the latest software. Additionally, SuperUser access is not always enough. It's good to have adb secure disabled and this can be done in the ramdisk inside boot.img.

Device rooted with the above method should have no problems installing latest official OTA update because:
a) OTA update checks for files integrity, but it doesn't check if any extra files were added to the system partition
b) OTA update doesn't check the integrity of the boot.img, so you can even flash a custom kernel if you want
Keep in mind that once you change or remove any file from the system partition you won't be able to receive OTA updates. You can only add new files, but you can't modify/remove existing ones.

Details:
  • boot.img source: 4.16.401.10
  • Target device: HTC One M8 (0P6B10000)
  • Target device OS version: 4.16.401.10

Included in the package:
  • Latest SuperSu app (Superuser.apk) and binaries (su, daemonsu)
  • Proper init.d script to run daemonsu binary as a daemon
  • Special wp_mod.ko kernel module to disable HTC system RW protection
  • Proper init.d script to insert the wp_mod.ko module into the kernel
  • Busybox
  • Sysrw/sysro binaries

Custom boot image:
  • Disabled ro.adb.secure and ro.secure
  • Disabled USB debugging icon on statusbar
  • Enabled USB debugging by default
  • Init.d support
  • Removed trigger command to execute install_recovery.sh to prevent stock recovery from being re-installed after each system reboot

Installation guide (bootloader has to be unlocked)
  1. Extract the downloaded .rar package (boot.img, stock_recovery.img, Root_and_BusyBox.zip and Read_Me.txt)
  2. Flash custom recovery of your choice
  3. Flash boot.img using fastboot flash boot boot.img command in the fastboot mode
  4. Flash Root_and_BusyBox.zip package in the custom recovery
  5. Flash stock_recovery.img using fastboot flash recovery stock_recovery.img command in the fastboot mode
  6. Reboot the device






Credits:
Chainfire for the SuperSu
flar2 for the wp_mod.ko module


XDA:DevDB Information
[GUIDE] How to add root access & and keep official OTA updates | 4.16.401.10, Tool/Utility for the HTC One (M8)

Contributors
mike1986.

Version Information
Status: Stable

Created 2014-05-18
Last Updated 2015-02-28
The Following 41 Users Say Thank You to mike1986. For This Useful Post: [ View ] Gift mike1986. Ad-Free
 
 
18th May 2014, 05:39 PM |#2  
Senior Member
Thanks Meter: 21
 
More
Cheers for this Mike but which file is it in your downloads section?
18th May 2014, 05:47 PM |#3  
jody04c's Avatar
Senior Member
Thanks Meter: 136
 
More
Cheers Mike, Informative as always!
18th May 2014, 05:48 PM |#4  
mike1986.'s Avatar
OP Recognized Contributor
XDA-Developers
Thanks Meter: 77,168
 
Donate to Me
More
Quote:
Originally Posted by lasikie

Cheers for this Mike but which file is it in your downloads section?

Will be there very soon!
The Following 3 Users Say Thank You to mike1986. For This Useful Post: [ View ] Gift mike1986. Ad-Free
18th May 2014, 06:03 PM |#6  
Senior Member
Thanks Meter: 21
 
More
I was under the impression this would be an all in one tool but looks like I still need to do a few things in preparation of this.

I am currently completely stock. What are the exact steps I should take to install this?
18th May 2014, 06:04 PM |#7  
mike1986.'s Avatar
OP Recognized Contributor
XDA-Developers
Thanks Meter: 77,168
 
Donate to Me
More
Quote:
Originally Posted by lasikie

I was under the impression this would be an all in one tool but looks like I still need to do a few things in preparation of this.

I am currently completely stock. What are the exact steps I should take to install this?

Could this be any simpler?

Installation guide (bootloader needs to be relocked)
  1. Extract downloaded .rar package
  2. Flash boot.img using fastboot flash boot boot.img command in the fastboot mode
  3. Flash Android_Revolution_HD_Root_and_BusyBox.zip package in the custom recovery of your choice
  4. Reboot the device
The Following 2 Users Say Thank You to mike1986. For This Useful Post: [ View ] Gift mike1986. Ad-Free
18th May 2014, 06:11 PM |#8  
Senior Member
Thanks Meter: 21
 
More
Installation guide (bootloader needs to be relocked) - How do I do this?
  1. Extract downloaded .rar package
  2. Flash boot.img using fastboot flash boot boot.img command in the fastboot mode - How do I access Fastboot mode?
  3. Flash Android_Revolution_HD_Root_and_BusyBox.zip package in the custom recovery of your choice - When do I install this custom recovery?
  4. Reboot the device

I'm not trying to be awkward just not use to some of this terminology and don't want to ruin my phone.

Maybe an idiots guide is what I need.
18th May 2014, 06:16 PM |#9  
mike1986.'s Avatar
OP Recognized Contributor
XDA-Developers
Thanks Meter: 77,168
 
Donate to Me
More
Quote:
Originally Posted by lasikie

Installation guide (bootloader needs to be relocked) - How do I do this?

  1. Extract downloaded .rar package
  2. Flash boot.img using fastboot flash boot boot.img command in the fastboot mode - How do I access Fastboot mode?
  3. Flash Android_Revolution_HD_Root_and_BusyBox.zip package in the custom recovery of your choice - When do I install this custom recovery?
  4. Reboot the device

I'm not trying to be awkward just not use to some of this terminology and don't want to ruin my phone.

Maybe an idiots guide is what I need.

http://www.htcdev.com/bootloader

Also typo in my guide, bootloader needs to be unlocked. Correcting now.
The Following 2 Users Say Thank You to mike1986. For This Useful Post: [ View ] Gift mike1986. Ad-Free
18th May 2014, 06:18 PM |#10  
Member
Thanks Meter: 1
 
More
Question
Just a question, I remember that when i rooted my m7 or my one x, i had to reinstall all apps, and contacts were lost.. with this process does the info also is erase?
18th May 2014, 06:19 PM |#11  
mike1986.'s Avatar
OP Recognized Contributor
XDA-Developers
Thanks Meter: 77,168
 
Donate to Me
More
Quote:
Originally Posted by jorzavfa

Just a question, I remember that when i rooted my m7 or my one x, i had to reinstall all apps, and contacts were lost.. with this process does the info also is erase?

Unlocking the bootloader will remove all your data. If you have bootloader already unlocked, no data will be lost.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes