正在查看: Minits v4.9.3.32 应用的 AbstractC0698k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 AbstractC0698k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package fb;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.TextUtils;
import com.xone.android.utils.Utils;
import ha.M;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.json.JSONObject;
public abstract class AbstractC0698k {
public static void A(StringBuilder sb2, String str) {
if (sb2.length() != 0) {
sb2.append("\n");
}
sb2.append(str);
}
public static StringBuilder B(Intent intent) {
StringBuilder sb2 = new StringBuilder();
if (intent == null) {
sb2.append("inspectIntent(): intent == null");
return sb2;
}
ComponentName component = intent.getComponent();
if (component != null) {
String packageName = component.getPackageName();
String className = component.getClassName();
sb2.append("Explicit intent.\nPackage: ");
if (TextUtils.isEmpty(packageName)) {
sb2.append(" Not set");
} else {
sb2.append(packageName);
}
sb2.append("\nClass: ");
if (TextUtils.isEmpty(className)) {
sb2.append(" Not set");
} else {
sb2.append(className);
}
} else {
sb2.append("Implicit intent");
}
sb2.append("\nIntent action: ");
String action = intent.getAction();
if (TextUtils.isEmpty(action)) {
sb2.append("Not set");
} else {
sb2.append(action);
}
sb2.append('\n');
StringBuilder E = E(intent);
StringBuilder r = AbstractC0692e.r(intent.getExtras());
sb2.append((CharSequence) E);
sb2.append('\n');
sb2.append((CharSequence) r);
return sb2;
}
public static boolean C(Intent intent, int i) {
if (intent == null) {
return false;
}
return Utils.X2(intent.getFlags(), i);
}
public static void D(String str, Intent intent) {
Utils.k(str, B(intent));
}
public static StringBuilder E(Intent intent) {
StringBuilder sb2 = new StringBuilder();
if (intent == null) {
sb2.append("inspectIntentFlags(): intent == null");
return sb2;
}
List<Field> h = M.h(Intent.class);
ArrayList arrayList = new ArrayList();
for (Field field : h) {
if (field.getName().startsWith("FLAG_ACTIVITY_")) {
arrayList.add(field);
}
}
int flags = intent.getFlags();
int size = arrayList.size();
int i = 0;
while (i < size) {
Object obj = arrayList.get(i);
i++;
Field field2 = (Field) obj;
int intValue = ((Integer) M.x(field2)).intValue();
if ((flags & intValue) == intValue) {
A(sb2, field2.getName());
}
}
if (sb2.length() <= 0) {
sb2.append("No flags were set on this intent");
}
return sb2;
}
public static boolean F(Context context, String str) {
return context.getApplicationContext().getPackageManager().queryIntentActivities(new Intent(str), 65536).size() > 0;
}
public static void G(Intent intent, int i) {
if (intent == null) {
return;
}
if (Build.VERSION.SDK_INT >= 26) {
intent.removeFlags(i);
} else {
intent.setFlags((~i) & intent.getFlags());
}
}
public static Intent H(JSONObject jSONObject) {
Intent intent = new Intent();
if (jSONObject != null) {
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
Object obj = jSONObject.get(next);
if (obj instanceof Parcelable) {
intent.putExtra(next, (Parcelable) obj);
} else if (obj instanceof Serializable) {
intent.putExtra(next, (Serializable) obj);
}
}
}
return intent;
}
public static String a(Intent intent) {
return b(intent, "");
}
public static String b(Intent intent, String str) {
String action;
return (intent == null || (action = intent.getAction()) == null) ? str : action;
}
public static boolean c(Intent intent, String str, boolean z) {
Bundle extras;
return (!(intent == null) && !TextUtils.isEmpty(str) && (extras = intent.getExtras()) != null && extras.containsKey(str)) ? extras.getBoolean(str) : z;
}
public static Uri d(Activity activity) {
Intent intent;
if (activity == null || (intent = activity.getIntent()) == null) {
return null;
}
return intent.getData();
}
public static Uri e(Intent intent) {
if (intent == null) {
return null;
}
return intent.getData();
}
public static Bundle f(Intent intent) {
if (intent == null) {
return null;
}
return intent.getExtras();
}
public static int g(Activity activity, String str, int i) {
return activity == null ? i : i(activity.getIntent(), str, i);
}
public static int h(Intent intent, String str) {
return i(intent, str, 0);
}
public static int i(Intent intent, String str, int i) {
return (intent == null) | TextUtils.isEmpty(str) ? i : intent.getIntExtra(str, i);
}
public static Intent j(Context context, String str) {
if (F(context, str)) {
return new Intent(str);
}
return null;
}
public static Intent k(Intent intent, String str) {
return l(intent, str, null);
}
public static Intent l(Intent intent, String str, Intent intent2) {
Intent intent3;
return (!(intent == null) && !TextUtils.isEmpty(str) && (intent3 = (Intent) intent.getParcelableExtra(str)) != null) ? intent3 : intent2;
}
public static long m(Intent intent, String str, long j) {
return (intent == null) | TextUtils.isEmpty(str) ? j : intent.getLongExtra(str, j);
}
public static Parcelable n(Intent intent, String str) {
return o(intent, str, null);
}
public static Parcelable o(Intent intent, String str, Parcelable parcelable) {
Bundle extras;
return (!(intent == null) && !TextUtils.isEmpty(str) && (extras = intent.getExtras()) != null && extras.containsKey(str)) ? extras.getParcelable(str) : parcelable;
}
public static Serializable p(Intent intent, String str, Serializable serializable) {
Serializable serializableExtra;
return (!(intent == null) && !TextUtils.isEmpty(str) && (serializableExtra = intent.getSerializableExtra(str)) != null) ? serializableExtra : serializable;
}
public static short q(Intent intent, String str) {
return r(intent, str, (short) 0);
}
public static short r(Intent intent, String str, short s) {
return (intent == null) | TextUtils.isEmpty(str) ? s : intent.getShortExtra(str, s);
}
public static String s(Intent intent, String str) {
return t(intent, str, null);
}
public static String t(Intent intent, String str, String str2) {
CharSequence charSequenceExtra;
return (!(intent == null) && !TextUtils.isEmpty(str) && (charSequenceExtra = intent.getCharSequenceExtra(str)) != null) ? charSequenceExtra.toString() : str2;
}
public static ArrayList u(Intent intent, String str, ArrayList arrayList) {
ArrayList<String> stringArrayListExtra;
return (!(intent == null) && !TextUtils.isEmpty(str) && (stringArrayListExtra = intent.getStringArrayListExtra(str)) != null) ? stringArrayListExtra : arrayList;
}
public static Uri v(Intent intent, String str) {
return w(intent, str, null);
}
public static Uri w(Intent intent, String str, Uri uri) {
Bundle extras;
return (!(intent == null) && !TextUtils.isEmpty(str) && (extras = intent.getExtras()) != null && extras.containsKey(str)) ? (Uri) extras.getParcelable(str) : uri;
}
public static Intent x(Intent intent, String str, int i) {
if (intent == null || TextUtils.isEmpty(str)) {
return null;
}
return intent.putExtra(str, i);
}
public static Intent y(Intent intent, String str, Parcelable parcelable) {
if (intent == null || TextUtils.isEmpty(str)) {
return null;
}
return intent.putExtra(str, parcelable);
}
public static Intent z(Intent intent, String str, String str2) {
if (intent == null || TextUtils.isEmpty(str)) {
return null;
}
return intent.putExtra(str, str2);
}
}