最近做一款app用于设备的测试,把它预制到系统中,会弹出授权框,嫌麻烦直接加上系统权限android:sharedUserId="android.uid.system",加入签名后预制到系统中。发现待机唤醒后,这个app自动起来了。在AndroidManifest注释掉静态广播后问题解决
<intent-filter> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> <action android:name="android.hardware.usb.action.ACTION_USB_DEVICE_DETACHED" /> <action android:name="android.hardware.usb.action.USB_STATE" /> </intent-filter>