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

Commit 19736f6f authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Enable EMERGENCY mobile connections.

Hooks the ConnectivityManager.TYPE_MOBILE_EMERGENCY,
PhoneConstants.APN_TYPE_EMERGENCY, and NetworkCapabilities.NET_CAPABILITY_EIMS
together so carrier apps can request connections to this APN.

bug:21785357
Change-Id: Iafd477dbc7bda89de888a124602b21efbbaa6712
parent 21c6a490
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -586,8 +586,8 @@ public class DctController extends Handler {
        }
        if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_EIMS)) {
            if (name != null) error = true;
            name = null;
            loge("EIMS APN type not yet supported");
            name = PhoneConstants.APN_TYPE_EMERGENCY;
            type = ConnectivityManager.TYPE_MOBILE_EMERGENCY;
        }
        if (error) {
            loge("Multiple apn types specified in request - result is unspecified!");