Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 13a316b1 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Shubhankar Mishra
Browse files

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: default avatarBadhri Jagan Sridharan <badhri@google.com>
parent 9ed8c2c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment