summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Omair Kamil <okamil@google.com> 2025-03-17 20:07:25 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-17 20:07:25 -0700
commit17c022abec16af5db0fd6e8c83fbec849c700c5c (patch)
tree4e64d804cabfb8d2ccd058d7bebe1445322bba97
parentf671dfcc02924a7450b51df0fca23b0611b41219 (diff)
parentb1bc947f7797d476b3c7624d2b201f3a7c78b058 (diff)
Merge "Cleanup flag pan_use_identity_address." into main
-rw-r--r--android/app/src/com/android/bluetooth/pan/PanService.java10
-rw-r--r--flags/gap.aconfig10
2 files changed, 2 insertions, 18 deletions
diff --git a/android/app/src/com/android/bluetooth/pan/PanService.java b/android/app/src/com/android/bluetooth/pan/PanService.java
index a27724b785..9196288928 100644
--- a/android/app/src/com/android/bluetooth/pan/PanService.java
+++ b/android/app/src/com/android/bluetooth/pan/PanService.java
@@ -50,7 +50,6 @@ import com.android.bluetooth.Utils;
import com.android.bluetooth.btservice.AdapterService;
import com.android.bluetooth.btservice.ProfileService;
import com.android.bluetooth.btservice.storage.DatabaseManager;
-import com.android.bluetooth.flags.Flags;
import com.android.internal.annotations.VisibleForTesting;
import com.android.modules.utils.HandlerExecutor;
@@ -99,9 +98,7 @@ public class PanService extends ProfileService {
Log.e(TAG, "Error setting up tether interface: " + error);
for (BluetoothDevice device : mPanDevices.keySet()) {
mNativeInterface.disconnect(
- Flags.panUseIdentityAddress()
- ? Utils.getByteBrEdrAddress(mAdapterService, device)
- : Utils.getByteAddress(device));
+ Utils.getByteBrEdrAddress(mAdapterService, device));
}
mPanDevices.clear();
mIsTethering = false;
@@ -500,10 +497,7 @@ public class PanService extends ProfileService {
"handlePanDeviceStateChange BT tethering is off/Local role"
+ " is PANU drop the connection");
mPanDevices.remove(device);
- mNativeInterface.disconnect(
- Flags.panUseIdentityAddress()
- ? Utils.getByteBrEdrAddress(mAdapterService, device)
- : Utils.getByteAddress(device));
+ mNativeInterface.disconnect(Utils.getByteBrEdrAddress(mAdapterService, device));
return;
}
Log.d(TAG, "handlePanDeviceStateChange LOCAL_NAP_ROLE:REMOTE_PANU_ROLE");
diff --git a/flags/gap.aconfig b/flags/gap.aconfig
index 2b833af69a..3dd968b7ef 100644
--- a/flags/gap.aconfig
+++ b/flags/gap.aconfig
@@ -57,16 +57,6 @@ flag {
}
flag {
- name: "pan_use_identity_address"
- namespace: "bluetooth"
- description: "Use identity address when communicate with native interface"
- bug: "351961492"
- metadata {
- purpose: PURPOSE_BUGFIX
- }
-}
-
-flag {
name: "android_os_identifier"
namespace: "bluetooth"
description: "Add a custom service to provide Android OS identifier"