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

Search This thread

wetxxx

Senior Member
Oct 14, 2007
590
35
I manually update missing files from Your Mike rom 1.54.401.10. This operation was difficult but it was a success :)

Now I have a brand, new 2.22.401.4 ROM.

Mike: whats new in 0.5 ? I install 0.4 version.
 

Glue

Member
May 13, 2010
22
2
So, I got my HTC One M8, unlocked bootloader, installed TWRP, Rooted using SuperSu then I used Sunshine to S-Off and unlock my phone.

Now, I want to install the new OTA update to 4.4.3.

I want to use your method so I can receive the official OTA.

A few questions:

1. If I apply your method, after doin all the steps, will my phone keep the S-Off and still be unlocked?! Or I'd have to use Sunshine again, pay another 25$ and S-Off and unlock it?
2. If I try your method, install the OTA update to 4.4.3, I understand that I loose the root and have to root it again and the reuse Sunshine to S-Off and unlock it. Am I right?
 

boe323

Senior Member
Jun 22, 2012
1,952
392
Burton on Trent
So, I got my HTC One M8, unlocked bootloader, installed TWRP, Rooted using SuperSu then I used Sunshine to S-Off and unlock my phone.

Now, I want to install the new OTA update to 4.4.3.

I want to use your method so I can receive the official OTA.

A few questions:

1. If I apply your method, after doin all the steps, will my phone keep the S-Off and still be unlocked?! Or I'd have to use Sunshine again, pay another 25$ and S-Off and unlock it?
2. If I try your method, install the OTA update to 4.4.3, I understand that I loose the root and have to root it again and the reuse Sunshine to S-Off and unlock it. Am I right?
Once your phone is s-off ...it will stay s-off. only way you loose it is if you turn s-on back yourself.
 
  • Like
Reactions: Glue
Jan 2, 2012
49
6
i assume doing a system/cache wipe and then flashing this (Revolution or the Stock) will solve any problems with lingering files that might stop a OTA update?
 

chrisjasper

Senior Member
Jan 15, 2007
949
44
London
New OTA - fails in CWM

So, I got a notification of an OTA (1.70.61.3) on my device (original rom just opened up using this thread) but after download the phone reboots and recovery states it cannot mount the internal sd to install the file.
Can I copy it off to the external and install it safely through recovery myself, know it sounds like a stupid question but it's a brand new phone and I'm still not flash happy on it yet.

EDIT: my bad "flash stock recovery", I forgot and I put cwm on.
I get the Scooby Doo award for today
 
Last edited:

wetxxx

Senior Member
Oct 14, 2007
590
35
Mike: From 15 of September it's avaliable new ota update 2.22.401.5. Did you check compatibility of yours 0.5 update? It' will be working with this version?


Update:

I try install supersu and busybox and all looks good. Root working great. Should I flash boot.img from 0.5 version? Actually install only Root_and_BusyBox.zip from TWRP.

Update 2:
First time I have a reboot when write to host file. I don't change boot.img file.
 
Last edited:

navid0308

Senior Member
Oct 14, 2012
867
306
Dhaka
concerned

im a little shaky about my new htc m8. i did a lot of android flashing/modding on the xperia arc s before. i have a few questions

1. by default my phone is s-off is that a problem? (successfully upgraded to 4.4.2 build: 1.70.61.3 via OTA)

2. if i unlock bootloader but keep stock recovery+kernel will i get the android L ota when it comes out?

3. what i mainly wanna do is flash stock build 2.22.401.4 and root to remove some useless apps like play music, chrome(because htc already has apps for these) and other bloatware

provided i do no.3, will i get OTA?
 
Last edited:

Hammerz

Member
Dec 26, 2008
19
0
Root_and_BusyBox question

I have a HTC STOCK WWW (2.22.401.5) with TWRP Cid HTC__001 rooted with (One_M8_All-In-One_Kit_v) but I can not install busybox because of write protection is active. Can I just flash the package (Root_and_BusyBox.zip) on the device rooted or do I have to install (boot.img) to remove the write protection.

Thank you
 

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,467
4,542
28
Hanover
HTC 10
Google Pixel 3 XL
I have a HTC STOCK WWW (2.22.401.5) with TWRP Cid HTC__001 rooted with (One_M8_All-In-One_Kit_v) but I can not install busybox because of write protection is active. Can I just flash the package (Root_and_BusyBox.zip) on the device rooted or do I have to install (boot.img) to remove the write protection.

Thank you

you Need the boot.img with removed protection .then it should work.
 
  • Like
Reactions: Hammerz

wetxxx

Senior Member
Oct 14, 2007
590
35
Ok, I install elementalX a few days ago and works great. So I don't try install stock with remove rw protection

Send from HTC device.
 

klyzon

Senior Member
Oct 15, 2007
183
1
can i skip installing a custom recovery and just proceed with flashing boot.img, followed by Root_and_BusyBox.zip and lastly stock recovery?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    sep2.png


    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



    Downloads.png




    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
    5
    Rooting tools updated for the 3.28.401.7 base :)
    4
    Rooting tools for 2.22.401.4 updated!

    Just a reminder - rooting tools do the following:

    - root the device with latest SuperSU
    - disable system R/W protection
    - add busybox
    - add sysrw/sysro binaries
    - keep the possibility to receive official OTA update from the HTC

    Have fun :cowboy:
    3
    Cheers for this Mike but which file is it in your downloads section?

    Will be there very soon! :)
    3
    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