Code for permission oppo cannot load app. Oppo phone cannot handle notification in background, but when I use these code it work well:
val POWERMANAGER_INTENTS = arrayOf(
Intent().setComponent(
ComponentName(
"com.coloros.safecenter",
"com.coloros.safecenter.permission.startup.StartupAppListActivity"
)
),
Intent().setComponent(
ComponentName(
"com.coloros.safecenter",
"com.coloros.safecenter.startupapp.StartupAppListActivity"
)
)
)
But this code cause my app cannnot load. it's make error like that:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.firebasesms.hong/com.firebasesms.hong.MainActivity}: java.lang.SecurityException: Permission Denial: starting Intent.......
Caused by: java.lang.SecurityException: Permission Denial: starting Intent ..... requires oppo.permission.OPPO_COMPONENT_SAFE
AndroidManifest
Code: Kotlin
Error: requires oppo.permission.OPPO_COMPONENT_SAFE