Compare the previously downloaded updates list with the current one and check if the old list includes all the updates of the new list. If the network is not available at the time of the check, a new check is scheduled.
40 lines
1.5 KiB
XML
40 lines
1.5 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.lineageos.updater">
|
|
|
|
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<application
|
|
android:allowBackup="false"
|
|
android:icon="@drawable/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.AppCompat.Light">
|
|
|
|
<activity
|
|
android:name=".UpdatesActivity"
|
|
android:label="@string/display_name"
|
|
android:launchMode="singleTask">
|
|
<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=".DownloadService" />
|
|
|
|
<receiver android:name=".UpdaterBroadcastReceiver" android:exported="false" />
|
|
<receiver android:name=".UpdatesCheckReceiver">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
|
|
</manifest>
|