diff options
| author | 2019-05-14 10:48:48 +0000 | |
|---|---|---|
| committer | 2019-05-14 10:48:48 +0000 | |
| commit | cfcbda3345580641ec75f0ec0dfefd7047fe1d3d (patch) | |
| tree | 71017d3b6aa480b0a68c2872df4a6a5a453d2601 | |
| parent | f1aca7cf4eab94a3bfb737251ab33d4cf4942a7f (diff) | |
| parent | 9852560e444d199477fe0a72cd7c96f237fb9cab (diff) | |
Merge "Fix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission"
| -rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 562199aa775b..b3b5e45496ac 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -3495,7 +3495,8 @@ public class ConnectivityService extends IConnectivityManager.Stub */ @Override public void startCaptivePortalAppInternal(Network network, Bundle appExtras) { - mContext.checkCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); + mContext.enforceCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, + "ConnectivityService"); final Intent appIntent = new Intent(ConnectivityManager.ACTION_CAPTIVE_PORTAL_SIGN_IN); appIntent.putExtras(appExtras); |