UsbDeviceManager: Invoke accessoryAttached after ACTION_USER_UNLOCKED
ACTION_USER_UNLOCKED notifies whether the user has unlocked since boot.
UsbDeviceManager invokes accessoryAttached after
ACTION_LOCKED_BOOT_COMPLETED. Invoking accessoryAttached after
ACTION_USER_UNLOCKED will ensure that the resolveActivity of
UsbProfileGroupSettingsManager can match against apps in credential
encrypted storage as well.
ACTION_USER_UNLOCKED gets broadcasted even for swipe screen once the
phone boots to swipe screen. ACTION_USER_UNLOCKED also gets broadcasted
when no swipe screen or lock pattern/pin is set once the phone boots to
home screen.
Bug: 267226621
Bug: 73654179
Test: Connect source device with lock pattern and make sure that B&R
app loads without showing the "No installed apps" error once the
source device is unlocked.
Flag: com.android.server.usb.flags.check_user_action_unlocked
Change-Id: I0ab27b2103341ca99a65e3960daf1dbf70429042
Signed-off-by:
Badhri Jagan Sridharan <badhri@google.com>
Loading
Please register or sign in to comment