这个intent的发送点是在:
finishBooting函数(ActivityManagerService.java)
调用关系是:
startHomeActivityLocked()
-> ensureBootCompleted()
-> finishBooting()
finishBooting函数(ActivityManagerService.java)
调用关系是:
startHomeActivityLocked()
-> ensureBootCompleted()
-> finishBooting()
-> mStackSupervisor.startHomeActivity(intent, aInfo)
所以在finishBooting这个函数中设置intent的falg即可:FLAG_EXCLUDE_STOPPED_PACKAGES 、FLAG_INCLUDE_STOPPED_PACKAGES