Getting root access over ADB on Android 7

Discuss Android on the Wandboard, as well as app development for or on the Wandboard.

Getting root access over ADB on Android 7

Postby borislip » Tue Oct 30, 2018 9:48 pm

I am trying to get root access over ADB on Android 7, which, surprisingly for me, no longer supports the "adb root" command (i remember using it on an older image, although, not sure which one). I'd like to achieve it on the stock image, without rebuilding it.

I've booted into the stock image ( ..., connected the serial console (which got root access), and attempted to manually setup the Chainfire su based on an old thread here (viewtopic.php?f=11&t=732&p=2938&hilit=root+access#p2938), this is what i did, from /data/local/tmp, with the latest Chainfire's zip unpacked there, which is, pretty much, a near-copy-paste from the mentioned thread:
Code: Select all
echo ++++++++++++++++++++++++++++++++++++++++++++
mount -o rw,remount /system
mkdir -p /system/bin/.ext
mkdir -p /system/etc/init.d

cp -f arm/su /system/xbin/daemonsu
cp -f arm/su /system/xbin/su
cp -f arm/su /system/bin/.ext/.su
cp -f common/Superuser.apk /system/app/Superuser.apk
cp -f common/ /system/etc/
cp -f common/99SuperSUDaemon /system/etc/init.d/99SuperSUDaemon
echo 1 | tee -a /system/etc/.installed_su_daemon

chmod 0777 /system/bin/.ext
chmod 06755 /system/bin/.ext/.su
chmod 06755 /system/xbin/su
chmod 0755 /system/xbin/daemonsu
chmod 0755 /system/etc/
chmod 0755 /system/etc/init.d/99SuperSUDaemon
chmod 0644 /system/etc/.installed_su_daemon
chmod 0644 /system/app/Superuser.apk

mount -o ro,remount /system
echo --------------------------------------------

An attempt to actually launch the SuperSU after a reboot has resulted in SuperSU complaining about su binary not being installed, with the brief SELinux related message, denying the SuperSU access to the su binary, visible in the serial console.

Being relatively unfamiliar with this kind of stuff i am waiting for suggestions :-(
Posts: 1
Joined: Tue Oct 30, 2018 9:31 pm

Return to Software - Android

Who is online

Users browsing this forum: No registered users and 14 guests