正在查看: 万能钥匙 v1.1.23 应用的 DialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 DialogActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.wifitutu.aab;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import java.util.HashMap;
public class DialogActivity extends AppCompatActivity {
public static final String INTENT_MAP = "intent_map";
public void allow() {
Intent andClearPendingIntent = Phantom.getAndClearPendingIntent();
Context originalContext = Phantom.getOriginalContext();
Bundle extraBundle = Phantom.getExtraBundle();
StringBuilder sb = new StringBuilder();
sb.append("跳转Intent详情:\nURI: ");
sb.append(andClearPendingIntent.toUri(4));
sb.append("\nFlags: 0x");
sb.append(Integer.toHexString(andClearPendingIntent.getFlags()));
sb.append("\nPackage: ");
sb.append(andClearPendingIntent.getPackage());
sb.append("\nComponent: ");
sb.append(andClearPendingIntent.getComponent());
sb.append("\nExtras: ");
sb.append(extraBundle != null ? extraBundle.toString() : "null");
Log.d("Phantom", sb.toString());
try {
andClearPendingIntent.setPackage(null);
andClearPendingIntent.setComponent(null);
andClearPendingIntent.putExtra("phantom_bypass_market_check", true);
if (extraBundle != null) {
andClearPendingIntent.putExtras(extraBundle);
}
andClearPendingIntent.addFlags(335544320);
if (originalContext instanceof Activity) {
LogUtil.d("originalContext跳转");
((Activity) originalContext).startActivity(andClearPendingIntent);
} else {
LogUtil.d("getAppContext跳转");
andClearPendingIntent.addFlags(268435456);
Phantom.getAppContext().startActivity(andClearPendingIntent);
}
} catch (Exception e) {
LogUtil.e("主跳转失败", e);
}
finish();
}
public void cancel() {
finish();
}
public void finish() {
super/*android.app.Activity*/.finish();
overridePendingTransition(0, 0);
}
public void onCreate(Bundle bundle) {
super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
LogUtil.e("Phantom", "onCreate");
if (PineConfig.dialogInterceptor != null) {
HashMap<String, String> hashMap = new HashMap<>();
try {
hashMap = (HashMap) getIntent().getSerializableExtra(INTENT_MAP);
} catch (Exception unused) {
}
PineConfig.dialogInterceptor.showDialog(this, new Runnable() {
@Override
public final void run() {
DialogActivity.this.allow();
}
}, new Runnable() {
@Override
public final void run() {
DialogActivity.this.cancel();
}
}, hashMap);
}
}
}