Permalink
Browse files

run Usb.apk in SystemUI process to spare some resources

Change-Id: Id260fbc99761b72a8c8e417dccfe83dc9343f3c2
  • Loading branch information...
1 parent 001f0a3 commit 00b57ff50ac32fcf3302f3fc374af6cd64179251 @nadlabak committed Sep 20, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 AndroidManifest.xml
View
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.motorola.usb">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.motorola.usb" android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--<uses-permission android:name="com.motorola.android.permission.MOT_USB" />-->
- <application android:label="usb" android:persistent="true">
+ <application android:label="usb" android:persistent="true" android:process="com.android.systemui">
<activity android:theme="@style/UsbDialog" android:name="UsbModeSelectionActivity" android:excludeFromRecents="true" />
<activity android:theme="@style/UsbDialog" android:name="UsbErrorActivity" />
- <service android:name="UsbService" android:process="com.motorola.usb">
+ <service android:name="UsbService">
<intent-filter>
<action android:name="com.motorola.intent.action.USB_LAUNCH_USBSERVICE" />
<category android:name="com.motorola.intent.category.LAUNCHER" />
</intent-filter>
</service>
- <receiver android:name="UsbReceiver" android:process="com.motorola.usb">
+ <receiver android:name="UsbReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />

0 comments on commit 00b57ff

Please sign in to comment.