OSDN Git Service

Disable restricted VPN actions onResume
authorRobin Lee <rgl@google.com>
Fri, 20 May 2016 14:44:08 +0000 (15:44 +0100)
committerVictor Chang <vichang@google.com>
Wed, 1 Jun 2016 10:32:32 +0000 (11:32 +0100)
commit52541536d0d4c8f78be26f94fa8f0cf297bde1c4
tree2481f5bc16d56055899c91135e08471acba543fb
parent36522e885479b30bc49a8a7333f436d5744431bc
Disable restricted VPN actions onResume

Otherwise it's pretty easy to circumvent any future restrictions by
keeping VPN settings for a particular app open and continuing to use
it even after DISALLOW_CONFIG_VPN is applied.

Two checks:
 1) in onResume (catches almost every case)
 2) in setAlwaysOn (catches every remaining case)

Bug: 28733079
Change-Id: I1c67bb14891ef620df5ed65fbd32678e417b4a65
src/com/android/settings/vpn2/AppManagementFragment.java