1 /* 2 * Copyright 2020, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // INetworkInterceptService.aidl 18 package com.google.android.setupwizard.util; 19 20 /** 21 * Provides functions for enabling and disabling network intents interception 22 * of setupwizard. 23 * 24 * During init setup flow, "SecureInterceptActivity" and "WebDialogActivity" 25 * are enabled to intercept network intents. By disabling these two activities 26 * the network intent will be allowed in setup flow. 27 */ 28 interface INetworkInterceptService { 29 /** 30 * Disables the network intents intercept and returns 31 * true if disable the network interception successfully. 32 */ disableNetworkIntentIntercept()33 boolean disableNetworkIntentIntercept(); 34 35 /** 36 * Enables the network intents intercept and returns 37 * true if enable the network interception successfully. 38 */ enableNetworkIntentIntercept()39 boolean enableNetworkIntentIntercept(); 40 41 /** 42 * Returns true if setupwizard intercept the network intents. 43 */ isNetworkIntentIntercepted()44 boolean isNetworkIntentIntercepted(); 45 }