- Download Command line tools only
- Inspired from emulator-install-using-avdmanager
Directory Structure
$ANDROID_SDK_ROOT/
├── bin/
├── build-tools/
| └── 35.0.0/
├── cmdline-tools/
| └── latest/
| | └── bin/
| | ├── avdmanager
| | ├── sdkmanager
| | ├── ...
| └── tools/
| └── bin/
| ├── avdmanager
| ├── sdkmanager
| ├── ...
|── emulator/
|── licenses/
|── platform-tools/
| ├─ adb
| ├─ fastboot
| ├─ ...
|── platforms/
| └─ android-35/
|── system-images/
| └─ android-35/
- Download and call init.sh to set PATH for SDK
bin/download.sh
source bin/init.sh
sdkmanager --list
sdkmanager --update
avdmanager list
- Install packages for Android
bin/install.sh tv_4k android-35 google_apis_playstore arm64-v8a
- Restart adb
bin/restart.sh
- Start emulator
bin/start.sh tv_4k
bin/start.sh tv_4k -no-boot-anim -debug init,metrics -timezone Europe/Warsaw
- Real Device
Enable Developer Mode
Enable Do not use lock screen
Enable Usb Debugging
Default Usb configuration = MIDI
Select Usb configuration = MIDI
Disable permission monitoring
You have to disable the PlayProtect from Play Store application, but that's not recommended at all.