Hi Guys,
Is there a way to 43v3r root the Bionic when on the 901? I am already rooted (used path saver to get to 901) but I do not know if I am 43v3r rooted and would like to get to the 902 to flash to ICS.
Thanks for the help!
Marc
nevermind guys doing back to stock then going up.. Thanks
tell what you did to get there I am very confused at this point
Sent from my DROID BIONIC using XDA App
Back when someone discovered what exactly the update was doing to remove our root (I think it was the 5.5.893 update?), they posted a way to do it manually. It was basically just locking the file permissions on the appropriate root files so the update cannot modify them. There were three files.
OK I got off my lazy ass and googled for it.
YOU NEED TO ROOT FIRST... FOREVER ROOT ISN'T A METHOD TO ROOT. IT'S A METHOD TO RETAIN ROOT THROUGH OTA UPDATES.
Here's the main post
Here's the video from that post if you're super lazy
And here's the text if you're ultra lazy:
RootExplorer Method
go to /system/bin/
open in text editor – mount_ext3.sh
add the following lines to the very bottom
chmod 4755 /system/bin/su
chmod 4755 /system/xbin/su
chmod 4755 /system/app/Superuser.apk
ADB method
adb pull /system/bin/mount_ext3.sh
open the file in your favorite text editor
add the following lines to the very bottom
chmod 4755 /system/bin/su
chmod 4755 /system/xbin/su
chmod 4755 /system/app/Superuser.apkSave file
adb push mount_ext3.sh /data/local
adb shell
mount -o rw,remount /dev/null /system
cat /data/local/mount_ext3.sh > /system/bin/mount_ext3.sh
chmod 777 /system/bin/mount_ext3.sh
Click to expand...
Click to collapse
Related
can someone give me a tutorial on how to update the user.conf..i have looked at the compcache threads and linux swap but im not getting it...i want to be able to update it through terminal emulator and do i have to do nething to the userinit.sh if i change the user.conf...because numerous configs i have done for swappiness and linux swap...etc, have shown no difference..can somone give me a walkthrough...thanks so much..sry if i have a lot of questions just want to make myself more knowledgeable so i can hopefully return the favor to somone else one day
i do not know if you can edit it through the terminal sorry. i do know that you do not have to change the userinit.sh if you change user.conf, also i do know that you can open it up with PSPad (thats what i use) on a computer edit it there and push it back to phone and reboot. sorry i couldn't answer all of your questions
well i have had no problems editing it...its just putting it back nd making sure it works..now i have no problem using adb if u know of a tutorial to use it on mac...or know how to use it on mac
when you put it back on the phone did you make sure to chmod 755 it after you put it back on the phone and reboot?
then to text it with adb just type adb shell sh /system/sd/userinit.sh -s and see if the new values you put in are reflected in the output of that command
david1171 said:
when you put it back on the phone did you make sure to chmod 755 it after you put it back on the phone and reboot?
then to text it with adb just type adb shell sh /system/sd/userinit.sh -s and see if the new values you put in are reflected in the output of that command
Click to expand...
Click to collapse
delete this post; see below...
david1171 said:
when you put it back on the phone did you make sure to chmod 755 it after you put it back on the phone and reboot?
then to text it with adb just type adb shell sh /system/sd/userinit.sh -s and see if the new values you put in are reflected in the output of that command
Click to expand...
Click to collapse
this applies to tools and location of user.conf on cyanogen's roms ->
-transfer it to the root of your sdcard from your pc or mac to the g1.
-unmount sdcard from dropdown on the g1
-open up terminal on the g1
type and hit enter afterwards: cp /sdcard/user.conf /system/sd
type and hit enter afterwards: dos2unix /system/sd/user.conf
type and hit enter afterwards: chmod 664 /system/sd/user.conf
type and hit enter afterwards: exit
reboot
see this is my problem..it does not find it in system/sd...it is in system/bin so am i suppsed to copy it back to /system/bin or system/sd
and can someon explain what the difference is between chmod 664 and chmod 755 nd why i should do them
bonkasnucca said:
see this is my problem..it does not find it in system/sd...it is in system/bin so am i suppsed to copy it back to /system/bin or system/sd
and can someon explain what the difference is between chmod 664 and chmod 755 nd why i should do them
Click to expand...
Click to collapse
i think chmod 755 gives it read/write permissions. do not know about 664. try putting it in system/sd with adb then chmod 755 it and see if that works
david1171 said:
i think chmod 755 gives it read/write permissions. do not know about 664. try putting it in system/sd with adb then chmod 755 it and see if that works
Click to expand...
Click to collapse
775 = rwx-rwx-rx. conf file does not need executable in u-g nor x in o groups.
664 = rw-rw-r
if it is in /system/bin do this:
open up terminal
dos2unix /sdcard/user.conf
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/user.conf /system/bin
chmod 664 /system/bin/user.conf
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
exit
exit
reboot
a friend wanted myfaves but I know there is any easier way than to type mount -o rw,remount and the rest I've tried rwsystem and rosystem what am I not doing?
It says rwsystem is not found
you typing it into adb or the terminal?
RWSystem and ROSystem are custom scripts some devs are placing in their /system/bin. Find a build that has them (I think JAC's do) and then push them to the phone with
Code:
adb remount
adb push RWSystem /system/bin
adb push ROSystem /system/bin
adb shell
#cd system/bin
#chmod 0755 RWSystem
#chmod 0755 ROSystem
#exit
oh ok thanks for the help I appreciate it.
when I type it in it says permission denied. I used both ADB and terminal.
PlatinumMOTO said:
when I type it in it says permission denied. I used both ADB and terminal.
Click to expand...
Click to collapse
you must type "su" first and choose always allow when promted to grant root access.
I did. and I followed all the instructions here it still doesn't work.
do I need to reboot afterwards?
PlatinumMOTO said:
I did. and I followed all the instructions here it still doesn't work.
do I need to reboot afterwards?
Click to expand...
Click to collapse
you did make sure to chmod 755 them didnt' you
yep I used adb shell chmod 755.
and then used SU File Browser to chmod 755
it has already been said multiple time su has to be chmod 4755
but is as also to have these credentials: root.shell
mine was root.root so as a shell user you get an "access denied."
so a chmod root.shell /system/bin helps
after you need to re-chmod 4755 has it's loosing +s.
Also, if you pushed su to /data/local/bin, do this:
rm /data/local/bin/su
Because normal shell looks in /data/local/bin BEFORE /system/bin. It's part of the path.
thanx
my terminal now works as root
I've removed "m7" and "su" from /data/local/bin after root thanks to coolbits.
Hi.
I've tried many times to root my LG2X with Z4root, UniversalAndRoot, Visionary and SuperOneClick since I've bought it but it failed each time.
I've seen the [Root] topic in the developpement thread but I can't post there (less than 10 posts...) but I want to help someone to root his/her mobile.
I've searched a long time a good way to do so without SuperOneClick (which doesn't respond with Windows Seven or Ubuntu 11.04) but there is none.
There we go...
Disclaimer : I can't be responsible if you break your phone, cancel your warranty or launch your LG2X on the wall in rage.
If you want, there is already SuperOneClick which run smoothly for many geeks : LG2X SuperOneClick Forum and SuperOneClick Forum
My HTC Magic had been rooted with the command line and I've tried myself to do so with every bit of informations and tips I could find on Internet.
I recommand to test the SuperOneClick method and if it fails, come test this with a Linux terminal (psneuter, su-v2, busybox and the SuperUser.apk can be found in the SuperOneClick archive) :
Code:
adb push psneuter /data/local/tmp
adb push su-v2 /data/local/tmp
adb push busybox /data/local/tmp
adb shell
$ busybox chmod +x /data/local/tmp/psneuter
$ /data/local/tmp/psneuter
adb remount
adb shell
# busybox mv /data/local/tmp/su-v2 /system/xbin/su
# busybox chmod 6755 /system/xbin/su
# busybox chown 0.0 /system/xbin/su
# busybox cp /system/xbin/su /system/bin/su
# busybox chown 0.2000 /system/bin/su
# busybox cp /data/local/tmp/busybox /system/xbin
# busybox chmod 0755 /system/xbin/busybox
# busybox chown 0.2000 /system/xbin/busybox
# exit
adb install Superuser.apk
adb reboot
And... Normally you have permanent root on your LG2X.
You can check the files permissions with
Code:
ls -l /system/xbin/su /system/bin/su
-rwsr-sr-x root root 26264 2011-04-23 20:07 su
-rwsr-sr-x root shell 26264 2011-04-23 23:20 su
It seems that /system/xbin/su isn't necessary at all. The su command which gave you the root is the one in /system/bin/. And I had some problems with /system/xbin, I've deleted the folder (with rm /system/xbin or mv /system/xbin /dev/null, I can't recall) and applied mkdir on it again.
If this can be of help, I'll update this later.
thanks for the detailed instructions, but super one click definitely works with win7 (64bit too) as long as you have the right drivers installed
Thanks but with Windows Seven 64 bits, Linux ou Windows Seven 32 bits with Virtualbox I end up with "SuperOneClick doesn't respond" or stuck on with "chmod psneuter" (with the drivers properly installed).
It's only an alternative solution if SuperOneClick doesn't run properly for another guy.
Thanks a lot for that tips.
The problem I have now is that su isn't persistant.
When I use
$ su
It hangs up few seconds... and says "Permission denied"
I've used su-v2
Here are the su permission :
-rwsr-sr-x root shell 26324 2011-02-13 14:43 su
Is there a more up-to-date su, that will maybe fix the problem ?
Thanks.
EDIT :
Ok.
The wait time seems to come from SuperUser, I've removed it.
Now I have directly the "permission denied", and "stat failed with 2: No such file or directory" in the logcat.
Maybe that can help.
Hannes The Hun said:
thanks for the detailed instructions, but super one click definitely works with win7 (64bit too) as long as you have the right drivers installed
Click to expand...
Click to collapse
It didn't for me (after installing nightly 51)
With the step-by-step instructions I get "Failed to set prot mask (inappropriate ioctl for device)" when trying to execute psneuter.
Hi.
Sorry for the wait.
Have you resolved your problem with your rooting?
Hi Android Gurus,
I am new to android and rooting. I tried to follow the steps available in the xda forums to root my kindle fire HD 7". But instead of just executing the scripts, I chose to read the scripts and manually execute them comand by comand so I could learn. In the process I did what seems to be like a terrible mistake by setting the wrong permissions on /system/xbin/su like below instead of 06755
-rwxr-xr-x root root 380532 2013-01-03 00:24 su
Basically I cannot su anymore, hence I cannot mount the /system rw to modify su's permissions (sounds like a chicken-and-egg situation here).
I badly need help and appereciate if some of you can provide a way.
Thanks.
Root and Google Play for Amazon 7" Kindle Fire HD Software Version 7.2.3
xdajunior said:
Hi Android Gurus,
I am new to android and rooting. I tried to follow the steps available in the xda forums to root my kindle fire HD 7". But instead of just executing the scripts, I chose to read the scripts and manually execute them comand by comand so I could learn. In the process I did what seems to be like a terrible mistake by setting the wrong permissions on /system/xbin/su like below instead of 06755
-rwxr-xr-x root root 380532 2013-01-03 00:24 su
Basically I cannot su anymore, hence I cannot mount the /system rw to modify su's permissions (sounds like a chicken-and-egg situation here).
I badly need help and appereciate if some of you can provide a way.
Thanks.
Click to expand...
Click to collapse
So you can not perform:
adb shell chown 0.0 /system/xbin/su chmod 06755 /system/xbin/su
What happens when you attempt to run these commands? If not, your real option is to go to our thread
noted below and use Root MANY ANDROID! to fix it.
Help rooting
I get this. The problem is that I now have a read-only /system so I couldn't change owner/permissions.
[email protected]:/ $ chown 0.0 /system/xbin/su
Unable to chmod /system/xbin/su: Read-only file system
10|[email protected]:/ $
I also tried to copy su binary again to /data/local/tmp again to see if I can recreate su ownership/permission but I'm unable to do that as well
[email protected]:/data/local/tmp $ pwd
/data/local/tmp
[email protected]:/data/local/tmp $ ls -l
-rwxr-xr-x shell shell 1085140 2012-08-09 13:42 busybox
-rwxrwxrwx shell shell 91980 2008-02-28 22:33 su
[email protected]:/data/local/tmp $ chown 0.0 /data/local/tmp/su
Unable to chmod /data/local/tmp/su: Operation not permitted
Will redoing "Root MANY ANDROID!" solve this problem?
Root and Google Play for Amazon 7" Kindle Fire HD Software Version 7.2.3
xdajunior said:
I get this. The problem is that I now have a read-only /system so I couldn't change owner/permissions.
[email protected]:/ $ chown 0.0 /system/xbin/su
Unable to chmod /system/xbin/su: Read-only file system
10|[email protected]:/ $
I also tried to copy su binary again to /data/local/tmp again to see if I can recreate su ownership/permission but I'm unable to do that as well
[email protected]:/data/local/tmp $ pwd
/data/local/tmp
[email protected]:/data/local/tmp $ ls -l
-rwxr-xr-x shell shell 1085140 2012-08-09 13:42 busybox
-rwxrwxrwx shell shell 91980 2008-02-28 22:33 su
[email protected]:/data/local/tmp $ chown 0.0 /data/local/tmp/su
Unable to chmod /data/local/tmp/su: Operation not permitted
Will redoing "Root MANY ANDROID!" solve this problem?
Click to expand...
Click to collapse
xdajunior,
Yes, both Root MANY ANDROID! and Qemu will solve your issues. Then you can take a peek
inside the batch files to see how they get the job done. Since you are in a pickle, you
really need these utilities. Be sure you download these utilities from our site, there are
minor bugs in the original versions. If you have any questions, let me know, I love to
teach people and would be willing to offer you some free phone support. This time
would be spent teaching you some of the aspects of the Kindle and Android. I
will be around all day tomorrow, from 11am to 10pm PST GMT -8. Sorry for the
delayed repose I was on an emergency call most of the afternoon.