google / android-emulator-m1-preview

Apache License 2.0
1.84k stars 162 forks source link

Where is the emulator prebuilt source code? #12

Open lattice0 opened 3 years ago

lattice0 commented 3 years ago

I've send on twitter but seems that you're not active there anymore. I have a simple question:

https://android.googlesource.com/platform/prebuilts/android-emulator/+/refs/tags/android-11.0.0_r28/README says that the emulator prebuilt source is at https://android.googlesource.com/platform/external/qemu/ but it hasn't been updated since 6 years ago.

Where is the emulator prebuilt source code?

I've found your changes on twitter: https://android.googlesource.com/platform/external/qemu/+/aca144a9e9264b11c2d729096af90d695d01455d and it looks like nothing happens on master for years, but other branches are ok. Which branch should I pick to build the same emulator prebuitl that comes in Android Studio?

I've take a look into the tree of your modifications and it looks like qemu code. I'm having a hard time trying to figure out which part of the code is for qemu and which is for the emulator prebuilt, which I think is the frontend for Google's patched qemu. I've compiled an Android build and it generated lots of .img files. Then if I run emulator (defined in build/endsetup.sh), somehow the emulator executable is able to load the .img files and insert them into Qemu in the right way. I'm looking for that logic

741g commented 3 years ago

https://github.com/google/android-emulator-m1-preview#how-to-build-your-own-emulator