微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/ubuntu/355470.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐