Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,230 Members 48,171 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Rooting does not work 100% fine

Tip us?
 
doublehp
Old
#1  
Senior Member - OP
Thanks Meter 32
Posts: 206
Join Date: Jul 2009
Question [Q] Rooting does not work 100% fine

Hello.

I have rooted my phone using
http://htc-one.wonderhowto.com/how-t...ne-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.
HTC One M8, unpacked 2014-06-19 at 4PM; HTCDEV + SuperSU + S-Off + hone made random scripts at boot 2014-06-20 at 11:30PM .

HTC Sensation received July 27th 2011 (First HTC). Cracked Fre3vo 28th. Craked S-OFF via Revolutionary 30th with success on first attempt. LeeDrOiD 1.2.
 
akitten007
Old
(Last edited by akitten007; 20th June 2014 at 04:25 AM.)
#2  
akitten007's Avatar
Senior Member
Thanks Meter 20
Posts: 136
Join Date: May 2011
Quote:
Originally Posted by doublehp View Post
Hello.

I have rooted my phone using
http://htc-one.wonderhowto.com/how-t...ne-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://forum.xda-developers.com/show....php?t=2705613
HTC One M8 running stock(current)
SGS III running Quantum by pwncakes (old)
Moto Atrix 4g running Neutrino(older)
Samy Captivate (paperweight )
 
doublehp
Old
#3  
Senior Member - OP
Thanks Meter 32
Posts: 206
Join Date: Jul 2009
Quote:
Originally Posted by akitten007 View Post
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://forum.xda-developers.com/show....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).
HTC One M8, unpacked 2014-06-19 at 4PM; HTCDEV + SuperSU + S-Off + hone made random scripts at boot 2014-06-20 at 11:30PM .

HTC Sensation received July 27th 2011 (First HTC). Cracked Fre3vo 28th. Craked S-OFF via Revolutionary 30th with success on first attempt. LeeDrOiD 1.2.
 
doublehp
Old
#4  
Senior Member - OP
Thanks Meter 32
Posts: 206
Join Date: Jul 2009
Quote:
Originally Posted by akitten007 View Post
PPS: Here is the kernel I run (protection disabled): http://forum.xda-developers.com/show....php?t=2705613
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.
HTC One M8, unpacked 2014-06-19 at 4PM; HTCDEV + SuperSU + S-Off + hone made random scripts at boot 2014-06-20 at 11:30PM .

HTC Sensation received July 27th 2011 (First HTC). Cracked Fre3vo 28th. Craked S-OFF via Revolutionary 30th with success on first attempt. LeeDrOiD 1.2.
 
akitten007
Old
#5  
akitten007's Avatar
Senior Member
Thanks Meter 20
Posts: 136
Join Date: May 2011
Quote:
Originally Posted by doublehp View Post
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://forum.xda-developers.com/show....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).
HTC One M8 running stock(current)
SGS III running Quantum by pwncakes (old)
Moto Atrix 4g running Neutrino(older)
Samy Captivate (paperweight )
 
ashyx
Old
(Last edited by ashyx; 20th June 2014 at 10:13 AM.)
#6  
Senior Member
Thanks Meter 38
Posts: 286
Join Date: Oct 2012
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/d...ricson.busybox.
 
doublehp
Old
(Last edited by doublehp; 20th June 2014 at 03:36 PM.)
#7  
Senior Member - OP
Thanks Meter 32
Posts: 206
Join Date: Jul 2009
I was given a better fix.

http://forum.xda-developers.com/show....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.
HTC One M8, unpacked 2014-06-19 at 4PM; HTCDEV + SuperSU + S-Off + hone made random scripts at boot 2014-06-20 at 11:30PM .

HTC Sensation received July 27th 2011 (First HTC). Cracked Fre3vo 28th. Craked S-OFF via Revolutionary 30th with success on first attempt. LeeDrOiD 1.2.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes