Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Problem with Android Oreo version #20

Open
Kush19 opened this issue Jan 30, 2018 · 10 comments
Open

Problem with Android Oreo version #20

Kush19 opened this issue Jan 30, 2018 · 10 comments

Comments

@Kush19
Copy link

Kush19 commented Jan 30, 2018

I'm running the app on Pixel which is running on Android Oreo, App doesn't list any secret codes but some codes like ##225## is run on dialer app the codes run fine. Is there an issue with the app which runs on Oreo devices??

@SimonMarquis
Copy link
Owner

SimonMarquis commented Jan 30, 2018

Please add a logcat trace of the app running on your device.

@Kush19
Copy link
Author

Kush19 commented Jan 31, 2018

Here is the logcat trace pixel.txt

@SimonMarquis
Copy link
Owner

I don't see the application starting from this logcat.
Maybe try to add a log to this line to see if the Crawler is detecting the apps correctly:

List<PackageInfo> pil = pm.getInstalledPackages(PackageManager.GET_INTENT_FILTERS);

@SimonMarquis
Copy link
Owner

It seems that the XML file parsed by the crawler ins't complete (missing the intent-filters).

@SimonMarquis
Copy link
Owner

I might want to use a third party library to crawl AndroidManifest files such as APKParser.

@Kush19
Copy link
Author

Kush19 commented Feb 1, 2018

But the problem is with only Pixel devices running on Oreo, other devices which are running on Oreo display the list of codes available but on clicking them throws an error as
Permission Denial: not allowed to send broadcast android.provider.Telephony.SECRET_CODE from pid=7666, uid=10097

@SimonMarquis
Copy link
Owner

Yeah, but I don't know why the parsing is no longer working.

The issue with secret codes that are not working from the app (what you describe on your last coment) is already known but can't be fixed. Some OS are blocking such broadcasts to be sent:

Permission Denial: not allowed to send broadcast android.provider.Telephony.SECRET_CODE from pid=17950, uid=10256
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.provider.Telephony.SECRET_CODE from pid=17950, uid=10256
   at android.os.Parcel.readException(Parcel.java:2004)
   at android.os.Parcel.readException(Parcel.java:1950)
   at android.app.IActivityManager$Stub$Proxy.broadcastIntent(IActivityManager.java:4491)
   at android.app.ContextImpl.sendBroadcast(ContextImpl.java:970)
   at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:437)
   at fr.simon.marquis.secretcodes.MainActivity.itemClicked(MainActivity.java:109)
   at fr.simon.marquis.secretcodes.SecretCodeAdapter$1.onClick(SecretCodeAdapter.java:67)
   at android.view.View.performClick(View.java:6294)
   at android.view.View$PerformClick.run(View.java:24770)
   at android.os.Handler.handleCallback(Handler.java:790)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:164)
   at android.app.ActivityThread.main(ActivityThread.java:6494)
   at java.lang.reflect.Method.invoke(Native Method)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

@jacobabrahamb4
Copy link

((TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE))
.sendDialerSpecialCode(code);

@SimonMarquis
Copy link
Owner

I don't think this will work since this API call requires to have carrier privileges or to be the default dialer app.

https://android.googlesource.com/platform/cts/+/master/tests/tests/telephony/src/android/telephony/cts/TelephonyManagerTest.java#554

@net91
Copy link

net91 commented Mar 15, 2019

Dear SimonMarquis,
I had same issue with Oreo device, is there any fix for this?
BRs


2019-03-15 18:17:24.415 1702-1797/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://4636 flg=0x10 } to com.android.settings/.TestingSettingsBroadcastReceiver
2019-03-15 18:17:24.415 1702-1797/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://4636 flg=0x10 } to com.google.android.dialer/com.android.voicemail.VoicemailSecretCodeReceiver
2019-03-15 18:17:24.416 1702-1797/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.provider.Telephony.SECRET_CODE dat=android_secret_code://4636 flg=0x10 } to com.google.android.dialer/com.android.incallui.answer.impl.hint.PawSecretCodeListener

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants