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

Commit 8b903dd2 authored by George Chan's avatar George Chan
Browse files

Replace ACTION_SCREEN_OFF broadcast with KeyguardLockedStateListener.

This change improves the reliability of disabling USB data when the device is locked by using the new `KeyguardLockedStateListener`. This listener provides a direct callback when the keyguard state changes, eliminating the need for complex retry logic previously used to handle race conditions with `ACTION_SCREEN_OFF`. The delay for disabling USB data has also been reduced to 5 seconds to aid connection recovery.

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