commit | 5a6bdc46e2fdc8cfd930396773dd89efd19fa1f1 | [log] [tgz] |
---|---|---|
author | Robert Greenwalt <rgreenwalt@google.com> | Fri Feb 15 10:56:35 2013 -0800 |
committer | Robert Greenwalt <rgreenwalt@google.com> | Fri Feb 22 10:39:20 2013 -0800 |
tree | d574060601fb49345a80d1155669305718d65efb | |
parent | b84951451c35813ccf8aefdb12f5092926785fd4 [diff] [blame] |
Improve ConnectivityManager docs Also fix some permission problems. bug:5738328 Change-Id: Ib32c223f425b1fc03b8cce528456bcb50b540fdf
diff --git a/services/java/com/android/server/connectivity/Vpn.java b/services/java/com/android/server/connectivity/Vpn.java index bb7334a..533db46 100644 --- a/services/java/com/android/server/connectivity/Vpn.java +++ b/services/java/com/android/server/connectivity/Vpn.java
@@ -462,6 +462,7 @@ * secondary thread to perform connection work, returning quickly. */ public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { + enforceControlPermission(); if (!keyStore.isUnlocked()) { throw new IllegalStateException("KeyStore isn't unlocked"); }