Building and Flashing AOSP for Device Nexus 5 hammerhead
来源:互联网 发布:为什么金九银十 知乎 编辑:程序博客网 时间:2024/05/22 17:27
墙内编译android6.0并烧进Nexus5的记录
引文
最理想的开发是,应用用自己写、Framework用自己定制的、内核用自己修改的。
多机型兼容性适配?说到底是体力活,不是本质的东西。
Refer to
http://saurabhsharma123k.blogspot.hk/2017/02/building-and-flashing-aosp-for-device.html
https://lug.ustc.edu.cn/wiki/mirrors/help/aosp
源码下载
https://lug.ustc.edu.cn/wiki/mirrors/help/aosp
下载驱动
https://developers.google.com/android/drivers#hammerheadm4b30z
cd android6 mkdir u cd uwget https://dl.google.com/dl/android/aosp/broadcom-hammerhead-m4b30z-21cf8433.tgzwget https://dl.google.com/dl/android/aosp/lge-hammerhead-m4b30z-520d054d.tgzwget https://dl.google.com/dl/android/aosp/qcom-hammerhead-m4b30z-d6c0fe26.tgztar -xvzf broadcom-hammerhead-m4b30z-21cf8433.tgztar -xvzf lge-hammerhead-m4b30z-520d054d.tgztar -xvzf qcom-hammerhead-m4b30z-d6c0fe26.tgzcd ..bash /u/extract-broadcom-hammerhead.shbash /u/extract-qcom-hammerhead.shbash /u/extract-lge-hammerhead.sh
检查vendor
文件夹是否存在
编译
. build/envsetup.shlunch #19make -j4
烧写
cd out/target/product/hammerheadadb reboot bootloader # 手机重启到维修界面fastboot flash boot boot.imgfastboot flash system system.img fastboot flash userdata userdata.imgfastboot flash recovery recovery.imgfastboot reboot
效果
adb shell screencap -p /sdcard/Download/11.pngadb pull /sdcard/Download/11.png .
PS:有一点问题,为什么kernel没有写我的名字呢?好像发现源码下面没有kernel的文件夹,后面在研究一下怎么换kernel
异常处理
1,没重启成功怎么办?
adb shell logcat
看看错误信息
2,重新刷回官方包的办法
wget https://dl.google.com/dl/android/aosp/hammerhead-m4b30z-factory-625c027b.zipunzip hammerhead-m4b30z-factory-625c027b.zipcd hammerhead-m4b30zadb reboot bootloader./flash-all.sh
阅读全文
0 0
- Building and Flashing AOSP for Device Nexus 5 hammerhead
- Building Android Kernel for the Nexus 5 — AOSP(6.0.1)
- Build aosp for Nexus
- Building and booting Nexus 5 kernel
- Ubuntu 14.04编译AOSP for Nexus/Pixel
- Building Kernels for Galaxy Nexus
- SD card boot and flashing tool for TI davinic DM368
- SD card boot and flashing tool for TI davinic DM368
- Installing Google Play Service and Google Apps on Nexus AOSP
- Building AOSP 4.4_r1.2 with efs tools on Nexus 7 Tablet
- Building Android for a new Mobile Device
- Tutorial for building J2EE Applications using JBOSS and ECLIPSE -5
- Linux Device Drivers 3rd Edition Building and Running
- OS building, emulator, and some device model in WINCE
- DaVinci Serial Boot and Flashing Beta
- building bootloader and kernel for pandaboard
- Patterns for Building and Deploying Microservices
- Building and running Node.js for Android
- Hbase的shell操作
- 关于AttributeError:'numpy.ndarray' object has no attribute 'index'
- 静态与非静态的方法或变量使用场合简要说明
- MathType如何输入任意长度的空格
- Minimum supported Gradle version is 3.3. Current version is 2.14.1.Please fix the project's Gradle s
- Building and Flashing AOSP for Device Nexus 5 hammerhead
- 逆序的三位数(c语言)
- java实现下载功能Controller层代码
- SpringCloud(第 054 篇)简单 Quartz-Cluster 微服务,采用注解配置 Quartz 分布式集群
- 错误1:malloc.c:2394
- Tensorflow: 保存和复原模型(save and restore)
- vue中npm run dev运行项目不能自动打开浏览器!
- Python数据抓取(2) —简单网络爬虫的撰写
- 支付倒计时