Following the directions to build AOSP, everything seems to go fine. I run:
. ./build/envsetup.sh lunch sdk_phone_x86_64-userdebug make m
That seems to go fine.
Then the instructions say simply to run
user@hostname:~/WORKING_DIRECTORY$ emulator INFO | Android emulator version 126.96.36.199 (build_id 9070145) (CL:N/A) ERROR | No AVD specified. Use '@foo' or '-avd foo' to launch a virtual device named 'foo' user@hostname:~/WORKING_DIRECTORY$ emulator -list-avds
Nothing is listed. So I feel like the instructions are missing a step? How do I create an AVD?
So, I found some more instructions that say:
avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"
But I'm not sure where the
system[...] came from, but more importantly when I try that:
avdmanager: command not found
So again, I feel I'm missing a step.
I'm looking for a COMPLETE set of steps, from soup to nuts, to compile AOSP and run the emulator. I would like to do this from the command line and avoid having to install Android Studio.
Details on my machine:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy