正在查看: 饼干视频 v4.1.0 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 饼干视频 v4.1.0 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moqi.sdk.utils;
import android.content.Context;
import android.content.SharedPreferences;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class c0 {
public static String a = "hostcu";
public static String b = "hostres";
public static String c = "hostcdn";
public static class a {
private static final Method a = a();
private a() {
}
private static Method a() {
try {
return SharedPreferences.Editor.class.getMethod("apply", new Class[0]);
} catch (NoSuchMethodException unused) {
return null;
}
}
public static void a(SharedPreferences.Editor editor) {
try {
Method method = a;
if (method != null) {
method.invoke(editor, new Object[0]);
return;
}
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused) {
}
editor.commit();
}
}
public static String a(Context context) {
return context == null ? "https://lo.unichroma.info/base.txt" : context.getSharedPreferences("local_data", 0).getString(c, "https://lo.unichroma.info/base.txt");
}
public static String a(Context context, String str, String str2) {
return context.getSharedPreferences("local_data", 0).getString(str, str2);
}
public static void a(Context context, String str, Object obj) {
String obj2;
if (obj != null) {
SharedPreferences.Editor edit = context.getSharedPreferences("local_data", 0).edit();
if (!(obj instanceof String)) {
if (obj instanceof Integer) {
edit.putInt(str, ((Integer) obj).intValue());
} else if (obj instanceof Boolean) {
edit.putBoolean(str, ((Boolean) obj).booleanValue());
} else if (obj instanceof Float) {
edit.putFloat(str, ((Float) obj).floatValue());
} else if (obj instanceof Long) {
edit.putLong(str, ((Long) obj).longValue());
} else {
obj2 = obj.toString();
}
a.a(edit);
}
obj2 = (String) obj;
edit.putString(str, obj2);
a.a(edit);
}
}
public static String b(Context context) {
return context == null ? "rh.gosjf.com" : context.getSharedPreferences("local_data", 0).getString(a, "rh.gosjf.com");
}
public static String c(Context context) {
return context == null ? "gs.xfzts.com" : context.getSharedPreferences("local_data", 0).getString(b, "gs.xfzts.com");
}
}