Merge "Fix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission"
This commit is contained in:
commit
b112d8b907
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue