Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit d5296791 authored by Michael Bestas's avatar Michael Bestas Committed by LuK1337
Browse files

Etar: Override androidx.startup.InitializationProvider authority name

The original InitializationProvider provider is defined in
prebuilts/sdk/current/androidx/manifests/
androidx.startup_startup-runtime/AndroidManifest.xml
which ends up getting merged with the app manifest.

This has the side effect of applying the wrong package name
in android:authorities and that prevents installation of the
official application from F-Droid.

Test: Install Etar from F-Droid along with our system app in place.
Change-Id: I36df9c5e4ef363efff4a4f2ae3fdbb98884f1abd
parent d25bdf4b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="org.lineageos.etar"
    android:installLocation="auto">

@@ -212,6 +213,12 @@
                android:resource="@xml/provider_paths"/>
        </provider>

        <provider
            android:name="androidx.startup.InitializationProvider"
            android:authorities="${applicationId}.androidx-startup"
            android:exported="false"
            tools:replace="android:authorities" />

        <provider android:name="com.android.calendar.CalendarRecentSuggestionsProvider"
            android:exported="false"
            android:authorities="${applicationId}.CalendarRecentSuggestionsProvider" />