Auto Start Permission not working on oneplus device
shaikhsiddik opened this issue · 3 comments
Hello every one, i need small favour so i'm trying to add permission for auto start but auto start screen not opening. if any one achieve the result on oneplus please help me. thanks in advance
It's currently searching for the package com.oneplus.security
which does not appear on my OnePlus 8 device.
I believe the auto-launch is configured with the package com.oplus.battery
and activity com.oplus.startupapp.view.StartupAppListActivity
.
However when I try to launch that Intent I get:
java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.oplus.battery/com.oplus.startupapp.view.StartupAppListActivity mCallingUid=10501 } from ProcessRecord{9d50baa 26557:net.focalist/u0a501} (pid=26557, uid=10501) requires oplus.permission.OPLUS_COMPONENT_SAFE
I tried adding <uses-permission android:name="oplus.permission.OPLUS_COMPONENT_SAFE"/>
to the manifest but that didn't work.