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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user