1. 首页>>一对一直播>>一对一直播脚本

一对一直播脚本 直播伴侣 松鼠直播管家xp框架root源码

本站分享 一对一直播脚本直播伴侣,root版后台协议发送的安卓原生开发源码!

该源码是安卓原生开发,可以二次重构。可以直接打包运行,功能主要是调用xp框架去hook平台接口。

微信截图_20220904112019.jpg

/* access modifiers changed from: protected */

public void beforeHookedMethod(MethodHookParam methodHookParam) {

HookConfigs.super.beforeHookedMethod(methodHookParam);

Activity activity = (Activity) methodHookParam.thisObject;

if (activity.getClass().equals(XposedHelpers.findClassIfExists(this.f4337a.activityName, this.f4338b.classLoader))) {

ClassLoader classLoader = activity.getApplication().getClassLoader();

String str = activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0).versionName;

StringBuilder sb = new StringBuilder();

sb.append("versionName::  ");

sb.append(str);

sb.append("☆");

String str2 = "main_hook";

Log.d(str2, sb.toString());

if (str.equals(this.f4337a.version)) {

StringBuilder sb2 = new StringBuilder();

sb2.append("辅助工具运行中--恰恰 版本号:");

sb2.append(str);

C4694i0.m14462a(sb2.toString(), activity);

new C3566k6().mo14413a(classLoader, activity);

Log.d(str2, "版本一致,进行如下操作djt16789!");

return;

}

C4694i0.m14462a("当前版本号与辅助工具支持的版本号不一致,无法进行操作,请返回辅助工具更新至支持版本djt16789", activity);

}

}

}


/* renamed from: com.tools.payhelper.HookConfigs$y */

class C2136y extends XC_MethodReplacement {

C2136y(HookConfigs hookConfigs) {

}


/* access modifiers changed from: protected */

public Object replaceHookedMethod(MethodHookParam methodHookParam) {

Log.d("main_hook", "replaceHookedMethod: 333333333333333333");

return Boolean.valueOf(false);

}

}


/* renamed from: com.tools.payhelper.HookConfigs$y0 */

class C2137y0 extends XC_MethodHook {

C2137y0(HookConfigs hookConfigs) {

}


/* access modifiers changed from: protected */

public void beforeHookedMethod(MethodHookParam methodHookParam) {

Object[] objArr = methodHookParam.args;

if (!(objArr == null || objArr[0] == null || !objArr[0].toString().startsWith("de.robv.android.xposed."))) {

methodHookParam.args[0] = "de.robv.android.xposed.ThTest";

}

HookConfigs.super.beforeHookedMethod(methodHookParam);

}

}


/* renamed from: com.tools.payhelper.HookConfigs$z */

class C2138z extends XC_MethodReplacement {

C2138z(HookConfigs hookConfigs) {

}


/* access modifiers changed from: protected */

public Object replaceHookedMethod(MethodHookParam methodHookParam) {

Log.d("main_hook", "replaceHookedMethod: 44444444444444");

return Boolean.valueOf(false);

}

}


/* renamed from: com.tools.payhelper.HookConfigs$z0 */

class C2139z0 extends XC_MethodHook {


/* renamed from: a */

final /* synthetic */ C2321a f4339a;


/* renamed from: b */

final /* synthetic */ LoadPackageParam f4340b;


C2139z0(HookConfigs hookConfigs, C2321a aVar, LoadPackageParam loadPackageParam) {

this.f4339a = aVar;

this.f4340b = loadPackageParam;

}


/* access modifiers changed from: protected */

public void beforeHookedMethod(MethodHookParam methodHookParam) {

HookConfigs.super.beforeHookedMethod(methodHookParam);

Activity activity = (Activity) methodHookParam.thisObject;

if (activity.getClass().equals(XposedHelpers.findClassIfExists(this.f4339a.activityName, this.f4340b.classLoader))) {

ClassLoader classLoader = activity.getApplication().getClassLoader();

String str = activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0).versionName;

StringBuilder sb = new StringBuilder();

sb.append("versionName::  ");

sb.append(str);

sb.append("☆");

String str2 = "main_hook";

Log.d(str2, sb.toString());

if (str.equals(this.f4339a.version)) {

StringBuilder sb2 = new StringBuilder();

sb2.append("辅助工具运行中--青苹果版本号:");

sb2.append(str);

C4694i0.m14462a(sb2.toString(), activity);

new C4192s6().mo14988a(classLoader, activity);

Log.d(str2, "版本一致,进行如下操作!");

return;

}

C4694i0.m14462a("当前版本号与辅助工具支持的版本号不一致,无法进行操作,请返回辅助工具更新至支持版本", activity);

}

}

}


/* renamed from: a */

private void m5343a(String str, String str2, String str3, ClassLoader classLoader) {

if (m5344a(str2)) {

Class findClassIfExists = XposedHelpers.findClassIfExists("android.os.Bundle", classLoader);

Class findClassIfExists2 = XposedHelpers.findClassIfExists("android.app.Activity", classLoader);

StringBuilder sb = new StringBuilder();

sb.append("hook: clsActivity");

sb.append(findClassIfExists2);

Log.d("main_hook", sb.toString());

C2083a1 a1Var = new C2083a1(this, str2, classLoader, str3, str);

XposedHelpers.findAndHookMethod(findClassIfExists2, "onCreate", new Object[]{findClassIfExists, a1Var});

}

}


/* renamed from: a */

private boolean m5344a(String str) {

try {

if (TextUtils.isEmpty(str)) {

return true;

}

Field declaredField = XposedHelpers.class.getDeclaredField("methodCache");

declaredField.setAccessible(true);

HashMap hashMap = (HashMap) declaredField.get(null);

Method findMethodBestMatch = XposedHelpers.findMethodBestMatch(Application.class, "onCreate", new Class[0]);

String format = String.format("%s#%s", new Object[]{str, findMethodBestMatch.getName()});

if (hashMap.containsKey(format)) {

return false;

}

hashMap.put(format, findMethodBestMatch);

return true;

} catch (Throwable th) {

th.printStackTrace();

return true;

}

}


转载联系作者并注明出处:https://www.aizhiboo.com/jiaoben/53.html

联系我们

在线咨询:点击这里给我发消息

微信号:13636268062

工作日:9:30-18:30,节假日休息