How to get a script in init.d to execute on boot in Android?

前端 未结 1 1700
遇见更好的自我
遇见更好的自我 2020-12-15 14:10

Part of my android app\'s functionality it to place a script I have written in init.d, so that it will be executed on every startup. (obviously my app is for root users only

相关标签:
1条回答
  • 2020-12-15 15:08

    Add something like this to your init.rc

    service script /system/etc/init.d/script
        oneshot
    

    There's no update-rc.d in Android because there's no SYSV init either.

    0 讨论(0)
提交回复
热议问题