Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 401d176f authored by Benjamin Miller's avatar Benjamin Miller Committed by android-build-merger
Browse files

Merge "Docs: VPNs under Android O should promote to the foreground" into...

Merge "Docs: VPNs under Android O should promote to the foreground" into oc-dev am: ca007e52 am: 3082216d
am: 105c3b1d

Change-Id: Ic23b650fdd29739f312bf62fbab52196429c3f2e
parents d292f0af 105c3b1d
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -99,7 +99,7 @@ import java.util.List;
 *       shut down the tunnel gracefully.</li>
 *       shut down the tunnel gracefully.</li>
 * </ol>
 * </ol>
 *
 *
 * <p>Services extended this class need to be declared with appropriate
 * <p>Services extending this class need to be declared with an appropriate
 * permission and intent filter. Their access must be secured by
 * permission and intent filter. Their access must be secured by
 * {@link android.Manifest.permission#BIND_VPN_SERVICE} permission, and
 * {@link android.Manifest.permission#BIND_VPN_SERVICE} permission, and
 * their intent filter must match {@link #SERVICE_INTERFACE} action. Here
 * their intent filter must match {@link #SERVICE_INTERFACE} action. Here
@@ -112,6 +112,13 @@ import java.util.List;
 *     &lt;/intent-filter&gt;
 *     &lt;/intent-filter&gt;
 * &lt;/service&gt;</pre>
 * &lt;/service&gt;</pre>
 *
 *
 * <p> The Android system starts a VPN in the background by calling
 * {@link android.content.Context#startService startService()}. In Android 8.0
 * (API level 26) and higher, the system places VPN apps on the temporary
 * whitelist for a short period so the app can start in the background. The VPN
 * app must promote itself to the foreground after it's launched or the system
 * will shut down the app.
 *
 * @see Builder
 * @see Builder
 */
 */
public class VpnService extends Service {
public class VpnService extends Service {