问题描述
我基于AOSP构建了一个自定义ROM(Nexus 6为7.0),我想将此ROM与SDK仿真器一起使用.我相信构建的午餐套餐是'aosp_x86_64-eng'
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. The lunch combo for the build is 'aosp_x86_64-eng' which I believe
应该在SDK模拟器上工作.但是,我没有在AVD Manager中看到用于指定自定义系统映像的选项.它只允许我使用Google列出的ROM.
should work on SDK emulator. However, I don't see an option in AVD Manager to specify my custom system image. It only allows me to use the listed ROMs from Google.
我尝试通过库存的Nexus 6 AVD复制自定义ROM的system.img,但此后模拟器无法启动.
I tried copying my custom ROM's system.img over the stock Nexus 6 AVD but the emulator doesn't launch after that.
请注意,在构建过程中生成的仿真器可以正常工作.但是构建是在服务器上进行的,因此我想将开发计算机上生成的ROM与我的SDK的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.
推荐答案
发现可以通过以下步骤完成.
Found out that it can be done using the following steps.
- 使用库存的AVD系统映像创建兼容的AVD.就我而言,我使用的是在x86_64 ABI上运行Nougat的Nexus 6的系统映像.
- 转到〜/.android/avd文件夹,然后找到您在上面创建的AVD的文件夹(例如〜/.android/avd/test.avd).将您的自定义system.img文件复制到该文件夹中.
- 运行模拟器!
当我第一次尝试它时,这对我不起作用,因为我选择了错误的基本映像(牛轧糖x86而不是x86_64).捕获是为了确保库存系统映像与您的构建完全兼容.
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). Catch is to make sure that the stock system image is fully compatible with your build.
这篇关于在模拟器上运行自定义Android ROM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!