File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
java/com/afwsamples/testdpc/policy Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2496,6 +2496,10 @@ private void loadSecurityPatch() {
2496
2496
@ TargetApi (VERSION_CODES .S )
2497
2497
private void loadEnrollmentSpecificId () {
2498
2498
Preference enrollmentSpecificIdPreference = findPreference (ENROLLMENT_SPECIFIC_ID_KEY );
2499
+ if (!enrollmentSpecificIdPreference .isEnabled ()) {
2500
+ return ;
2501
+ }
2502
+
2499
2503
String esid = "" ;
2500
2504
try {
2501
2505
//TODO: Call directly when the S SDK is available.
Original file line number Diff line number Diff line change 32
32
android : key =" enrollment_specific_id"
33
33
android : selectable =" false"
34
34
android : title =" @string/enrollment_specific_id"
35
- testdpc : admin =" any"
35
+ testdpc : admin =" deviceOwner|profileOwner"
36
+ testdpc : delegation =" delegation-cert-install"
36
37
testdpc : minSdkVersion =" S" />
37
38
38
39
<PreferenceCategory android : title =" @string/accessibility_title" >
You can’t perform that action at this time.
0 commit comments