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
Related
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.
Hi~
I have been trying to gain root privileges on the Samsung Note4 stock recovery mode.
I want to do several things to adb commands. But I can not gain root permission.
e.g, adb shell mount ...
I had to enter the adb shell su command, confirmed that normally are handled.
But when I enter a command that requires root privileges, permission denied message was output.
Is there any other way in the recovery mode to obtain root privileges?
I'll wait for answers.
I actually have got a prerooted business device by the device manufacture. Trough adb shell I’m instantly have su permissions without need to use the “su” command.
My app needs for certain operations root permissions. For instance, setting sim-pin by my app is possible, so it seems like, the app has all the root permissions.
My problem is: the app uses some shell commands. e.g. to set the systemtime. But that seems not to work.
On consumer devices like Samsung s4, after rooting the device and installing chainfire su app, setting the systemtime works fine.
My business device coming without preinstalled su-app, so I tried to install chainfire’s su app v 2.46 as a systemapp. But his app told me, my su binaries which comes from the prerooted device aren’t up to date.
So I tried to override them by chainfire’s su binaries to system/xbin, but after that, the su app told me there are no su binaries installed…
How can I execute shell commands from my app with root permissions?
hi
Did you poot afterwards? Look here poot.apk . If your device reboots it should have worked. Or... You can download the debian noroot app from google play store and just use the root terminal if you want to wait for (probably) nearly a 1gb app for only that purpose
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.
First I have googled until my fingers bled knowing the answer is out there and apologize in advance if it has been covered in these forums elsewhere.
I have an android appliance running 4.3, I have root access via adb shell. What I want to do is grant root access to the standard users so I have root access using telnet. This is NOT a phone, it will NOT be on the internet so I do not need to worry about root being open to the world. I just need to be able to shell into it and be able to run any command needed via the normal user in telnet. Changing the user permissions seems like an easy way but all linux style sudo and user commands fail (it's a very cut down install in this machine).
Any help would be appreciated,
J
Bump, Anyone?