1.解包system.img在system/etc/目录创建adb.sh设置755权限①adb.sh内容#!/system/bin/sh wm size 1080x1920 wm density 480②设置755权限chmod 755 system/etc/adb.sh2.解包ramdisk.img在init.rc添加adb.sh启动服务末尾多留一行service adb_sh /system/bin/sh /system/etc/adb.sh user root group root seclabel u:r:shell:s0 oneshot on property:sys.boot_completed1 start adb_sh3.打包后刷入设备运行成功