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

Commit b528dfdb authored by George Chan's avatar George Chan
Browse files

Refactor USB data protection unlock logic to use KeyguardLockedStateListener as well.

This change replaces the use of `ACTION_USER_PRESENT` broadcast with the `KeyguardLockedStateListener` to detect when the device is unlocked. The logic for enabling USB data after the first unlock is now handled within the `onKeyguardLockedStateChanged` callback. Additionally, USB data is now explicitly disabled when the keyguard becomes locked.

Bug: 34948618
Test: atest, manual testing
Flag: android.security.aapm_feature_usb_data_protection
Change-Id: Id08faf49d7dc05e322d68db7e6f7a0213bfd6c06
parent 8b903dd2
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