开发者

How to disable all the autostarting apps

开发者 https://www.devze.com 2023-02-09 08:36 出处:网络
How I can programmatically find the list of appl开发者_JAVA技巧ications that starts on device startup. Is there any way to programmatically disable autostarting applications you don\'t need.

How I can programmatically find the list of appl开发者_JAVA技巧ications that starts on device startup. Is there any way to programmatically disable autostarting applications you don't need.

Thanks


Other than removing the offending applications, there's no way to do that.

The API says the system has to honor requests for the BOOT_COMPLETED broadcast that any application puts in its manifest. Since there are uses for BOOT_COMPLETED beyond starting long-running services, shutting off that mechanism would break the API and cause some programs to malfunction.

Edit to answer the first part of the question: The PackageManager can get you a list of all receivers that can receive the broadcast, but you're still powerless to do anything about it.

0

精彩评论

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