1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
## Minimal AVD guide
With this simple guide you'll be able to
* Create an AVD (Android Virtual Device) that doesn't need virtualization (see `#troubleshooting/virtualization`)
## Notes
###### 1. Do this after installing the [Android SDK](https://developer.android.com/studio)
###### ..so when I say `/` what I mean is your AndroidSDK directory (i.e. `/emulator/` = `$AndroidSDK_Installation_Dir/emulator/`)
###### 2. I only tried it on Windows but I suppose it won't be that different on Linux-based OSs too (_I will update this guide in case I find any differences_)
###### 3. BTW, I typed `/` for the dirs instead `\` because I primarily use ps7 and yeah, I'm used to `/` because unix fine shyt
## Installation
First of all, to create an AVD you'll need to decide on,
* The Android version (In the following examples I'm gonna be using Android 15 x86_64),
* The device/skin (In the following examples I'm gonna be using `pixel_2_xl`)
First of all, go to `/cmdline-tools/latest/bin/` \
Then you gotta download the actual image, to do that run: \
`./sdkmanager "system-images;<android-API-level>;default;<android-architecture>"`
###### Replace <android-API-level> and <android-architecture>, for example if you want to install Android 15 x86_64, use `"system-images;android-35;default;x86_64"`
Next you'll actually create the AVD, to do that run: \
`./avdmanager create avd -n Android15_Pixel2 -k "system-images;android-35;default;x86_64" --device "pixel_2_xl"`
\
**Done!**
\
\
Then to actually boot the AVD, you'll go to `/emulator/` \
and run: `./emulator -avd Android15_Pixel2` _# replace <name> with the name you gave, for me it was 'Android15_Pixel2-XL'_
## \#troubleshooting
## Force enable/disable CPU virtualization
When booting the AVD, add the either one of the following parameters: \
`-accel off` (to disable) or `-accel on` (to enable) virtualization.
## Force GPU/CPU rendering
When booting the AVD, add the either one of the following parameters: \
`-gpu swiftshader_indirect` (for CPU render) or `-gpu host` (for GPU render), \
**Note: I highly recommend using `-gpu auto` (or not parsing `-gpu` at all to do the same) so that it just does its thing :3**
|