Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required permission #4

Closed
SimonMarquis opened this issue Jan 6, 2015 · 4 comments
Closed

Missing required permission #4

SimonMarquis opened this issue Jan 6, 2015 · 4 comments
Assignees

Comments

@SimonMarquis
Copy link
Owner

On Samsung Galaxy Note 3, triggering a secret code leads to:

W BroadcastQueue: Permission Denial: broadcasting Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://4636 flg=0x10 } from fr.simon.marquis.secretcodes (pid=32415, uid=10238) requires com.sec.factory.permission.KEYSTRING due to registered receiver BroadcastFilter{4ba1968 u-1 ReceiverList{116b674e 755 system/1000/u-1 local:1f0a0249}}
W BroadcastQueue: Permission Denial: broadcasting Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://4636 flg=0x10 } from fr.simon.marquis.secretcodes (pid=32415, uid=10238) requires com.sec.testingsettings.permission.KEYSTRING due to receiver com.android.settings/.TestingSettingsBroadcastReceiver

It seems that Samsung devices requires these extra permissions:

  • com.sec.factory.permission.KEYSTRING
  • com.sec.testingsettings.permission.KEYSTRING

Declaring these permissions in the manifest may be enough.

@SimonMarquis SimonMarquis self-assigned this Jan 6, 2015
@ehooo
Copy link
Contributor

ehooo commented Mar 6, 2015

On LG G3

Permission Denial: broadcasting Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://762646427225 flg=0x10 } from fr.simon.marquis.secretcodes (pid=6387, uid=10174) requires com.lge.permission.LGHIDDEN due to receiver com.lge.hiddenmenu/.fake_roaming.FakeRoamingBroadcastReceiver

@ehooo
Copy link
Contributor

ehooo commented Mar 6, 2015

Have you try used this method for bypass the restrictions?

String secretCode = "123456789";
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:##" + secretCode + "##"));
startActivity(intent);

@SimonMarquis
Copy link
Owner Author

No, I never tried.
I'm using broadcasted intents:

sendBroadcast(new Intent("android.provider.Telephony.SECRET_CODE", Uri.parse("android_secret_code://" + code)));

@veonua
Copy link

veonua commented Sep 27, 2015

  • another samsung

com.sec.android.app.servicemodeapp.permission.KEYSTRING

@SimonMarquis SimonMarquis closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ehooo @veonua @SimonMarquis and others