sumup / sumup-android-sdk

Sample App for the SumUp Android SDK
Other
100 stars 29 forks source link

Application Crash in com.sumup.merchant.reader.helpers.BluetoothHelper.disableBluetooth #172

Open radumaerza opened 2 years ago

radumaerza commented 2 years ago

It sounds like a problem with enterprise android accounts. Maybe you could try to make some checks inside of that or make sure that the SDK has this permission by requesting it if necessary.

image

Fatal Exception: java.lang.SecurityException
Permission Denial: broadcast from android asks to run as user 0 but is calling from uid u10a271; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
android.os.Parcel.createExceptionOrNull (Parcel.java:2373)
android.os.Parcel.createException (Parcel.java:2357)
android.os.Parcel.readException (Parcel.java:2340)
android.os.Parcel.readException (Parcel.java:2282)
android.bluetooth.IBluetoothManager$Stub$Proxy.disable (IBluetoothManager.java:691)
android.bluetooth.BluetoothAdapter.disable (BluetoothAdapter.java:1411)
com.sumup.merchant.reader.helpers.BluetoothHelper.disableBluetooth (SourceFile:10)
com.sumup.merchant.reader.helpers.BluetoothStateChangeHelper.toggleBluetooth (SourceFile:4)
com.sumup.merchant.reader.troubleshooting.ui.PinPlusBtToggleFragment$1.onClick (SourceFile:10)
android.view.View.performClick (View.java:7461)
android.view.View.performClickInternal (View.java:7438)
android.view.View.access$4000 (View.java:815)
android.view.View$PerformClick.run (View.java:28396)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loop (Looper.java:223)
android.app.ActivityThread.main (ActivityThread.java:7868)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:981)
Caused by android.os.RemoteException
Remote stack trace: at com.android.server.am.UserController.handleIncomingUser(UserController.java:1940) at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:16442) at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:16398) at com.android.server.am.ActivityManagerService.broadcastIntentWithFeature(ActivityManagerService.java:17218) at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1148)