Merge "[Settings] Replace CONNECTIVITY_INTERNAL to TETHER_PRIVILEGED"

am: a67ca4cfd7

Change-Id: I7a2a4d76d1e0092188121d390c75c12eac20cdab
This commit is contained in:
Paul Hu
2019-10-01 03:03:36 -07:00
committed by android-build-merger
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ import com.android.settings.Utils;
/**
* Activity which acts as a proxy to the tether provisioning app for sanity checks and permission
* restrictions. Specifically, the provisioning apps require
* {@link android.permission.CONNECTIVITY_INTERNAL}, while this activity can be started by a caller
* {@link android.permission.TETHER_PRIVILEGED}, while this activity can be started by a caller
* with {@link android.permission.TETHER_PRIVILEGED}.
*/
public class TetherProvisioningActivity extends Activity {

View File

@@ -88,7 +88,7 @@ public class TetherService extends Service {
String provisionResponse = getResourceForActiveDataSubId().getString(
com.android.internal.R.string.config_mobile_hotspot_provision_response);
registerReceiver(mReceiver, new IntentFilter(provisionResponse),
android.Manifest.permission.CONNECTIVITY_INTERNAL, null);
android.Manifest.permission.TETHER_PRIVILEGED, null);
SharedPreferences prefs = getSharedPreferences(PREFS, MODE_PRIVATE);
mCurrentTethers = stringToTethers(prefs.getString(KEY_TETHERS, ""));
mCurrentTypeIndex = 0;