Recovery Mode - ADB Shell - No root permission [Archive] - Samsung Galaxy S Forums : Galaxy S2 S II Forum

: Recovery Mode - ADB Shell - No root permission



rizi
09-25-2010, 07:29 AM
Hi, I f***ed up my SGS by installing a theme.
I created a backup of the files, overwritten by the theme.

The problem is I can not start my SGS anymore.
So I started into Recovery mode and conntected to the SGS via ADB Shell.
everything is working there but when I say su I got the error: permission denied.
And yes my phone is rooted and I also installed apps which needed root permissions.

How do I get root permissions in the adb shell during recovery mode?

br
rizi

abhiraj
09-25-2010, 09:18 AM
hey i would suggest u to flash it thru odin
or if u dont want to do so enter recovery thru 3 button tric n try it

rizi
09-25-2010, 09:25 AM
hey i would suggest u to flash it thru odin
or if u dont want to do so enter recovery thru 3 button tric n try it

Hi, of course its possible to flash it again with Odin, but all Settings/Apps and so on will be lost.

So I entered already recovery thru 3 button tric, and in the recovery I conntect with adb to my phone.
That works great, but I have to overwritte two files in /system/framework and I got permisson denied <-- therefore I want to gain root permissions.
Is there no way to get root permissions in adb via recovery mode ?

When my phone was running and I connected via ADB, Ninja asked me if I want to allow root permissions, I clicked Yes, so with a running phone I can get root permissions over ADB, in recovery mode its not possible for me.

Any suggestions?
thx
rizi

tiptronic
09-25-2010, 09:37 AM
Ah, when you say "when I say su I got the error: permission denied." in previous post, I thought you mean as soon as you type "SU", you get access denied.


That works great, but I have to overwritte two files in /system/framework and I got permisson denied <-- therefore I want to gain root permissions.
Are you on JPK? Samsung has decided to mount /system as read-only, maybe for security purpose. Samsung might not change it back as this is read-only to other android device too.

If you'll have to change files in /system you've to type the following command to remount /system as read-write:
busybox mount -o remount,rw /system

rizi
09-25-2010, 09:41 AM
Ah, when you say "when I say su I got the error: permission denied." in previous post, I thought you mean as soon as you type "SU", you get access denied.


Are you on JPK? Samsung has decided to mount /system as read-only, maybe for security purpose. Samsung might not change it back as this is read-only to other android device too.

If you'll have to change files in /system you've to type the following command to remount /system as read-write:
busybox mount -o remount,rw /system

Hi,
I am on JM8.
I thought I need to have root permissions to remount /system?
I will try it..

Thx for the fast reply
rizi

tiptronic
09-25-2010, 09:46 AM
I havn't tried JM8, but if you only get access denied when modifying the '/system', chances are it is marked as read-only. If you have not got root access, you will already get access denied message as soon as you type in 'su'.

rizi
09-25-2010, 10:26 AM
Unfortunately it says busybox not found:
I did the following
1) start into recovery mode (Volume Up + Home + Power)
2) Connected the phone to my laptop
3)started a command line(in Windows) an navigated to androidSDK/tools
4)typed: adb shell
5.)typed: busybox ......

Busybox could not be found..

If I connect my phone during its running and do the following:
2) Connected the phone to my laptop(USB Debugging enabled)
3)started a command line(in Windows) an navigated to androidSDK/tools
4)typed: adb shell
5.)typed: busybox ......
It shows me the parameter of busybox...

Any ideas, why its not working during recovery mode?

thx
rizi

tiptronic
09-25-2010, 11:17 AM
Try this: After "adb shell", do "su" first before you do the busybox command.

rizi
09-25-2010, 01:23 PM
Try this: After "adb shell", do "su" first before you do the busybox command.

Sorry tiptronic, I missunderstand you, because when I am in recovery mode (Home Up + Home + Power) and I type: adb shell, and then su, I got permission denied.
I also got permission denied when I want to copy something in the /system directory.

So the question is why do I get permissions denied in the recovery mode???
Because when my phone is running and i type: adb shell, and then su --> I get the root permission!!

thx for your help
rizi

tiptronic
09-25-2010, 01:56 PM
So the question is why do I get permissions denied in the recovery mode???
I am not sure why as I can access to the su while I am in recovery mode, could it be the problem of files in /system/framework? If you still got the update.zip in your internal sd card when you rooted your phone, maybe you can re-apply it again and see if you can gain access to su again? If that still doesn't work, I can only suggest re-flash as I don't think factory reset to help if you can't even reboot your phone. :(

ps. I had the same problem while messing with the framework-res.apk for the battery status icons. End up I have to reflash the bloody thing again. Luckly I have everything backup in titanium so it is not so bad for me to reflash.

rizi
09-25-2010, 09:31 PM
thx tiptronic for your help, I also messed up with the framework-res.apk(wich was part of a theme).
I had to reflash with Odin and now everything is working fine, I also created a backup for the next time ;)

I checked if I can get root permissions or write to /system/framework during recovery mode now and its still not working.
Maybe thats a limitation of adb/recovery mode or how the rooting is archived.

br
rizi

tiptronic
09-28-2010, 12:48 PM
You can definitely have root access in recovery mode as I can access both SU and Busybox command in the recovery mode. I am not quite sure why yours not working, have you tried XDA Forum?

rizi
09-28-2010, 01:53 PM
You can definitely have root access in recovery mode as I can access both SU and Busybox command in the recovery mode. I am not quite sure why yours not working, have you tried XDA Forum?

Haven't tried XDA Forum yet, how have you rooted your SGS?
I used the One Click Lag Fix v2 - App.

Br
rizi

tiptronic
09-28-2010, 02:10 PM
I was using the kernal swapped method as this is the only way to root Froyo rom at the moment. You can try the rooting guide by soraxd (http://samsunggalaxysforums.com/showthread.php/365-Detailed-guide-on-rooting-the-Galaxy-S). Although the version of the Superuser and Busybox will probably out of date but you can always update it from market.