简体   繁体   English

如何在构建源代码后安装Android

[英]How to install Android after building source code

I compiled source code referring to http://source.android.com/source/building-running.html and downloaded apt binaries for my Nexus 4g s .I did following after building: 我编译了源代码,参考http://source.android.com/source/building-running.html并下载了我的Nexus 4g s的二进制文件。我在构建之后做了如下操作:

fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot erase userdata
fastboot erase cache

Now, I cannot see anything on my phone. 现在,我的手机上看不到任何东西。 What could be wrong? 可能有什么不对? Wasn't the source I built suitable for my device? 不是我构建的适合我的设备的来源吗? But, I am pretty sure I have downloaded correct source code and binaries. 但是,我很确定我已经下载了正确的源代码和二进制文件。

To rescue your device back, use fast boot to flash the factory image back. 要恢复设备,请使用快速启动将工厂映像闪回。

To check why you have this issue, please check: 要查看您遇到此问题的原因,请检查:

  1. If you did not see ANYTHING after reboot, your boot.img (contains kernel) is not correct 如果重启后没有看到任何内容,则boot.img(包含内核)不正确
  2. If you just see the boot animation but it goes on forever, your system.img is not correct 如果您只是看到启动动画但它会永远持续,那么您的system.img不正确

You should: 你应该:

  1. Make sure you have download the correct source code and switch to the correct branch 确保已下载正确的源代码并切换到正确的分支
  2. Make sure you are using the correct build configuration by lunch and select correct product 确保您在午餐时使用正确的构建配置并选择正确的产品
  3. The AOSP does not contains everything, you have to download or pull out from your old system to get the proprietary binaries. AOSP不包含所有内容,您必须从旧系统下载或撤出才能获得专有二进制文件。

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

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