[Q] Rooting does not work 100% fine

Search This thread

doublehp

Senior Member
Jul 14, 2009
278
47
Hello.

I have rooted my phone using
http://htc-one.wonderhowto.com/how-to/unlock-bootloader-root-your-htc-one-m8-0154444/
(in short, it's using SuperSU 2.00)

After some efforts, Root Checker says i am fine. I can get id 0 from adb, and via ssh.

But ... Busybox fails to install.

And if I remount /system RW, and mess in there a bit (like mkdir /system/tmp ), the mess is removed after reboot. Changes are not permanent.

Must I change my su app for superuser mentionned in the FAQ of the section (via recovery) ? Are there things to do before this migration ?

Other possible issues ?

I am used to fully unlocked HTC Sensation, where I changes to /system are easily permanent. But it was done using an exploit, few before HTC allowed rooting officially. Rooted M8 does not seem as much friendly ...

I *really* need busybox to work, and make permanent changes to /system. I am stuck.

Thanks.
 

akitten007

Senior Member
May 3, 2011
186
32
Hello.

I have rooted my phone using
http://htc-one.wonderhowto.com/how-to/unlock-bootloader-root-your-htc-one-m8-0154444/
(in short, it's using SuperSU 2.00)

After some efforts, Root Checker says i am fine. I can get id 0 from adb, and via ssh.

But ... Busybox fails to install.

And if I remount /system RW, and mess in there a bit (like mkdir /system/tmp ), the mess is removed after reboot. Changes are not permanent.

Must I change my su app for superuser mentionned in the FAQ of the section (via recovery) ? Are there things to do before this migration ?

Other possible issues ?

I am used to fully unlocked HTC Sensation, where I changes to /system are easily permanent. But it was done using an exploit, few before HTC allowed rooting officially. Rooted M8 does not seem as much friendly ...

I *really* need busybox to work, and make permanent changes to /system. I am stuck.

Thanks.

The /system partition is write protected on stock, meaning you can't add, modify, or delete files there. To disable this, you need to flash a kernel or rom with this disabled. Pretty much all sense based roms/kernels will state this in the features. I believe S-Off also disables it if you want to go the extra mile.

PS: Write protection is disabled in recovery. That is why superuser/root could be installed there.
PPS: Here is the kernel I run (protection disabled): http://xdaforums.com/showthread.php?t=2705613
 
Last edited:

doublehp

Senior Member
Jul 14, 2009
278
47
The /system partition is write protected on stock, meaning you can't add, modify, or delete files there. To disable this, you need to flash a kernel or rom with this disabled. Pretty much all sense based roms/kernels will state this in the features. I believe S-Off also disables it if you want to go the extra mile.

PS: Write protection is disabled in recovery. That is why superuser/root could be installed there.
PPS: Here is the kernel I run (protection disabled): http://xdaforums.com/showthread.php?t=2705613

So, is there a way to install busybox via recovery ?

I did 3 things in recovery: all in /system/xbin
- chmod +s su
- touch t
- mkdir tmp

after reboot to normal mode, SUID bit was removed, but t and tmp are still here.

So, how do I install busybox ?

New issue: /data has the nodev flag; is it possible to remove it ?

I did not found /dev/shm ; was it moved somewhere else ? Any other place for similar use ? (world write temp folder in RAM).
 

doublehp

Senior Member
Jul 14, 2009
278
47

akitten007

Senior Member
May 3, 2011
186
32
If your kernel allows me to install busybox, can i backup my original kernel to restaure it afterwards ?

Can I install busybox manually via recovery+adb ? I don't have any dev suite, but a good linux station; so, I can unzip, list, copy, and so on ... if there is not too much work to do.

Now you're starting to go over my head. If you want to keep your current kernel, I would try using this method here to manually add the module that disables the protection http://xdaforums.com/showthread.php?t=2702575. I usually just install busybox using rom toolbox or any other busybox app. You could search for a busybox zip, but just disabling the write protection is a better option in my opinion. And I have actually 0.00 idea what flags mean on folders (sorry).
 

ashyx

Inactive Recognized Contributor
Oct 14, 2012
15,055
9,944
I rooted using TWRP recovery and super su. That guide you posted gives unnecessary instructions. TWRP automatically installs the SU binary and Super su the first time you boot into it. I was able to update Super su via google play, no need for the update zip. Just follow the instructions after rebooting to system from TWRP recovery.

I'm s-off, unlocked, my kernel, firmware and os are stock, only thing that isn't is recovery. I have write access to system and external sd card. All I did was make it writable with root explorer and have installed busy box no problem using this app https://play.google.com/store/apps/details?id=stericson.busybox.
 
Last edited:

doublehp

Senior Member
Jul 14, 2009
278
47
I was given a better fix.

http://xdaforums.com/showthread.php?t=2701816

In short:

adb push /mnt/big/tmp/wp_mod_m8.ko /mnt/sdcard/Download/

insmod /mnt/sdcard/Download/wp_mod_m8.ko
mount -o remount,rw /system
cd /system
touch z
mkdir zz
reboot

root@htc_m8:/storage/emulated/legacy # cd /system/
root@htc_m8:/system # ls
app
bin
build.prop
customize
etc
fonts
framework
lib
lost+found
media
priv-app
tts
usr
vendor
xbin
z
zz
root@htc_m8:/system #


The miror is on maintainance for now. So, the guy on IRC gave me his local backup. I will push it here for 30 days:
http://dl.free.fr/gSha53ljz
(server will delete it after 30d nobody downloads it)


Busybox still fails to install; don't know why.
 
Last edited: