From d83a096f299abd9c7fe5e441ef1bb169c314b575 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 2 May 2014 16:28:33 -0700 Subject: Bump up priority of system receiving BOOT_COMPLETED. Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705 --- services/usb/java/com/android/server/usb/UsbDeviceManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'services/usb') diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java index f5ac178..6822ee3 100644 --- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java +++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java @@ -373,8 +373,9 @@ public class UsbDeviceManager { mUEventObserver.startObserving(USB_STATE_MATCH); mUEventObserver.startObserving(ACCESSORY_START_MATCH); - mContext.registerReceiver( - mBootCompletedReceiver, new IntentFilter(Intent.ACTION_BOOT_COMPLETED)); + IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); + filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); + mContext.registerReceiver(mBootCompletedReceiver, filter); mContext.registerReceiver( mUserSwitchedReceiver, new IntentFilter(Intent.ACTION_USER_SWITCHED)); } catch (Exception e) { -- cgit v1.1