


监听应用安装与卸载可以运行但是Log打不出来Logcat显示的是:
2020-11-23 11:15:21.146 1831-1870/system_process W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.activitylaunchmode flg=0x4000010 (has extras) } to com.example.broadcastdemoforcourse/.AppStateChangeReceiver
好像是能监听到的为什么Log没打出来?
8.0以后移除了好多静态广播 是不是这个原因
现在应该不开放这个了吧?去查一下吧。毕竟如果你监听别的手机应用安装,就可以收集商业数据了。这个应该不可以了。
下断点看下咯