[Settings] Replace CONNECTIVITY_INTERNAL to TETHER_PRIVILEGED
Settings is using CONNECTIVITY_INTERNAL to restrict launching tether provisoning activity by provioning apps only. However, CONNECTIVITY_INTERNAL will be deprecated from Android R, replace the permission to TETHER_PRIVILEGED. Bug: 32963470 Test: atest TetherServiceTest Change-Id: I4c8312b92de8d5d9c9090c572e54622dc4fcf9d4
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user