正在查看: Minits v4.9.3.32 应用的 FrameworkAppInstallerReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 FrameworkAppInstallerReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xone.android.script.receivers;
import android.annotation.TargetApi;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.xone.android.utils.Utils;
import fb.AbstractC0698k;
import java.util.Stack;
@TargetApi(21)
public final class FrameworkAppInstallerReceiver extends BroadcastReceiver {
public static final Stack a = new Stack();
public static Intent b;
public static void a(CharSequence charSequence) {
Utils.k("XOneAndroidFramework", charSequence);
}
public final void b(Context context, int i, String str) {
try {
context.getApplicationContext().getPackageManager().getPackageInstaller().abandonSession(i);
} catch (SecurityException unused) {
StringBuilder sb2 = new StringBuilder("SecurityException, cannot abandon install session ");
sb2.append(i);
if (!TextUtils.isEmpty(str)) {
sb2.append(", package name ");
sb2.append(str);
}
a(sb2);
}
}
public final boolean c(int i) {
switch (i) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case org.mozilla.javascript.Context.FEATURE_DYNAMIC_SCOPE:
return true;
default:
return false;
}
}
public final void d(Context context) {
Stack stack = a;
if (stack.isEmpty()) {
b = null;
return;
}
Intent intent = (Intent) stack.pop();
if (intent != b) {
context.startActivity(intent);
} else {
b = null;
}
}
@Override
public void onReceive(Context context, Intent intent) {
int i = AbstractC0698k.i(intent, "android.content.pm.extra.SESSION_ID", -1);
String t = AbstractC0698k.t(intent, "android.content.pm.extra.PACKAGE_NAME", "");
int i2 = AbstractC0698k.i(intent, "android.content.pm.extra.STATUS", 1);
Intent k = AbstractC0698k.k(intent, "android.intent.extra.INTENT");
if (i2 != -1 || k == null) {
if (i2 == 0 || c(i2)) {
if (i2 != 0) {
b(context, i, t);
}
d(context);
return;
}
return;
}
k.addFlags(268435456);
Stack stack = a;
stack.push(k);
if (stack.size() == 1) {
context.startActivity(k);
b = k;
}
}
}