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

Commit b9884663 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Require the new PACKET_KEEPALIVE_OFFLOAD permission.

Bug: 23884210
Change-Id: I50a1a647a69deaba92e73021ee7d6cc0f3eb1eee
parent 9d1284eb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -62,8 +62,7 @@ public class KeepaliveTracker {
    private static final String TAG = "KeepaliveTracker";
    private static final boolean DBG = true;

    // TODO: Change this to a system-only permission.
    public static final String PERMISSION = android.Manifest.permission.CHANGE_NETWORK_STATE;
    public static final String PERMISSION = android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD;

    /** Keeps track of keepalive requests. */
    private final HashMap <NetworkAgentInfo, HashMap<Integer, KeepaliveInfo>> mKeepalives =