简体   繁体   中英

Cannot be root on Android Emulator

I'm currently trying to develop an application for Android devices on an Android Emulator. I installed Android 4.3 on a VMWare Workstation, on a Windows 10 OS.

I want to test the app I'm developping on the Android emulator, so I have to create a bridge connection between my phyisical computer where I develop the aps, and the emulator, where I can test it. But when I try to create this bridge, I have to change settings and to be root of the emulator . When I try to do a 'su' command, I have the following error :

'su : uid 10000 not allowed to su'

I tried to follow this tutorial to give me the root acces of the emulator, but it didn't worked for me. The best answer is to execute this commands :

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system  
adb push su /system/xbin/su  
adb shell chmod 06755 /system  
adb shell chmod 06755 /system/xbin/su

How to get root access on Android emulator?

More over, When I did the installation of the Android Emulator, I've done the installation specifying the read-write option.

It is not working for me, because when I try the first row, I obtain this message :

ADB error : 'device not found'

Such as it is described in this link : How to fix: Error device not found with ADB.exe

But the answer exists for a phone, and not for an emulator. Do you know how to fix it ? How can I be root, and how can I found the 'device not found' ?

Here are the different parameters of the VM

su stands for super users which is available only on rooted device. it is more like using android application with administrator privilege.Try using BLuestacks rooted version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM