[Q] adb shell $ instead of #, adb root cannot run - Galaxy S II Q&A, Help & Troubleshooting

I've followed the following thread CF-root 4.1.
Everything went fine and the kernel is rooted.
I can use apps which require root, like TitaniumBackup.
I also can use su to gain root privileges and also adb shell and then su. To make this more clear. I first get $ (user priv) and then with "su" i get # (root priv).
For this reason i can't use the adb push method, because i'm not root directly.
adb root which is suggested in a couple of threads isn't helping me. I get the following output. "adbd cannot run as root in production builds".
How can i fix it, so i can have root privileges directly when connecting via the adb shell?

You need an "insecure kernel" for that.
There are several for download in a thread in the dev section.
Why do you need ADB to be running as root for pushing, if you don't mind asking?

bla
HellcatDroid said:
You need an "insecure kernel" for that.
There are several for download in a thread in the dev section.
Why do you need ADB to be running as root for pushing, if you don't mind asking?
Click to expand...
Click to collapse
Many thanks for illuminating people in this situation!
Cuz it's obviously more comfortable to do stuff using the computer's keyboard.

Related

[Q] [Help/Q] Rooted, but adb is not recognizing su priviledges

Okay, my Atrix is rooted and USB Debugging is on, but when I try to remount adb, it says "remount failed: Operation not permitted". Since I can't get adb shell to the # to come up, I type "adb shell su" and I get a Permission denied. I originally rooted with SuperOneClick and enabled sideloading with it and today I rerooted, unrooted, then used DesignGears' new root script to reroot and clean up SuperOneClick's root. Still no adb root access. I have TitaniumBackup, Superuser, and RootExplorer installed and even downloaded Root Checker to check if i really had root. I've spent almost all day looking this up and the closest I've found is the thread that talks about adb showing the device offline with the fix of copying over another adbd to the sbin folder(which I also tried) and adb still doesn't seem to recognize my root. The only time I can get the # prompt is when I do a shell root with SuperOneClick, but that is just a temporary root. Is anyone else experiencing this?
Edit: forgot to mention that adb works fine when I connect my NexusOne, so it's probably not the computer.

Why can't fre3vo be run with a script using script manager?

Since we now have more than one solution that provides full root access between reboots, I figured I'd try writing a shell script to run fre3vo. I can... and it runs... but I get the message "this device is not supported by this exploit".
So why does it run from ADB and not a script? Does the phone have more rights/access when connected via ADB? If the script would work, we could write one that could run after every reboot (using script manager) and it'd be a permanent solution.
Mike
I am trying the same thing with the easyfre3vo package...Setting the root.redo.bat to 'run as root', and executing just seems to hang...
Any ideas?
Sent from my PG86100 using XDA App
What about that app "gscript lite", or " adb wireless"?
Sent from my 3rd Dimension of Evolution
ADB has different permissions compared to a terminal on the phone. A terminal emulator on the phone and/or a tool like Gscript doesn't have the ability to do anything in the /data/local/tmp directory like ADB does.
ADB over wifi needs root, so you can't use it to run fre3vo since you don't have root - you can use it AFTER you've run fre3vo though.

Help on how to do this commands !

Hello sir! I just wana ask question on how to run commands like this
su -c /system/etc/CrossBreeder/REMOVE_TETHER_BOOST
i've seen this in the Cross Breeder thread. I just wanna try it to reduce the lag on my phone and maybe also to speed it up!
but if i came across with this unexpected problems . i really dont know how to run this commands. so i just wanna ask . how do i run commands like that? THANKS IN ADVANCE
These commands are run via a terminal emulator on your phone. For this command, your phone have to be rooted.
Alternatively, you can use adb shell. To do so, you have to download the android sdk or google for adb for just downloading the relevant part of it, then you have to run adb root to get root privileges (the adb binary can be found under Path/to/Android-SDK/platform-tools) and adb shell to get a root shell. There you have to type in /system/etc/CrossBreeder/REMOVE_TETHER_BOOST (the su -c is not needed there because you already have root privileges).

Device rooted but no access to /data folder

I just used Odin3 v3.04 and CF-Root-SGS3-v6.4 to root my Samsung Galaxy S III. It seems root worked because CWM was installed and as i tried to execute it, i had to grant root rights to this app. But i can't execute adb root since its telling me "adbd cannot run as root in production builds". I can't access /data through ES Explorer on my phone either. Does anyone have a solution?
Djablos said:
I just used Odin3 v3.04 and CF-Root-SGS3-v6.4 to root my Samsung Galaxy S III. It seems root worked because CWM was installed and as i tried to execute it, i had to grant root rights to this app. But i can't execute adb root since its telling me "adbd cannot run as root in production builds". I can't access /data through ES Explorer on my phone. Does anyone have a solution?
Click to expand...
Click to collapse
Try by flashing this zip file from CWM: http://download.chainfire.eu/370/SuperSU/UPDATE-SuperSU-v1.80.zip
That may fix your issue..
EDIT: this wont flash any new app to your SGS3, it will flash updated su script.
suyash1629 said:
Try by flashing this zip file from CWM: http://download.chainfire.eu/370/SuperSU/UPDATE-SuperSU-v1.80.zip
That may fix your issue..
EDIT: this wont flash any new app to your SGS3, it will flash updated su script.
Click to expand...
Click to collapse
I get the following message when i start CWM:
After that i cant see any possibility to flash something (or i dont really know what else do you mean by "flash from cwm")
Djablos said:
I get the following message when i start CWM:
After that i cant see any possibility to flash something.
Click to expand...
Click to collapse
just press ok and then press reboot in recovery mode and flash it through there.. else press the combination of Volume up + Power + Home button to enter the recovery.. you nneed to flash it through there
suyash1629 said:
just press ok and then press reboot in recovery mode and flash it through there.. else press the combination of Volume up + Power + Home button to enter the recovery.. you nneed to flash it through there
Click to expand...
Click to collapse
Unfortunately It didn't fix my issue. It don't get any message for "adb root" and device is getting disconnected after that.
Code:
>adb devices
List of devices attached
4df1ec9f1b844f57 device
>adb root
>adb devices
List of devices attached
Still no luck for access to the folder from the phone.
Djablos said:
Unfortunately It didn't fix my issue. It don't get any message for "adb root" and device is getting disconnected after that.
Code:
>adb devices
List of devices attached
4df1ec9f1b844f57 device
>adb root
>adb devices
List of devices attached
Still no luck for access to the folder from the phone.
Click to expand...
Click to collapse
Go to developer options and enable root access to both apps and adb, this may fix that problem..
suyash1629 said:
Go to developer options and enable root access to both apps and adb, this may fix that problem..
Click to expand...
Click to collapse
Do you mean developer options of the phone? I can't find any options there regarding root access. I checked SuperSU app, but there is also only list of apps with root access and no possibilities to add apps.
Djablos said:
Do you mean developer options of the phone? I can't find any options there regarding root access. I checked SuperSU app, but there is also only list of apps with root access and no possibilities to add apps.
Click to expand...
Click to collapse
yes it should be in developer options of the phone, m not sure if its in stock firmware.. if there is no such option than first try adb shell and then su, than it will prompt to give root access to shell. have you tried doing that?
suyash1629 said:
yes it should be in developer options of the phone, m not sure if its in stock firmware.. if there is no such option than first try adb shell and then adb su, than it will prompt to give root access to shell. have you tried doing that?
Click to expand...
Click to collapse
Well now we're talking! I didn't know there is a possibility to gain root that way. Thank you for your help!
Djablos said:
Well now we're talking! I didn't know there is a possibility to gain root that way. Thank you for your help!
Click to expand...
Click to collapse
well thats nothing, but why do you want to do by using adb?
suyash1629 said:
well thats nothing, but what do you want to do by using adb?
Click to expand...
Click to collapse
I want to pull some apps to my PC to decompile them. I'm preparing myself for a seminar on my uni.
Djablos said:
I want to pull some apps to my PC to decompile them. I'm preparing myself for a seminar on my uni.
Click to expand...
Click to collapse
oh.. and as i said above to use adb shell and then adb su, that might too work but simply use su after adb shell, i dont know how i entered adb su.
suyash1629 said:
oh.. and as i said above to use adb shell and then adb su, that might too work but simply use su after adb shell, i dont know how i entered adb su.
Click to expand...
Click to collapse
Well, since i logged once with adb as root, the phone seems to give now permanently root access to adb. So i just used "adb pull /data/app/com...." with no problem.
Djablos said:
Well, since i logged once with adb as root, the phone seems to give now permanently root access to adb. So i just used "adb pull /data/app/com...." with no problem.
Click to expand...
Click to collapse
thats fine but next time you can also use su to be root user over adb.. maybe next time also adb root wont work and you have to use adb shell asnd su to be root user..
suyash1629 said:
thats fine but next time you can also use su to be root user over adb.. maybe next time also adb root wont work and you have to use adb shell asnd su to be root user..
Click to expand...
Click to collapse
Well to be precise, "adb root" still doesnt work, so i can gain root access only over shell->su. But it is completely sufficient for my purposes.
Djablos said:
Well to be precise, "adb root" still doesnt work, so i can gain root access only over shell->su. But it is completely sufficient for my purposes.
Click to expand...
Click to collapse
adb root is not working because root access to adb is not available from developers option, so thats only way to gain root access. And also best of luck for seminar..
suyash1629 said:
And also best of luck for seminar..
Click to expand...
Click to collapse
Thanks, I will definitely need some luck
Real Root
Real root is odin root!

Can't get ADB root access - What else could I try?

Hi there
I fiddle largely with MTK based phones and when I tweak a phone, I normally only need ADB root access. So my general process has been to:
1. OEM Unlock the device
2. unpack the boot.img and change the default.prop values (ro.adb.secure etc) to allow ADB root access.
3. Use ADB to get temporary write access using adb Root, then ADB remount Rw. Then you can pull and push files.
However I have an MT8735b, Android 7.0, Alps based device that will simply not give me ADB root access. so when I run "adb remount rw" or any of the equivalent shell scripts you can use instead, it just won't give me write access.
So I heard that newer phones based on these chipsets and also ones like 6737M are locking the device up in other ways.
My question is, does anyone have any ideas or knows anything I could try to get root access?
Any help is much appreciated.

Categories

Resources