Android Question How to add permission?

G-ShadoW

Active Member
Licensed User
Longtime User
Hello,
using this code I get Radio and phone info... but...

B4X:
Sub LaunchNetworkInfo
    Dim Intent As Intent
    Intent.Initialize("","")
    Intent.SetComponent("com.android.settings/.RadioInfo")
    StartActivity(Intent)
End Sub

on some phones I get this error

java.lang.SecurityException: Permission Denial: starting Intent { act= flg=0x20000 cmp=com.android.settings/.RadioInfo } from ProcessRecord{41ac8e48 14938:iteradio.de/u0a167} (pid=14938, uid=10167) requires com.sec.android.app.factorymode.permission.KEYSTRING
 

G-ShadoW

Active Member
Licensed User
Longtime User
Yes, I have add this permission already but error remian's.
Error is on Samsung mobile phone, even phone is rooted, it's still say "java.lang.SecurityException: Permission Denial:...."
 
Upvote 0
Top