当前位置: 首页>>代码示例>>Java>>正文


Java SpecialComponentList类代码示例

本文整理汇总了Java中com.lody.virtual.client.env.SpecialComponentList的典型用法代码示例。如果您正苦于以下问题:Java SpecialComponentList类的具体用法?Java SpecialComponentList怎么用?Java SpecialComponentList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SpecialComponentList类属于com.lody.virtual.client.env包,在下文中一共展示了SpecialComponentList类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performReceive

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean ordered,
                           boolean sticky, int sendingUser) throws RemoteException {
    if (!accept(intent)) {
        return;
    }
    if (intent.hasExtra("_VA_|_intent_")) {
        intent = intent.getParcelableExtra("_VA_|_intent_");
    }
    SpecialComponentList.unprotectIntent(intent);
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
        IIntentReceiverJB.performReceive.call(mOld, intent, resultCode, data, extras, ordered, sticky, sendingUser);
    } else {
        mirror.android.content.IIntentReceiver.performReceive.call(mOld, intent, resultCode, data, extras, ordered, sticky);
    }
}
 
开发者ID:coding-dream,项目名称:TPlayer,代码行数:16,代码来源:MethodProxies.java

示例2: protectIntentFilter

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
private void protectIntentFilter(IntentFilter filter) {
    if (filter != null) {
        List<String> actions = mirror.android.content.IntentFilter.mActions.get(filter);
        ListIterator<String> iterator = actions.listIterator();
        while (iterator.hasNext()) {
            String action = iterator.next();
            if (SpecialComponentList.isActionInBlackList(action)) {
                iterator.remove();
                continue;
            }
            String newAction = SpecialComponentList.protectAction(action);
            if (newAction != null) {
                if (DEBUG) {
                    VLog.d("IntentSender", "register=" + newAction);
                }
                iterator.set(newAction);
            }
        }
    }
}
 
开发者ID:codehz,项目名称:container,代码行数:21,代码来源:RegisterReceiver.java

示例3: dispatchStickyBroadcast

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
Intent dispatchStickyBroadcast(int vuid, IntentFilter filter) {
    Iterator<String> iterator = filter.actionsIterator();
    while (iterator.hasNext()) {
        String action = iterator.next();
        SystemBroadcastReceiver receiver = mSystemReceivers.get(action);
        if (receiver != null && receiver.sticky && receiver.stickyIntent != null) {
            Intent intent = new Intent(receiver.stickyIntent);
            SpecialComponentList.protectIntent(intent);
            intent.putExtra("_VA_|_uid_", vuid);
            mContext.sendBroadcast(intent);
            if (!iterator.hasNext()) {
                return receiver.stickyIntent;
            }
        }
    }
    return null;
}
 
开发者ID:codehz,项目名称:container,代码行数:18,代码来源:BroadcastSystem.java

示例4: call

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
    String permission = (String) args[0];
    if (SpecialComponentList.isWhitePermission(permission)) {
        return PackageManager.PERMISSION_GRANTED;
    }
    if (permission.startsWith("com.google")) {
        return PackageManager.PERMISSION_GRANTED;
    }
    args[args.length - 1] = getRealUid();
    return method.invoke(who, args);
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:13,代码来源:MethodProxies.java

示例5: sendBroadcastAsUser

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
public void sendBroadcastAsUser(Intent intent, VUserHandle user) {
    SpecialComponentList.protectIntent(intent);
    Context context = VirtualCore.get().getContext();
    if (user != null) {
        intent.putExtra("_VA_|_user_id_", user.getIdentifier());
    }
    context.sendBroadcast(intent);
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:9,代码来源:VActivityManagerService.java

示例6: handleUserBroadcast

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
private boolean handleUserBroadcast(int vuid, ActivityInfo info, ComponentName component, Intent realIntent, PendingResultData result) {
    if (component != null && !ComponentUtils.toComponentName(info).equals(component)) {
        // Verify the component.
        return false;
    }
    String originAction = SpecialComponentList.unprotectAction(realIntent.getAction());
    if (originAction != null) {
        // restore to origin action.
        realIntent.setAction(originAction);
    }
    handleStaticBroadcastAsUser(vuid, info, realIntent, result);
    return true;
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:14,代码来源:VActivityManagerService.java

示例7: performReceive

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean ordered,
                           boolean sticky, int sendingUser) throws RemoteException {
    if (!accept(intent)) {
        return;
    }
    if (intent.hasExtra("_VA_|_intent_")) {
        intent = intent.getParcelableExtra("_VA_|_intent_");
    }
    SpecialComponentList.unprotectIntent(intent);
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
        IIntentReceiverJB.performReceive.call(old, intent, resultCode, data, extras, ordered, sticky, sendingUser);
    } else {
        mirror.android.content.IIntentReceiver.performReceive.call(old, intent, resultCode, data, extras, ordered, sticky);
    }
}
 
开发者ID:codehz,项目名称:container,代码行数:16,代码来源:RegisterReceiver.java

示例8: call

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
	String permission = (String) args[0];
	if (SpecialComponentList.isWhitePermission(permission)) {
		return PackageManager.PERMISSION_GRANTED;
	}
	if (permission.startsWith("com.google")) {
		return PackageManager.PERMISSION_GRANTED;
	}
	args[args.length - 1] = getRealUid();
	return method.invoke(who, args);
}
 
开发者ID:codehz,项目名称:container,代码行数:13,代码来源:CheckPermission.java

示例9: redirectFilterActions

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
private void redirectFilterActions(IntentFilter filter) {
    List<String> actions = mirror.android.content.IntentFilter.mActions.get(filter);
    ListIterator<String> iterator = actions.listIterator();
    while (iterator.hasNext()) {
        String action = iterator.next();
        if (SpecialComponentList.isActionInBlackList(action)) {
            iterator.remove();
            continue;
        }
        String protectedAction = SpecialComponentList.protectAction(action);
        if (protectedAction != null) {
            iterator.set(protectedAction);
        }
    }
}
 
开发者ID:codehz,项目名称:container,代码行数:16,代码来源:BroadcastSystem.java

示例10: onReceive

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
    Intent protectedIntent = new Intent(intent);
    SpecialComponentList.protectIntent(protectedIntent);
    mContext.sendBroadcast(protectedIntent);
    if (sticky) {
        stickyIntent = intent;
    }
}
 
开发者ID:codehz,项目名称:container,代码行数:10,代码来源:BroadcastSystem.java

示例11: isSystemApp

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
public static boolean isSystemApp(ApplicationInfo applicationInfo) {
    return !GmsSupport.isGmsFamilyPackage(applicationInfo.packageName)
            && ((ApplicationInfo.FLAG_SYSTEM & applicationInfo.flags) != 0
            || SpecialComponentList.isSpecSystemPackage(applicationInfo.packageName));
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:6,代码来源:ComponentUtils.java

示例12: isSystemApp

import com.lody.virtual.client.env.SpecialComponentList; //导入依赖的package包/类
public static boolean isSystemApp(ApplicationInfo applicationInfo) {
    return applicationInfo != null
            && ((ApplicationInfo.FLAG_SYSTEM & applicationInfo.flags) != 0
            || SpecialComponentList.isSpecSystemPackage(applicationInfo.packageName));
}
 
开发者ID:codehz,项目名称:container,代码行数:6,代码来源:ComponentUtils.java


注:本文中的com.lody.virtual.client.env.SpecialComponentList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。