NEXUS 4&5 刷5.1.1系统源码

ubuntu 18.04 android 系统 5.1.1系统
make 版本默认
jdk:open-jdk7 如果在同一个系统中系统多个 版本时,最好手动导入如:

export CLASSPATH=/home/haidragon/Desktop/java-7-openjdk-amd64/lib
export JAVA_HOME=/home/haidragon/Desktop/java-7-openjdk-amd64 
export PATH=$PATH:/home/haidragon/Desktop/java-7-openjdk-amd64/bin

可能也要导入:
export LC_ALL=C
同时最好更新下api :
 make update-api
编译的时候就是老报一个错:
AttributeError: 'JNIFromJavaP' object has no attribute 'fully_qualified_class'
解决是输入:
unset CLASSPATH 去掉变量 (好吧)
同时你应该已经安装各种依赖项目。看:https://blog.51cto.com/haidragon/2399947
报这个错如下:
NEXUS 4&5 刷5.1.1系统源码
解决是:
https://www.cnblogs.com/pngcui/p/5810956.html
NEXUS 4&5 刷5.1.1系统源码
但是我是cp 拷贝的。
NEXUS 4&5 刷5.1.1系统源码

haidragondeMacBook-Air:androidbuild haidragon$ adb devices
List of devices attached
047e3631ce95b902    device

haidragondeMacBook-Air:androidbuild haidragon$ adb shell
shell@mako:/ $ exit
haidragondeMacBook-Air:androidbuild haidragon$ adb shell
shell@mako:/ $ exit
haidragondeMacBook-Air:androidbuild haidragon$ export  ANDROID_PRODUCT_OUT=/Users/haidragon/Desktop/androidbuild/mako 
haidragondeMacBook-Air:androidbuild haidragon$ echo $ANDROID_PRODUCT_OUT
/Users/haidragon/Desktop/androidbuild/mako
haidragondeMacBook-Air:androidbuild haidragon$ adb reboot bootloader
haidragondeMacBook-Air:androidbuild haidragon$  fastboot flashall -w
--------------------------------------------
Bootloader Version...: MAKOZ30d
Baseband Version.....: M9615A-CEFWMAZM-2.0.1701.03
Serial Number........: 047e3631ce95b902
--------------------------------------------
Checking 'product'                                 OKAY [  0.000s]
Sending 'boot' (6402 KB)                           OKAY [  0.206s]
Writing 'boot'                                     OKAY [  0.358s]
Sending 'recovery' (6962 KB)                       OKAY [  0.238s]
Writing 'recovery'                                 OKAY [  0.405s]
Sending 'system' (349069 KB)                       OKAY [ 12.357s]
Writing 'system'                                   OKAY [ 22.412s]
Erasing 'userdata'                                 OKAY [  0.807s]
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 3449600 4k blocks and 863264 inodes
Filesystem UUID: 5229afe4-350b-4ae3-a775-aef6a4a9c153
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done   

Sending 'userdata' (3496 KB)                       OKAY [  0.112s]
Writing 'userdata'                                 OKAY [  0.189s]
Erasing 'cache'                                    OKAY [  0.040s]
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 143360 4k blocks and 35840 inodes
Filesystem UUID: 97729b31-4548-408c-96e7-79f6d7990d84
Superblock backups stored on blocks: 
    32768, 98304

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'cache' (208 KB)                           OKAY [  0.009s]
Writing 'cache'                                    OKAY [  0.019s]
Rebooting                                          OKAY [  0.002s]
Finished. Total time: 37.932s
haidragondeMacBook-Air:androidbuild haidragon$ 

有可能进不去,一直循环google等,双清下,或者重新刷机。

转载于:https://blog.51cto.com/haidragon/2403128

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值