Require the new PACKET_KEEPALIVE_OFFLOAD permission.

Bug: 23884210
Change-Id: I50a1a647a69deaba92e73021ee7d6cc0f3eb1eee
This commit is contained in:
Lorenzo Colitti
2015-09-08 22:02:37 +09:00
parent 723f82f17f
commit b7993df3ba

View File

@@ -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 =