Add manifest broadcasts for profile (un-)available.
This mean both switch on/off and add/remove profiles. The broadcasts already exists for registered receivers, this adds them for manifest receivers with INTERACT_ACROSS_PROFILES permission and crossProfile attribute. The MANAGED_PROFILE_REMOVED broadcast is sent to all application with android:crossProfile="true". Any cross profile app may be impacted, and there is no possible transfer of information as the account is already deleted at the time the signal is emitted. Change-Id: I17fb9a01b70b28845c5d6aacdcdd497a82391474 Fix: 145135525, 145598120 Test: Demo-app using Digital Wellbeing (automated test underway). Test: atest com.android.cts.devicepolicy.CrossProfileAppsPermissionHostSideTest Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testBroadcastManagedProfileAvailable_withCrossProfileAppsOp' Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testBroadcastManagedProfileAvailable_withoutCrossProfileAppsOp'
Loading
Please register or sign in to comment