judemanutd / AutoStarter

This library helps bring up the autostart permission manager of a phone to the user so they can add an app to autostart.
MIT License
626 stars 115 forks source link

getAutoStartPermission method throws exception #91

Open mianaliasjad opened 1 year ago

mianaliasjad commented 1 year ago

I am seeing some crashes on crashlytics.

On Huawei devices:

Fatal Exception: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.huawei.systemmanager/.startupmgr.ui.StartupNormalAppListActivity } from ProcessRecord{6d7c25 11677:com.abc/u0a756} (pid=11677, uid=10756) requires com.huawei.permission.external_app_settings.USE_COMPONENT

So the intent that is opened inside this method should be called using try catch.

e-nikolay-minsk commented 11 months ago

Will there be some solution for this problem?