@Override public ResolveInfo resolveService(final Intent intent, final int flags) {
final int original_intent_flags = intent.getFlags();
// Intent flags could only filter background receivers, we have to deal with services by ourselves.
return mCondom.proceed(OutboundType.QUERY_SERVICES, intent, null, new CondomCore.WrappedValueProcedure<ResolveInfo>() { @Override public ResolveInfo proceed() {
if (! mCondom.mExcludeBackgroundServices && mCondom.mOutboundJudge == null)
return CondomPackageManager.super.resolveService(intent, flags); // Shortcut for pass-through
final List<ResolveInfo> candidates = CondomPackageManager.super.queryIntentServices(intent, flags);
final Intent original_intent = intent.setFlags(original_intent_flags); // Restore the intent flags early before getFirstMatch().
return mCondom.filterCandidates(OutboundType.QUERY_SERVICES, original_intent, candidates, TAG, false);
}});
}
CondomContext.java 文件源码
java
阅读 43
收藏 0
点赞 0
评论 0
项目:MiPushFramework
作者:
评论列表
文章目录