Skip to content

Commit 9e0578f

Browse files
author
Rubin Xu
committed
Remove DELEGATION_PACKAGE_INSTALLATION
API no longer exists in SDK, remove reference in TestDPC. Fix: 130525752 Bug: ./gradlew assemble Change-Id: I0bdaf788b2c569de05070cb00d5c53f03419d467
1 parent 565fd7f commit 9e0578f

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

app/src/main/java/com/afwsamples/testdpc/profilepolicy/delegation/DelegationFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ static List<DelegationScope> defaultDelegationScopes(boolean showDoOnlyDelegatio
215215
if (showDoOnlyDelegations) {
216216
defaultDelegations.add(
217217
new DelegationScope(DevicePolicyManager.DELEGATION_NETWORK_LOGGING));
218-
defaultDelegations.add(
219-
new DelegationScope(DevicePolicyManager.DELEGATION_PACKAGE_INSTALLATION));
220218
}
221219
return defaultDelegations;
222220
}

app/src/main/java/com/afwsamples/testdpc/profilepolicy/delegation/DelegationScopesArrayAdapter.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ public View getView(int position, View convertView, ViewGroup parent) {
6565
case DevicePolicyManager.DELEGATION_CERT_SELECTION:
6666
viewHolder.setText(R.string.delegation_scope_cert_selection);
6767
break;
68-
case DevicePolicyManager.DELEGATION_PACKAGE_INSTALLATION:
69-
viewHolder.setText(R.string.delegation_scope_package_installation);
70-
break;
71-
7268
}
7369

7470
return convertView;

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@
573573
<string name="delegation_scope_keep_uninstalled_packages">Keep uninstalled packages</string>
574574
<string name="delegation_scope_network_logging">Access network logging</string>
575575
<string name="delegation_scope_cert_selection">Choose private key</string>
576-
<string name="delegation_scope_package_installation">Silently install APK</string>
577576
<string name="manage_cert_installer">Delegated cert installer</string>
578577

579578
<!-- strings used in the alert dialog for editing application restrictions. -->

0 commit comments

Comments
 (0)