本文整理汇总了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);
}
}
示例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);
}
}
}
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
示例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);
}
}
}
示例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;
}
}
示例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));
}
示例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));
}