Merge "Fix a couple of NPEs in AdbDebuggingManager.AdbDebuggingHandler" am: 9946834795 am: a4c70add80

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2189719

Change-Id: Ib3c5c7c6d01b60947ba27492b9ed36a4fc1bbd93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Prameet Shah
2022-09-07 01:11:28 +00:00
committed by Automerger Merge Worker

View File

@@ -667,6 +667,7 @@ public class AdbDebuggingManager {
+ " Not enabling adbwifi."); + " Not enabling adbwifi.");
Settings.Global.putInt(mContentResolver, Settings.Global.putInt(mContentResolver,
Settings.Global.ADB_WIFI_ENABLED, 0); Settings.Global.ADB_WIFI_ENABLED, 0);
return;
} }
// Check for network change // Check for network change
@@ -675,6 +676,7 @@ public class AdbDebuggingManager {
Slog.e(TAG, "Unable to get the wifi ap's BSSID. Disabling adbwifi."); Slog.e(TAG, "Unable to get the wifi ap's BSSID. Disabling adbwifi.");
Settings.Global.putInt(mContentResolver, Settings.Global.putInt(mContentResolver,
Settings.Global.ADB_WIFI_ENABLED, 0); Settings.Global.ADB_WIFI_ENABLED, 0);
return;
} }
synchronized (mAdbConnectionInfo) { synchronized (mAdbConnectionInfo) {
if (!bssid.equals(mAdbConnectionInfo.getBSSID())) { if (!bssid.equals(mAdbConnectionInfo.getBSSID())) {