diff options
author | Dianne Hackborn <hackbod@google.com> | 2014-05-02 16:28:33 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2014-05-02 16:29:10 -0700 |
commit | d83a096f299abd9c7fe5e441ef1bb169c314b575 (patch) | |
tree | 2c3e1c45bc81fb6660fd306d71e72a1cc5775772 /services/usb | |
parent | 5d84bce12204072bc7ab296ce0cdea7efb5cf17c (diff) | |
download | frameworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.zip frameworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.tar.gz frameworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.tar.bz2 |
Bump up priority of system receiving BOOT_COMPLETED.
Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705
Diffstat (limited to 'services/usb')
-rw-r--r-- | services/usb/java/com/android/server/usb/UsbDeviceManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |