Merge "Adding receiver exported flag."

This commit is contained in:
TreeHugger Robot
2021-11-17 01:29:34 +00:00
committed by Android (Google) Code Review

View File

@@ -119,7 +119,8 @@ public class TetherService extends Service {
if (mExpectedProvisionResponseAction != null) unregisterReceiver(mReceiver); if (mExpectedProvisionResponseAction != null) unregisterReceiver(mReceiver);
registerReceiver(mReceiver, new IntentFilter(responseAction), registerReceiver(mReceiver, new IntentFilter(responseAction),
android.Manifest.permission.TETHER_PRIVILEGED, null /* handler */); android.Manifest.permission.TETHER_PRIVILEGED, null /* handler */,
Context.RECEIVER_EXPORTED);
mExpectedProvisionResponseAction = responseAction; mExpectedProvisionResponseAction = responseAction;
if (DEBUG) Log.d(TAG, "registerReceiver " + responseAction); if (DEBUG) Log.d(TAG, "registerReceiver " + responseAction);
} }