Remove ProcessLifecycleOwnerInitializer workaround from manifest
The androidx.lifecycle.ProcessLifecycleOwnerInitializer provider
was added to the manifest as a workaround for incorrect manifest
merging in b/112587252. Soong has been fixed to only merge the
manifests at the final APK, preserving the right value of
${applicationId}, so the workaround is no longer necessary.
An upcoming drop of androidx to the platform removes the
androidx.lifecycle.ProcessLifecycleOwnerInitializer in favor
of androidx.startup.InitializationProvider, which causes failures
at runtime if the workaround is not removed.
Bug: 197536008
Test: boot with new androidx drop
Test: ProcessLifecycleOwnerInitializer still in compiled AndroidManifest.xml
Change-Id: I49588c6d5627b66ded2219dc358b52568822ee38
diff --git a/PermissionController/AndroidManifest.xml b/PermissionController/AndroidManifest.xml
index 08d4d0b..abe8923 100644
--- a/PermissionController/AndroidManifest.xml
+++ b/PermissionController/AndroidManifest.xml
@@ -61,13 +61,6 @@
android:directBootAware="true"
android:theme="@style/FilterTouches">
- <provider
- android:name="androidx.lifecycle.ProcessLifecycleOwnerInitializer"
- tools:replace="android:authorities"
- android:authorities="${applicationId}.lifecycle-process"
- android:exported="false"
- android:multiprocess="true" />
-
<receiver android:name="com.android.permissioncontroller.permission.service.LocationAccessCheck$SetupPeriodicBackgroundLocationAccessCheck">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />