栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

2022ubuntu完美搭建ASOP源码编译环境(国内镜像)3--刷入手机

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

2022ubuntu完美搭建ASOP源码编译环境(国内镜像)3--刷入手机

刷入手机步骤

1.安装adb
2.找到镜像文件
3.进入fastboot
4.刷入system.img
5.开机

2.文件

out/target/product/sailfish

下的

huruwo@ubuntu:~/ASOP_8.0_r2/out/target/product/sailfish$ ls
android-info.txt                   installed-files.json      root
boot.img                           installed-files.txt       symbols
build_fingerprint.txt              kernel                    system
clean_steps.mk                     module-info.json          system.img
current_build_config.mk            obj                       system_other
data                               obj_arm                   system_other.img
dex_bootjars                       previous_build_config.mk  userdata.img
fake_packages                      ramdisk-recovery.img      vendor
gen                                ramdisk.img               vendor.img
installed-files-system-other.json  recovery
installed-files-system-other.txt   recovery.id
```

### 3.进入fastboot 页面


adb reboot bootloader


### 4.刷入系统

sudo apt install fastboot

fastboot flash system system.img 刷入系统


等待开机

```
fastboot flash system system.img 
target reported max download size of 536870912 bytes
erasing 'system_a'...
OKAY [  0.318s]
sending sparse 'system_a' 1/2 (517276 KB)...
OKAY [ 64.682s]
writing 'system_a' 1/2...
OKAY [  7.142s]
sending sparse 'system_a' 2/2 (445827 KB)...
OKAY [ 55.041s]
writing 'system_a' 2/2...
OKAY [  6.691s]
finished. total time: 133.874s
```

### 5.为什么刷入的是system.img 



System.img就是设备中system目录的镜像,里面包含了Android系统主要的目录和文件

也就是最核心的内容

### 6.补充 如何新增编译版本

比如我要编译user版本

https://blog.csdn.net/qq_35993502/article/details/118670355

编译配置文件新增一行即可

## img文件介绍

vendor.img             248M

userdata.img           149M

system_other.img     148M


ramdisk.img            1.8M

ramdisk-recovery.img   7.5M

system.img                 986M

boot.img                   29.8M
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/457721.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号