Post Reply

[Q] Rooting does not work 100% fine

OP doublehp

20th June 2014, 04:12 AM   |  #1  
OP Senior Member
Thanks Meter: 35
 
215 posts
Join Date:Joined: Jul 2009
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.
20th June 2014, 04:22 AM   |  #2  
akitten007's Avatar
Senior Member
Thanks Meter: 24
 
150 posts
Join Date:Joined: May 2011
More
Quote:
Originally Posted by doublehp

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
Last edited by akitten007; 20th June 2014 at 04:25 AM.
20th June 2014, 04:32 AM   |  #3  
OP Senior Member
Thanks Meter: 35
 
215 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by akitten007

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).
20th June 2014, 04:44 AM   |  #4  
OP Senior Member
Thanks Meter: 35
 
215 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by akitten007

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.
20th June 2014, 05:18 AM   |  #5  
akitten007's Avatar
Senior Member
Thanks Meter: 24
 
150 posts
Join Date:Joined: May 2011
More
Quote:
Originally Posted by doublehp

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).
20th June 2014, 10:06 AM   |  #6  
Senior Member
Thanks Meter: 40
 
292 posts
Join Date:Joined: 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.
Last edited by ashyx; 20th June 2014 at 10:13 AM.
20th June 2014, 03:30 PM   |  #7  
OP Senior Member
Thanks Meter: 35
 
215 posts
Join Date:Joined: 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.
Last edited by doublehp; 20th June 2014 at 03:36 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in One (M8) Q&A, Help & Troubleshooting by ThreadRank