Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AOSP - Building custom images and running them with Android emulator on SDK

I am currently building custom images using the Android Open Source Project. I would like to send these custom images (system.img, ramdisk.img, cache.img, etc.) to a friend so that he/she can run them without having to compile the entire AOSP branch. Note that they "do" have the latest official Android SDK (not AOSP).

Is there a way to do this? Ideally, I was hoping for some make target that already exists where I can simply run it (make avd-package) and an "avd" (or something close to it) would pop out so that I can just send it to my friend and have them type:

emulator -avd

Also, from my research, the fact that I want these images to be runnable by the normal Android SDK (not AOSP) might present a problem since the tools in the Android SDK are different than the ones in AOSP (e.g. qemu versions, etc.). Would I also need to send my friend the emulator binaries as well?

Thanks!

like image 912
Jon Avatar asked Apr 22 '17 01:04

Jon


People also ask

Does Google own Aosp?

Google oversees the development of the core Android open source platform and works to create robust developer and user communities. For the most part, the Android source code is licensed under the permissive Apache License 2.0, rather than a copyleft license.

Can you run Android Emulator on virtual machine?

Android Emulator allows you to run emulations of Android devices on Windows, macOS or Linux machines. The Android Emulator runs the Android operating system in a virtual machine called an Android Virtual Device (AVD). The AVD contains the full Android software stack, and it runs as if it were on a physical device.

What is Android SDK system images?

A system image is a copy of one version of the Android operating system. Each platform version contains the supported system images. You can also download system images later when creating Android Virtual Devices (AVDs) in the AVD Manager.


1 Answers

Yes, it is doable. You need to create some metadata and upload it to a public server so that your users can get the URL. This is the URL they can then enter in Android Studio for using it with the SDK Manager tool.

For full instructions follow the official docs here: https://source.android.com/setup/create/avd

like image 122
narko Avatar answered Nov 15 '22 01:11

narko