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

Commit a8324052 authored by Hasib Prince's avatar Hasib Prince
Browse files

Merge branch 'auto_update_bootcompleted_#4914' into epic_176-all-refactorAndGplay

parents 8c6b03c8 27f3a040
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission
        android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />
@@ -53,6 +54,12 @@
            </intent-filter>
        </receiver>

        <receiver android:name=".updates.manager.UpdatesManager">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>

        <!-- If you want to disable android.startup completely. -->
        <provider
            android:name="androidx.startup.InitializationProvider"
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ class UpdatesManager : BroadcastReceiver() {
    }

    override fun onReceive(context: Context, intent: Intent) {
        Log.d(TAG, "onReceive: ${intent.action}")
        if (intent.action == Intent.ACTION_BOOT_COMPLETED) {
            val preferences = PreferenceManager.getDefaultSharedPreferences(context)
            val interval =