标签:添加 rod service raw 开机启动 system nes 文件 mod
1.在xx/out/target/product/sabresd_6dq/root/init.rc中添加以下内容
==========================================
service android-user /system/etc/android-user.sh
class main
user root
group root
oneshot
========================================
2.重新编译boot.img //把init.rc文件编译到boot.img
cd xxx/out/target/product/sabresd_6dq
rm -rf boot*.img && rm recovery -rf && rm recovery*.img
cd xxx/
make bootimage BUILD_TARGET_DEVICE=sd
make recoveryimage BUILD_TARGET_DEVICE=sd
cd xxx/out/target/product/sabresd_6dq
simg2img system.img system_raw.img
3.挂载system_raw.img, 并编辑脚步文件
sudo bash
mount system_raw.img tmp/
touch tmp/etc/android-user.sh
chmod 777 tmp/etc/android-user.sh
标签:添加 rod service raw 开机启动 system nes 文件 mod
原文地址:https://www.cnblogs.com/newjiang/p/10439100.html