Workaround bug in DPM related to initialization of our admin
Bug: 4436285 Change-Id: If6f0ccaa9e1479fae0dbd1853a462eaf7948ccfc
This commit is contained in:
parent
4c4e4c3515
commit
6d9d71683a
@ -65,6 +65,9 @@ public class SecurityPolicy {
|
||||
public synchronized static SecurityPolicy getInstance(Context context) {
|
||||
if (sInstance == null) {
|
||||
sInstance = new SecurityPolicy(context.getApplicationContext());
|
||||
// STOPSHIP: This is a workaround for b/4445007
|
||||
// Make sure the DPM has our active policies
|
||||
sInstance.setActivePolicies();
|
||||
}
|
||||
return sInstance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user