ubuntu12.04编译android4.4.4_r1并烧录到nexus5

下载源码

https://pan.baidu.com/s/1qWpCAhY#list/path=%2FAndroid%E6%BA%90%E7%A0%81

搭建编译环境
编译
刷机

https://developers.google.com/android/drivers
adb reboot bootloader
手机重启 进入页面
fastboot flashall -w 烧录
< waiting for device >
可能是fastboot权限不足
fastboot -l devices
no permissions fastboot usb:1-1
于是知道是因为权限问题,是fastboot没有权限, 解决步骤:
1. 将fastboot的所有者属性改成root
用which fastboot命令找到fastboot所在的目录,然后进入此目录;再用命令chown改其属性:
sudo chown root:root fastboot
2. 将其权限更改一下:
sudo chmod +s fastboot
fastboot -l devices
???????????? fastboot usb:1-1

fastboot flashall -w

Bootloader Version…: HHZ11k
Baseband Version…..: M8974A-2.0.50.1.16

Serial Number……..: 0675af320acdb3b7

checking product…
OKAY [ 0.100s]
sending ‘boot’ (8700 KB)…
OKAY [ 1.300s]
writing ‘boot’…
FAILED (remote: not supported in locked device)
finished. total time: 1.893s

http://bbs.gfan.com/android-2119762-1-1.html
http://jingyan.baidu.com/article/a3a3f8118599438da2eb8afd.html

fastboot oem unlock

archur@ubuntu:~/android-4.4.4_r1$ fastboot flashall -w

Bootloader Version…: HHZ11k
Baseband Version…..: M8974A-2.0.50.1.16

Serial Number……..: 0675af320acdb3b7

checking product…
OKAY [ 0.100s]
sending ‘boot’ (8700 KB)…
OKAY [ 1.300s]
writing ‘boot’…
OKAY [ 0.746s]
sending ‘recovery’ (9284 KB)…
OKAY [ 1.394s]
writing ‘recovery’…
OKAY [ 0.780s]
erasing ‘system’…
OKAY [ 1.121s]
sending ‘system’ (291004 KB)…
OKAY [ 36.485s]
writing ‘system’…
OKAY [ 21.446s]
erasing ‘userdata’…
OKAY [ 8.092s]
formatting ‘userdata’ partition…
Creating filesystem with parameters:
Size: 13725835264
Block size: 4096
Blocks per group: 32768
Inodes per group: 8144
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 3351034
Block groups: 103
Reserved block group size: 823
Created filesystem with 11/838832 inodes and 93654/3351034 blocks
sending ‘userdata’ (137318 KB)…
writing ‘userdata’…
OKAY [ 26.867s]
erasing ‘cache’…
OKAY [ 0.648s]
formatting ‘cache’ partition…
Creating filesystem with parameters:
Size: 734003200
Block size: 4096
Blocks per group: 32768
Inodes per group: 7472
Inode size: 256
Journal blocks: 2800
Label:
Blocks: 179200
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/44832 inodes and 5813/179200 blocks
sending ‘cache’ (13348 KB)…
writing ‘cache’…
OKAY [ 3.147s]
rebooting…

finished. total time: 102.643s

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...