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

Commit d83a096f authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Bump up priority of system receiving BOOT_COMPLETED.

Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705
parent 5d84bce1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2793,7 +2793,7 @@

        <receiver android:name="com.android.server.BootReceiver"
                android:primaryUserOnly="true">
            <intent-filter>
            <intent-filter android:priority="1000">
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@
                android:exported="true" />

        <receiver android:name=".BootReceiver" androidprv:primaryUserOnly="true">
            <intent-filter>
            <intent-filter android:priority="1000">
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
+3 −1
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@ public class SystemUIApplication extends Application {
        // the theme set there.
        setTheme(R.style.systemui_theme);

        IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);
        filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
        registerReceiver(new BroadcastReceiver() {
            @Override
            public void onReceive(Context context, Intent intent) {
@@ -80,7 +82,7 @@ public class SystemUIApplication extends Application {
                    }
                }
            }
        }, new IntentFilter(Intent.ACTION_BOOT_COMPLETED));
        }, filter);
    }

    /**
+3 −2
Original line number Diff line number Diff line
@@ -125,8 +125,10 @@ public class AppWidgetService extends SystemService implements WidgetBackupProvi
            // Register for the boot completed broadcast, so we can send the
            // ENABLE broacasts. If we try to send them now, they time out,
            // because the system isn't ready to handle them yet.
            IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);
            filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
            mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL,
                    new IntentFilter(Intent.ACTION_BOOT_COMPLETED), null, null);
                    filter, null, null);

            // Register for configuration changes so we can update the names
            // of the widgets when the locale changes.
@@ -135,7 +137,6 @@ public class AppWidgetService extends SystemService implements WidgetBackupProvi

            // Register for broadcasts about package install, etc., so we can
            // update the provider list.
            IntentFilter filter = new IntentFilter();
            filter.addAction(Intent.ACTION_PACKAGE_ADDED);
            filter.addAction(Intent.ACTION_PACKAGE_CHANGED);
            filter.addAction(Intent.ACTION_PACKAGE_REMOVED);
+1 −0
Original line number Diff line number Diff line
@@ -212,6 +212,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
        filter.addAction(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);
        filter.addAction(Intent.ACTION_USER_SWITCHED);
        registerForAirplaneMode(filter);
        filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
        mContext.registerReceiver(mReceiver, filter);
        loadStoredNameAndAddress();
        if (isBluetoothPersistedStateOn()) {
Loading