BroadcastQueue: Background execution not allowed:
/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=autoai.intent.action.RIGHT_VIEW_START flg=0x400010 } to com.autochips.backcarapp/.BootCompletedReceiver
在Intent类源码中有这样的Flag定义:
/**
* If set, the broadcast will always go to manifest receivers in background (cached
* or not running) apps, regardless of whether that would be done by default. By
* default they will only receive broadcasts if the broadcast has specified an
* explicit component or package name.
*
* NOTE: dumpstate uses this flag numerically, so when its value is changed
* the broadcast code there must also be changed to match.
*
* @hide
*/
public static final int FLAG_RECEIVER_INCLUDE_BACKGROUND = 0x01000000;
这里没办法 直接发送广播的时候携带intent.addFlags(0x01000000); 即能让广播突破隐式广播限制。(此方法行不通)
or