Skip to content

Commit 064269b

Browse files
committed
Modify LockScreenPolicyFragment in TestDPC
* Introduced new logic that allows the profile owner of an organization-owned device (COPE PO) to set the restriction KEYGUARD_DISABLE_SECURE_NOTIFICATIONS on the parent profile. Bug: 149007069 Test: Manual testing with TestDPC Change-Id: I542471368d981ca0ba9b69e0f9250269798c6f21
1 parent 2f85264 commit 064269b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/keyguard/LockScreenPolicyFragment.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ abstract static class Keys {
8080

8181
static final Set<String> NOT_APPLICABLE_TO_PARENT
8282
= new HashSet<>(Arrays.asList(new String[] {
83-
KEYGUARD_DISABLE_SECURE_NOTIFICATIONS,
8483
KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS,
8584
}));
8685
}

app/src/main/res/xml/lock_screen_preferences.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
<com.afwsamples.testdpc.common.preference.DpcSwitchPreference
7676
android:key="keyguard_disable_secure_notifications"
7777
android:title="@string/keyguard_disable_secure_notifications"
78-
testdpc:admin="deviceOwner"
7978
testdpc:minSdkVersion="L" />
8079
<com.afwsamples.testdpc.common.preference.DpcSwitchPreference
8180
android:key="keyguard_disable_unredacted_notifications"

0 commit comments

Comments
 (0)