[英]Running Custom Android ROM on Emulator
I built a custom ROM based out of AOSP (7.0 for Nexus 6) and I would like to use this ROM with SDK emulator. 我建立了一个基于AOSP的自定义ROM(Nexus 6的7.0),我想将这个ROM与SDK模拟器一起使用。 The lunch combo for the build is 'aosp_x86_64-eng' which I believe
我相信这个版本的午餐组合是'aosp_x86_64-eng'
should work on SDK emulator. 应该适用于SDK模拟器。 However, I don't see an option in AVD Manager to specify my custom system image.
但是,我在AVD Manager中看不到指定我的自定义系统映像的选项。 It only allows me to use the listed ROMs from Google.
它只允许我使用谷歌列出的ROM。
I tried copying my custom ROM's system.img over the stock Nexus 6 AVD but the emulator doesn't launch after that. 我尝试将我的自定义ROM的system.img复制到Nexus 6 AVD库存上,但之后仿真器没有启动。
Note that the emulator that gets generated during the build works fine. 请注意,在构建期间生成的模拟器工作正常。 But the build happens on a server, and I want to use the generated ROM on my development machine with my SDK's AVD Manager.
但构建发生在服务器上,我想用我的SDK的AVD Manager在我的开发机器上使用生成的ROM。
Found out that it can be done using the following steps. 发现可以使用以下步骤完成。
When I tried it for the first time this didn't work for me because I have chosen the wrong base image (Nougat x86 instead of x86_64). 当我第一次尝试它时,这对我不起作用,因为我选择了错误的基本图像(Nougat x86而不是x86_64)。 Catch is to make sure that the stock system image is fully compatible with your build.
Catch是为了确保库存系统映像与您的构建完全兼容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.