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.
I tried to perform the Windows How To in page http://forum.xda-developers.com/showthread.php?t=1158400. How do I know I have super user access?
mcabrera1965 said:
I tried to perform the Windows How To in page http://forum.xda-developers.com/showthread.php?t=1158400. How do I know I have super user access?
Click to expand...
Click to collapse
open up an app that requires SU access and it will tell you it has been granted or that you dont have root access. also in adb after running the commands you can type "adb shell" and you should see a #
steal25 said:
open up an app that requires SU access and it will tell you it has been granted or that you dont have root access. also in adb after running the commands you can type "adb shell" and you should see a #
Click to expand...
Click to collapse
Yeah. What he said.
Now my phone is rooted, engineering boot ROM, with Cyanogenmod installed.
I'm wondering from a security standpoint, if someone happens to take my phone, and I happen to forget to disable USB Debugging, how can I make it harder to use ADB to reformat the phone?
By default, an ADB shell gives root access to the phone. How can you set the ADB shell to default to an unprivileged user that will have to 'su' in order to gain root access?
matkam said:
I'm wondering from a security standpoint, [...] How can you set the ADB shell to default to an unprivileged user that will have to 'su' in order to gain root access?
Click to expand...
Click to collapse
I'd really like to know this, too. :b
Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Thanks.
pradiptart said:
Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Click to expand...
Click to collapse
No way..
Root is required to install a package silently. ADB shell can't bypass this requirement.
SachinShekhar said:
No way..
Root is required to install a package silently. ADB shell can't bypass this requirement.
Click to expand...
Click to collapse
Not true. Sideloading apps via adb does not require a rooted device.
pradiptart said:
Hi,
I have connected to a android device by SSH.I have trying now to install package by using pm command.The problem is I am not root now as I am not able to be root now.So can I use the pm command and if not then is there any way to install a package silently by command line.
Kindly give some idea .....
Thanks.
Click to expand...
Click to collapse
If you're connected now, why not just try it?
SifJar said:
If you're connected now, why not just try it?
Click to expand...
Click to collapse
Thanks all for your valuable reply,
I will let you know about this..
Thnaks
Theonew said:
Not true. Sideloading apps via adb does not require a rooted device.
Click to expand...
Click to collapse
I've just tested:
Code:
adb push app.apk /sdcard_root/app.apk
adb shell
$ pm install /sdcard_root/app.apk
Yes, it works. It has installed the app SILENTLY. I wonder why it doesn't work programmatically.
SachinShekhar said:
I wonder why it doesn't work programmatically.
Click to expand...
Click to collapse
It would be quite a security problem if apps were able to silently install other apps, especially so easily.
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!