我寫了一個test.rc 放到了system/etc/init/這個目錄下面但是啟動不了服務
這個是test.rc 的代碼
service test_call_script /system/bin/sh /system/bin/test.sh
class core
user root
group shell
oneshot
on property:sys.boot_completed=1
start test_call_script
write /data/local/tmp/test 1
/data/local/tmp/test 這個檔案創建成功了,可是/system/bin/test.sh這個檔案里面創建的檔案沒有執行
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/281560.html
標籤:Android
