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

SDK crashes when it starts executing USSD session on Android 12+ #69

Open
Mangielijah opened this issue Jun 15, 2022 · 5 comments
Open

Comments

@Mangielijah
Copy link

Mangielijah commented Jun 15, 2022

On android 12 and higher the hover SDK crashes and throws a security exception
java.lang.SecurityException: Permission Denial: android.intent.action.CLOSE_SYSTEM_DIALOGS broadcast from com.omenacle.payme (pid=16223, uid=10324) requires android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS. at android.os.Parcel.createExceptionOrNull(Parcel.java:2425) at android.os.Parcel.createException(Parcel.java:2409) at android.os.Parcel.readException(Parcel.java:2392) at android.os.Parcel.readException(Parcel.java:2334) at android.app.IActivityManager$Stub$Proxy.broadcastIntentWithFeature(IActivityManager.java:5722) at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1185) at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:479) at com.hover.sdk.utils.TimerSingleton$1.onTick(TimerSingleton.java:58) at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:145) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.wm.ActivityTaskManagerService.checkCanCloseSystemDialogs(ActivityTaskManagerService.java:3012) at com.android.server.wm.ActivityTaskManagerService.access$1100(ActivityTaskManagerService.java:297) at com.android.server.wm.ActivityTaskManagerService$LocalService.checkCanCloseSystemDialogs(ActivityTaskManagerService.java:5467) at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:13224) at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:12793)

you can find more info about why this error occurs here https://developer.android.com/about/versions/12/behavior-changes-all#close-system-dialogs

@Mangielijah
Copy link
Author

Any Help or Update with this error🙏🏾

@Mangielijah Mangielijah changed the title SDK crashes when it start processing a transaction SDK crashes when it starts executing USSD session on Android 12+ Oct 17, 2022
@EDUCRDC
Copy link

EDUCRDC commented Nov 15, 2023

C'est parce que je trouve que android 12+ ne laisse pas lire les sessions USSD

@EDUCRDC
Copy link

EDUCRDC commented Nov 15, 2023

This is because I find that android 12+ does not allow USSD sessions to be read

@Amein-Eskinder
Copy link

Amein-Eskinder commented Dec 27, 2023

@Mangielijah have you found fix for this issue yet?

it is giving me hard times

@ProsperChihimba
Copy link

I think the issue is Intent.ACTION_CLOSE_SYSTEM_DIALOGS is being used by HoverSDK

As of Android 12 (API Level 31) this requires a permission:
https://developer.android.com/reference/android/content/Intent#ACTION_CLOSE_SYSTEM_DIALOGS

Set your project's targetSdkVersion to 30, doing so puts your app into a backwards compatibility mode (targeted as Android 11) when running on Android 12 devices and will most likely bypass this issue.

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