OSDN Git Service

Don't allow secondary users apps to start restricted Settings fragment.
authorNicolas Prevot <nprevot@google.com>
Tue, 2 Jun 2015 21:27:49 +0000 (22:27 +0100)
committerNicolas Prevot <nprevot@google.com>
Tue, 2 Jun 2015 23:49:20 +0000 (16:49 -0700)
commita5df4779a04331294c15e6d22d749a734b59400f
tree3758f921c6a3b2b325231e335b896604888e2198
parent96e25b8d938082715f93bd071eb386a2174b910d
Don't allow secondary users apps to start restricted Settings fragment.

On a secondary user, the fragments ApnSettings, TetherSettings and VpnSettings
should not be started.

But an app can still send an intent to start these fragments.
Prevent this by checkin the userId in these fragments.

BUG:15313261
BUG:15312781
BUG:15312494

Change-Id: I2a36bb89a8e37e4440aa28372d7a1800b33dae37
src/com/android/settings/ApnSettings.java
src/com/android/settings/TetherSettings.java
src/com/android/settings/vpn2/VpnSettings.java