[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:
paulhu
2019-08-23 17:18:58 +08:00
parent d7a8e234e9
commit 52d24750a4
3 changed files with 3 additions and 3 deletions

View File

@@ -431,7 +431,7 @@ public class TetherServiceTest extends ServiceTestCase<TetherService> {
responseIntent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
responseIntent.putExtra(TetherService.EXTRA_RESULT, response);
context.sendBroadcast(
responseIntent, android.Manifest.permission.CONNECTIVITY_INTERNAL);
responseIntent, android.Manifest.permission.TETHER_PRIVILEGED);
}
}