optimizely/android-sdk

Security Exception - permission.INTERACT_ACROSS_USERS

NoyaD9 opened this issue · 3 comments

We have quite lot of bugs although they are mostly coming from device identified by Crashlytics as Ulefone Armor 2 with Android 7.0

Caused by java.lang.SecurityException: get package info: Neither user 1310104 nor current process has android.permission.INTERACT_ACROSS_USERS.
at android.os.Parcel.readException + 1683(Parcel.java:1683)
at android.os.Parcel.readException + 1636(Parcel.java:1636)
at android.app.ActivityManagerProxy.bindService + 4506(ActivityManagerProxy.java:4506)
at android.app.ContextImpl.bindServiceCommon + 1508(ContextImpl.java:1508)
at android.app.ContextImpl.bindService + 1459(ContextImpl.java:1459)
at android.content.ContextWrapper.bindService + 636(ContextWrapper.java:636)
at com.optimizely.ab.android.datafile_handler.DefaultDatafileHandler.downloadDatafile + 95(DefaultDatafileHandler.java:95)
at com.optimizely.ab.android.sdk.OptimizelyManager.initialize + 329(OptimizelyManager.java:329)
at com.optimizely.ab.android.sdk.OptimizelyManager.initialize + 307(OptimizelyManager.java:307)
at de.is24.mobile.abtesting.OptimizelyXABTesting.init + 35(OptimizelyXABTesting.java:35)

Hi @NoyaD9 . Thank you for reporting the issue. What version of the SDK are you using? Also, what are your current user-permissions? We don't use the UserManager anywhere.

Hello Tom! The version we use is 3.1.1

Hi @NoyaD9,
It appears that your app maybe uses UserManager and that you would need to add that permission in that case because the datafile/application workspace is not shared across users.