newbit1 / rootAVD

Script to root AVDs running with QEMU Emulator from Android Studio
GNU General Public License v3.0
1.45k stars 186 forks source link

The script doesn't check if it has permission to write. #90

Closed mio-19 closed 1 year ago

mio-19 commented 1 year ago

I used this script to root Huawei MobileAppEngine, which is basically an modified AVD.

In powershell

$env:ANDROID_HOME = "C:\Program Files\MobileAppEngine\EmulatorSdk"
.\rootAVD.bat "system-images\android-28\default\x86_64\ramdisk.img"

When I ran it in normal powershell, the script completed successfully but no file was changed. Then I ran it with admin priv, everything works perfectly.

newbit1 commented 1 year ago

dont use PS, take cmd. but this wont solve your admin rights issue.