Bluetooth: Separate enable and disable Reasons from package name
* Reasons to enable or disable Bluetooth should be in a separate namespace away from package names that initiated the enable or disable * Delcare reason code in android/bluetooth/enums.proto as EnableDisableReasonEnum and use these reason code together with package names to log Bluetooth enable and disable events * When reason is ENABLE_DISABLE_REASON_APPLICATION_REQUEST, the external package name is the real reason why Bluetooth is enabled or disabled * Change START_CRASH to START_ERROR since it represents a disable event when Bluetooth failed to start * Change UNEXPECTED_CRASH to CRASH since no crash is expected * Add getEnableDisableReasonString() method to covert reason code to human readable strings in dumpsys output Bug: 74090881 Test: Toggle Bluetooth, airplane mode, BLE scanning Change-Id: I06aa413e2a0a5f016c87759a1b694ef643c9cdee
Loading
Please register or sign in to comment