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
Loading
Please register or sign in to comment