androidframeworksandroid-source

Build AOSP 13 for tablet emulator


What should be the lunch target to build AOSP 13 code for tablet emulator

I can launch phone emulator using lunch target sdk_phone_x86_64-userdebg.

But I want to build AOSP for tablet emulator


Solution

  • I think it's the same image, but different skin. That is, the tablet layout is determined by the size of the screen, not by a dedicated image.

    Therefore I would try:

    1. build AOSP as usual for sdk_phone_x86_64-userdebug
    2. Crate a new avd based on the system image you've built, with the appropriate display size avdmanager ... -skin 1080x1920 ... if the existing skins don't meet your requirements, you can create a new one, following the format here