A
Android Central Question
I'm hitting a brick wall as I'm trying to root an android emulator on my mac.
I followed multiple tutorials, all of which involve the following steps:
- Installing adb (did it with homebrew)**
- Downloading and pushing Superuser.apk (done)**
- Downloading and pushing "su" (that's where the trouble comes)**
First tutorial told me to do the following:
adb push su /storage/sdcard0/
adb shell
su
the push went through no probs, but when I type su in the adb shell, it says it can't find su
shell@android:/ $ su
/system/bin/sh: su: not found
I tried to specify the path, but couldn't execute su from the sd card
127|shell@android:/ $ /storage/sdcard0/su
/system/bin/sh: /storage/sdcard0/su: can't execute: Permission denied
second tutorial told me to push su to /system/bin/ or /system/xbin
but that doesn't work because that file system is read-only
$ adb push su /system/xbin/
adb: error: failed to copy 'su' to '/system/xbin/su': remote Read-only file system
other tutorial told me to just run adb as root
adb root
adb shell
but when I do adb root, the device gets disconnected, and if I restart the device, the shell is not running as root
$ adb devices
List of devices attached
192.168.56.100:5555 device
$ adb shell
shell@android:/ $ exit
$ adb root
restarting adbd as root
$ adb shell
error: no devices/emulators found
I've done further research to understand how to make the file system writeable, but people say you have to have a rooted device to make it writeable
other findings were that the "su" doesn't work because your device has to be rooted for su to work
Essentially, it seems that you can't root your device unless it's rooted :headscratch:
please help
I followed multiple tutorials, all of which involve the following steps:
- Installing adb (did it with homebrew)**
- Downloading and pushing Superuser.apk (done)**
- Downloading and pushing "su" (that's where the trouble comes)**
First tutorial told me to do the following:
adb push su /storage/sdcard0/
adb shell
su
the push went through no probs, but when I type su in the adb shell, it says it can't find su
shell@android:/ $ su
/system/bin/sh: su: not found
I tried to specify the path, but couldn't execute su from the sd card
127|shell@android:/ $ /storage/sdcard0/su
/system/bin/sh: /storage/sdcard0/su: can't execute: Permission denied
second tutorial told me to push su to /system/bin/ or /system/xbin
but that doesn't work because that file system is read-only
$ adb push su /system/xbin/
adb: error: failed to copy 'su' to '/system/xbin/su': remote Read-only file system
other tutorial told me to just run adb as root
adb root
adb shell
but when I do adb root, the device gets disconnected, and if I restart the device, the shell is not running as root
$ adb devices
List of devices attached
192.168.56.100:5555 device
$ adb shell
shell@android:/ $ exit
$ adb root
restarting adbd as root
$ adb shell
error: no devices/emulators found
I've done further research to understand how to make the file system writeable, but people say you have to have a rooted device to make it writeable
other findings were that the "su" doesn't work because your device has to be rooted for su to work
Essentially, it seems that you can't root your device unless it's rooted :headscratch:
please help