SecurityException in Samsung Android 7,8, and 9 devices

113 views Asked by At

I am getting

Fatal Exception: java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS

Does anyone know how to fix this?

It is happening on Samsung Galaxy devices Android 7,8, and 9 devices only.

1

There are 1 answers

1
Ayushi Khandelwal On

Add a check before reportFullyDrawn is called

 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) 
 {
     activity.reportFullyDrawn() 
 }