Replies: 2 comments 1 reply
-
|
实测a7pro可用 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
这空间不够是真离谱 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
有道x7 pro修改rootfs为ext4
本教程在fedora中操作,其它系统具体步骤可能不同
前提
步骤
查看a/b槽
在adb shell中:
找到
mount命令输出中,根目录对应的设备,与ls -l /dev/block/by-name中对应,例如:那么说明当前在b槽(接下来以b槽为例)
获取rootfs镜像
在pc中:
获取当前rootfs镜像(使用刷adb的全量镜像应该也行吧?)
重新打包
创建与mmcblk0p10同样大小的磁盘镜像:
或许搞一个字节数相同的文件然后
mkfs.ext4也行吧?没试过((挂载新旧镜像:
然后使用
cp复制:cp -a /mnt/old_img/* /mnt/new_img/卸载
将img写入设备
首先将img上传到设备:
使用
dd写入:dd if=/userdisk/img.imng of=/dev/mmcblk0p9 #这里注意写道另一个槽切换a/b槽
首先使用
rkdevtool解包一个更新包,在Android目录中会有一个install.img挂载:
将其中的
update_engine上传:在adb shell中完成切换:
重启设备,再次查看a/b槽,使用
df -T查看根目录文件系统,如果为ext4则修改成功如果根目录依然只读,使用
mount -o remount,rw /重新挂载Beta Was this translation helpful? Give feedback.
All reactions