Permission Denial: Intent Service Mode

Asked

Viewed 16 times

0

I am trying to start the activity of an android system application but is occurring the following error. Apparently you need a permit, how can I get such permission ?

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cmp=com.sec.android.app.servicemodeapp/com.sec.android.app.modemui.activities.USBSettings} from ProcessRecord{633a89cd0 12695:com.frp.servicemode/u0a276} (pid=12695, uid=10276) requires com.sec.android.app.servicemodeapp.permission.KEYSTRING

this is the command I’m using to try to access.

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.sec.android.app.servicemodeapp", "com.sec.android.app.modemui.activities.USBSettings"));
     try{
         startActivity(intent);
     }catch (Exception e){
         Log.e("Error", e.toString());
      }
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.