开发者

Converting an my service into System service

开发者 https://www.devze.com 2023-03-27 19:41 出处:网络
I have created a Service that needs PowerManager.reboot to reboot the system as and when required. Although I have added \"android.permission.REBOOT\" permission to my service Manifest file, call from

I have created a Service that needs PowerManager.reboot to reboot the system as and when required. Although I have added "android.permission.REBOOT" permission to my service Manifest file, call from my service fails to achieve the reboot, due to permission issues. How can I solve this permission problem. Will my servic开发者_开发百科e be able to call reboot method if it converted as system service. If so how to convert a service to system service?

Kindly help ! JSk


How can I solve this permission problem.

Write your own firmware and put your application in as part of that firmware.

If so how to convert a service to system service?

Rewrite the operating system, as system services are part of the operating system. Then, put your modified operating system in your modified firmware.

0

精彩评论

暂无评论...
验证码 换一张
取 消