If you got error on remount system partition then you need start AVD from command line. If you run Android above or equal 5.0, change set pie= to set pie=.pie. Do not forget specify necessary architecture and device: set adb=adb -s emulator-5558 and set arch=圆4. Rem ?b% shell mount -o remount,ro /system ?b% push %arch%/su%pie% /system/xbin/su Rem ?b% shell mount -o remount,rw /system Irvin H: Rooting the android emulator -on Android Studio 2.3((Android 4.4)įor AVD with 5.1.1 and 6.0 I used next script in windows: set adb=adb -s emulator-5558 Most content in reference was for older android versions and hence the reason for different commands and paths which I modified. ( Running the emulator just with emulator -avd doesn't launch the rooted version/copy or may lead to some error)Īlso for bootloop issues see the other post: Android Emulator: How to avoid boot loop after rooting? and updates thereof. This implies the only requirement to start the emulator is adding the -writable-system parameter to the normal emulator -avd command to start the emulator. Much like waking a physical from a sleep state, as opposed to booting Starting a virtual device by loading a snapshot is You can now save multiple AVD snapshots for a given deviceĬonfiguration and choose which of the saved snapshots to load when you Ideally it is more like hibernarig the virtual device with config intact, hence everything is preserved. With the emergence of emulator 27.3.x it now makes preserving root much easier through snapshot feature (if copying the system.img method isn't working): I have noted is is easier to obtain a temporary system image in Linux, than Windows. To have the root persist update su binary (using Normal method), then copy system.img from temp directory ( Users\AppData\Local\Temp\Android Emulator the file is usually randomly named e.g 1359g.tmp with a large size) and replace default system.img. Open any application requiring SU permissions just to double check and indeed SuperSU ask if you wish to grant it su permissions. Note: If you're experiencing bootloops, rather don't update the binaries, just use it as it is. Open SuperSU app and it may ask to update binaries, you can use Normal method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |