赞
踩
1.开机修改为:Permissive模式启动 2.在device/qcom/common/rootdir/etc/init.qcom.rc添加: 下边两种方式都可。 service test_service /system/bin/sh /system/bin/set.sh user root disabled oneshot on property:sys.boot_completed=1 start test_service exec /system/bin/sh /system/bin/test.sh 3.在/system/bin下set.sh和test.sh内容 set.sh #!/system/bin/sh touch /data/1111111111.txt test.sh touch /data/444444444.txt 4.Androoid.mk文件,将set.sh和test.sh拷贝到device/qcom/msmxxx目录下 device/qcom/msmxxx/msmxxx.mk PRODUCT_COPY_FILES += device/qcom/msmxxx/set.sh:system/etc/set.sh PRODUCT_COPY_FILES += device/qcom/msmxxx/test.sh:system/etc/test.sh 5.编译 # make bootimage -j16
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。