S
S
Sergey2015-11-12 03:50:14
Android
Sergey, 2015-11-12 03:50:14

How to get root rights in ADB?

Good afternoon!
We have Nexus 5 on Android 6.0: stock firmware MRA58K, kernel from here , TWRP 2.8.7.1, SuperSU_v2.52.
When trying to get root from the console, we see the following:

cmd> adb root
adbd cannot run as root in production builds

Moreover, before that I installed both custom firmware and technical preview 6.0, and dropped to 5.0 - nothing helped.
On the Internet they write that you need to edit the default.prop file , which lies at the root. And do you need to unpack boot.img ? edit default.prop in it and pack and flash it back. But that didn't work either. Maybe he didn't do it right.
So how do you run the adb root command?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Chvalov, 2015-11-12
@sezavasasilov


try su command or sudo

L
leili, 2018-11-08
@leili

Hi all. I have a Chinese phone with a very exotic processor
a bunch of viruses already out of the box. I can’t root ((((
Neither su, nor sudo, nor root.
Here are my futile manipulations

users-iMac:motopocalypse user1$ ./adb devices
List of devices attached
64976194914246	device
users-iMac:motopocalypse user1$ chmod +x ./adb
users-iMac:motopocalypse user1$ chmod +x ./fastboot
users-iMac:motopocalypse user1$ ./adb kill-server
users-iMac:motopocalypse user1$ ./adb wait-for-device
* daemon not running; starting now at tcp:5037
* daemon started successfully
users-iMac:motopocalypse user1$ ./adb shell chmod 755 /data
chmod: chmod '/data' to 40755: Permission denied
users-iMac:motopocalypse user1$ ./adb shell chmod 755 /data/local/tmp/unlock
users-iMac:motopocalypse user1$ ./adb shell su -c /data/local/tmp/unlock
/system/bin/sh: su: not found
users-iMac:motopocalypse user1$ ./adb shell
[email protected]_h1_lt_fsp:/ $ ls data
opendir failed, Permission denied
1|[email protected]_h1_lt_fsp:/ $ ls                                                   
acct
bin
cache
charger
config
d
data
default.prop
dev
etc
file_contexts
fstab.sc8830
fstab.tc4_h1_lt_fsp
init
init.environ.rc
init.rc
init.recovery.tc4_h1_lt_fsp.rc
init.sc8830.rc
init.sc8830.usb.rc
init.storage.rc
init.tc4_h1_lt_fsp.rc
init.trace.rc
init.usb.rc
init.zygote32.rc
lib
mnt
oem
proc
productinfo
property_contexts
res
root
sbin
sdcard
seapp_contexts
selinux_version
sepolicy
service_contexts
storage
sys
system
ueventd.rc
ueventd.tc4_h1_lt_fsp.rc
vendor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question