Running images as emulator on separate machine

90 views
Skip to first unread message

Patrick Chung

unread,
Aug 30, 2021, 3:09:50 PM8/30/21
to Android Automotive OS Discussion Group
Hello,

I'm wondering if anyone can point to me in the right direction here.

I'm building AAOS on an EC2 on AWS. I want to share this build as an emulator to run on separate machines (some Macs, some Ubuntu). The instructions I've seen simply say to enter "emulator" after a successful build. However, since I'm on a separate computer which built the images, I'm wondering what environment variables (or arguments to pass to "emulator") to get this working on a machine that wasn't used to do the build. Is this even possible?

Thanks in advance.

- Patrick

Andrey Ershov

unread,
Aug 31, 2021, 8:46:06 AM8/31/21
to Android Automotive OS Discussion Group, patric...@vw.com
Not sure what EC2 is, but, briefly, you can build emulator images on AWS, and than copy them to another machine, and run using Android emulator included in Android SDK.

My experience, probably is not the most correct one, but I did the following:
1. installed Android SDK
2. using sdkmanager, installed emulator, system images for similar platform (P or Q or R or whatever)
3. created similar structure in another folder, corrected the xmk file, copied images produced by the build procedure (but you need to rename system-qemu.img to system.img and vendor-qemu.img to vendor.img)
4. using avdmanager, created a virtual device based on the new images
5. run images using emulator.

The procedure probably can be improved:
* instead of item 3, when you run emulator, you can specify path to the system image, vendor image and so on. But this approach looks working only for emulator provided by the SDK.
* in Android S, Google introduced some scripts to pack the image as AVD. You can try to search this in the tree. 

понедельник, 30 августа 2021 г. в 22:09:50 UTC+3, patric...@vw.com:
Reply all
Reply to author
Forward
0 new messages