Skip to content Skip to sidebar Skip to footer

Allowing Access To Usb Device Dialog When In Lock Task Mode

I'm using device owner to run the app in lock task mode. However, when the app requests access to the USB device, the permission dialog is never shown. After disabling lock task mo

Solution 1:

Need to add com.android.systemui to the lock task mode whitelist

dpm.setLockTaskPackages(adminName, newString[]{mContext.getPackageName(), "com.android.systemui"});

Solution 2:

Put this package in your whitelist: "com.samsung.android.MtpApplication"

Post a Comment for "Allowing Access To Usb Device Dialog When In Lock Task Mode"