简体   繁体   English

Android使用AOSP源模拟失败

[英]Android emulate failed using AOSP source

I downloaded Android full sources 5.1, 6.0, 7.0 and built them. 我下载了Android完整源5.1、6.0、7.0,并进行了构建。 I tried to check if the builds worked using the android emulator in the SDK, but they all failed except version 5.1. 我试图检查使用SDK中的android模拟器是否可以正常进行构建,但是除了版本5.1以外,它们都失败了。 I replaced the original image files (system.img, ramdisk.img, and userdata.img) with newly built files, and then ran them. 我用新生成的文件替换了原始图像文件(system.img,ramdisk.img和userdata.img),然后运行它们。 However, the Android logo never appeared, and the OS didn't boot. 但是,Android徽标从未出现,并且操作系统无法启动。 I chose mini-emulator-arm-debug and the original emulator image of the same version and AOSP. 我选择了mini-emulator-arm-debug以及具有相同版本和AOSP的原始仿真器映像。

I don't know why android 5.1 boots but android 6.0 and 7.0 don't. 我不知道为什么android 5.1会启动,而android 6.0和7.0不会。 Has the method of executing the images in an emulator changed? 在模拟器中执行图像的方法是否已更改? Please help me. 请帮我。

  1. Building from source succeeds in all three cases. 从源头构建在这三种情况下都成功。
  2. On execution, the emulator screen shows only black. 执行时,仿真器屏幕仅显示黑色。 I tried to connect using adb shell but failed. 我尝试使用adb shell连接,但失败了。

Please try to run 请尝试运行

lunch full-eng

and when finished, run the emulator. 完成后,运行模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM