ed36157049
For whatever reason, when both SYSTEM_UPDATE_SETTINGS components have the same priority and the first one is disabled (in this case, the GMS one), it doesn't seem to fallback to the next enabled one and instead shows a "No apps can perform this action" message. To avoid that, let's just set higher priority. 9a6853 com.google.android.gms/.update.SystemUpdateActivity filter b9e590 Action: "android.settings.SYSTEM_UPDATE_SETTINGS" Category: "android.intent.category.DEFAULT" mPriority=1, mOrder=0, mHasStaticPartialTypes=false, mHasDynamicPartialTypes=false Change-Id: I886a714304fe6d1906af7e1702ecaf2238bd8cb0
74 lines
3.1 KiB
XML
74 lines
3.1 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.lineageos.updater"
|
|
android:versionCode="1">
|
|
|
|
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
<uses-permission android:name="android.permission.REBOOT" />
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<uses-permission android:name="android.permission.RECOVERY" />
|
|
<uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<application
|
|
android:allowBackup="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:requestLegacyExternalStorage="true"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/AppTheme"
|
|
android:usesCleartextTraffic="false">
|
|
|
|
<activity
|
|
android:name=".UpdatesActivity"
|
|
android:excludeFromRecents="true"
|
|
android:label="@string/display_name"
|
|
android:exported="true"
|
|
android:theme="@style/AppTheme.NoActionBar"
|
|
android:launchMode="singleTop">
|
|
<intent-filter android:priority="2">
|
|
<action android:name="android.settings.SYSTEM_UPDATE_SETTINGS" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="com.android.settings.SHORTCUT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".controller.UpdaterService"
|
|
android:foregroundServiceType="specialUse">
|
|
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="updater"/>
|
|
</service>
|
|
<service
|
|
android:name=".ExportUpdateService"
|
|
android:foregroundServiceType="specialUse">
|
|
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="updater"/>
|
|
</service>
|
|
|
|
<receiver android:name=".UpdaterReceiver" android:exported="false">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<receiver android:name=".UpdatesCheckReceiver" android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
|
|
</manifest>
|