root_avd | Rooting the Android Studio AVDs | Android library
kandi X-RAY | root_avd Summary
kandi X-RAY | root_avd Summary
Rooting the Android Studio AVDs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of root_avd
root_avd Key Features
root_avd Examples and Code Snippets
Community Discussions
Trending Discussions on root_avd
QUESTION
So I am trying to root an emulator, My ultimate goal is to change the phone properties like device name, manufacturer/brand name, imei number etc. (modify build.prop) I have tried rooting using this method.
https://github.com/0xFireball/root_avd/blob/master/README.md
The root works fine, I am able to root and make changes to the build but when I try to restart it, the emulator gets stuck in the boot loop
https://github.com/idanr1986/cuckoo-droid/issues/4
and this answer https://android.stackexchange.com/questions/180468/android-emulator-how-to-avoid-boot-loop-after-rooting
Through which I realized that replacing the su file might fix the issue. I replaced it and I am able to reboot but when I do, the root is gone and the changes don't stick.
I am using x86 non gplay api version 25 Any help will be greatly appreciated
...ANSWER
Answered 2019-Sep-26 at 15:09Instead of rooting the emulator to change these properties. I extracted the system.img using Superr Kitchen tool.
Then deodexed the full ram. Extract the jar file(in this case framework.jar it contains telephony manager which has function for device imei) After that edited the smali files to return the desired value when device imei is called( alternatively you can edit the java file and convert it into smali) And then build it all back into the system.img using Superr Kitchen
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install root_avd
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page