Easy way to install root on Android Studio AVD. Tested on Ubuntu.
- Kotlin
- Android SDK
- Create an AVD targeting any Android version without Google Play
- Change script permission
chmod +x root.kts
- Run the Kotlin Script
kotlinc -script root.kts
and follow instructions