summaryrefslogtreecommitdiffstats
path: root/services/usb
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-05-02 16:28:33 -0700
committerDianne Hackborn <hackbod@google.com>2014-05-02 16:29:10 -0700
commitd83a096f299abd9c7fe5e441ef1bb169c314b575 (patch)
tree2c3e1c45bc81fb6660fd306d71e72a1cc5775772 /services/usb
parent5d84bce12204072bc7ab296ce0cdea7efb5cf17c (diff)
downloadframeworks_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.java5
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) {