Allowing access to USB debugging authorization dialog when in Lock Task Mode

111
May 07, 2021, at 5:30 PM

I'm using device owner to run an app in lock task mode.

However, when I connect a PC with adb, the USB Debugging Authorization permission dialog is never shown.After disabling lock task mode, the access request dialog appears as expected.

If I connect a PC that is already authorized its possible to use adb.

I'm aware there's the app whitelist for lock task mode, but I have no idea what package name for the USB Debugging Authorization permission would come under.

String[] whitelist = new String[]{getPackageName(),"com.android.systemui"};
mDevicePolicyManager.setLockTaskPackages(mAdminComponentName,active ? whitelist : new String[]{});

This question is very similar to Allowing access to USB device dialog when in Lock Task Mode and I've tried it - it works for other types of USB devices but not USB Debugging.

Rent Charter Buses Company
READ ALSO
Pagination in a Bootstrap Modal

Pagination in a Bootstrap Modal

I'd like to have pagination in a modal, such that when it refreshes the modal it would stays there

158
Creating text element in seperate cells across columns

Creating text element in seperate cells across columns

What I am trying to do is on button press I will add 4 text elements, each text element in its own cell; beneath its corresponding columnEg

32
groupBy array based on combination of 2 properties

groupBy array based on combination of 2 properties

I want to Group array elements based on combination of 2 properties

140