當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。