We recently migrated our Device Policy App(MDM) to support android 12 and would like to open our MDM dpc app after initial setup wizard is complete. This was working fine till android 11 until android 12 updates came out. We are handling GET_PROVISIONING_MODE and ADMIN_POLICY_COMPLIANCE but PROVISIONING_SUCCESSFUL is never called.
This is our code in Manifest for PROVISIONING_SUCCESSFUL :
<activity
android:name=".pages.ProvisioningSuccessActivity"
android:exported="true"
android:theme="@android:style/Theme.NoDisplay"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<intent-filter>
<action android:name="android.app.action.PROVISIONING_SUCCESSFUL"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
We are calling setResult(RESULT_FIRST_USER, intent);
on receive of ADMIN_POLICY_COMPLIANCE intent.
Can anyone please help us with this?