From 0a3acc1c3fdf655d3d1177632e4665a1824aec96 Mon Sep 17 00:00:00 2001 From: Jacob Hobbie Date: Tue, 2 Nov 2021 21:44:01 +0000 Subject: [PATCH] Adding receiver exported flag. Since the broadcast receiver in question is permission protected we will add a RECEIVER_EXPORTED flag to make this receiver compatible with Android T+. Change-Id: Ib6453b47641a32796e202f4f9e37099c36b6c683 Test:no-op Bug:161145287 --- src/com/android/settings/wifi/tether/TetherService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/tether/TetherService.java b/src/com/android/settings/wifi/tether/TetherService.java index 59027193ed5..8a557ba0c3e 100644 --- a/src/com/android/settings/wifi/tether/TetherService.java +++ b/src/com/android/settings/wifi/tether/TetherService.java @@ -119,7 +119,8 @@ public class TetherService extends Service { if (mExpectedProvisionResponseAction != null) unregisterReceiver(mReceiver); registerReceiver(mReceiver, new IntentFilter(responseAction), - android.Manifest.permission.TETHER_PRIVILEGED, null /* handler */); + android.Manifest.permission.TETHER_PRIVILEGED, null /* handler */, + Context.RECEIVER_EXPORTED); mExpectedProvisionResponseAction = responseAction; if (DEBUG) Log.d(TAG, "registerReceiver " + responseAction); }