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

Skip to content
Commit a1850699 authored by Hui Peng's avatar Hui Peng
Browse files

[redact_log] Mark the change in BluetoothDevice#toString

Return redacted mac address in BluetoothDevice#toString

This is part of fixes for b/174487588: handling address redaction
in Java layer

Test method:

1. flash a user debug image (API level 33) with this CL on a device

2. Confirm that the change is included by runing the following command

    ```
    adb shell dumpsys platform_compat | grep 265103382
    # expected output
    ChangeId(265103382; name=CHANGE_TO_STRING_REDACTED; enableSinceTargetSdk=10000...
    # if there is no output, it means that change is not included
    ```

3. Use a test app that logs bluetooth mac addresses. In this test,
   the following app is used

   https://github.com/android/connectivity-samples/tree/main/BluetoothChat is used

4. Before enabling this API change, check the logs of bluetooth address in logcat:
   the bluetooth address should be shown as non-redacted

5. After enabling this API change (with the following command), the bluetooth address
   should be shown as redacted in logcat

    ```
    adb shell am compat enable 265103382 com.example.android.bluetoothchat
    ```

Bug: 265103382
Test: see above
Change-Id: I6ae13f5feb3c8136f37d8211b640695a6732fc52
parent 3dd3c107
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