Velasquez_V4 v3.0.0版本的 MD5 值为:f925d3b85f8d5849bcc8f37caec6acf7
以下内容为反编译后的 DisableClipboardAccess.java 源代码,内容仅作参考
package com.applisto.appcloner.classes;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Base64;
import android.util.Log;
import android.widget.Toast;
import com.applisto.appcloner.classes.util.C0023;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import obfuse4.obfuse.NPStringFog4;
class DisableClipboardAccess {
private static final int f64 = 30000;
private String f67;
private ClipData f68;
private boolean f69;
private Context f70;
private boolean f71;
private boolean f72;
private boolean f74;
private SharedPreferences f75;
private boolean f76;
private String f77;
private static final String f66 = DisableClipboardAccess.class.getSimpleName();
private static final ClipData f65 = ClipData.newPlainText("", "");
private List<ClipboardManager.OnPrimaryClipChangedListener> f73 = new CopyOnWriteArrayList();
private Handler f78 = new Handler();
public DisableClipboardAccess(C0065 cloneSettings) {
this.f76 = cloneSettings.m368(NPStringFog4.decode("14165C10534151265E5940545E531054"), false).booleanValue();
if (this.f76) {
this.f74 = cloneSettings.m368(NPStringFog4.decode("140147155B4640005C44735A5842005F004B00"), false).booleanValue();
} else {
this.f71 = cloneSettings.m368(NPStringFog4.decode("000D4607505951265E5940545E531054335C0500705007574244"), false).booleanValue();
this.f72 = cloneSettings.m368(NPStringFog4.decode("000D4607505951265E5940545E531054364B0D105472075154444B"), false).booleanValue();
}
this.f69 = cloneSettings.m368(NPStringFog4.decode("07085C16505A55175664595B545D1744"), false).booleanValue();
this.f77 = cloneSettings.m375(NPStringFog4.decode("170141255E5C44075D514252755316512E573710504110"), "");
String str = f66;
Log.i(str, NPStringFog4.decode("200D4607505951265E5940545E531054205A070142405F125C674A584058435727085C16505A5517560A10") + this.f76 + NPStringFog4.decode("484458365747470C4144555845710E59115B0B0543575E12") + this.f74 + NPStringFog4.decode("484458225B4655075E55735A5842005F004B00365452007352545D42450317") + this.f71 + NPStringFog4.decode("484458225B4655075E55735A5842005F004B0033435A105770545B54454A0D12") + this.f72 + NPStringFog4.decode("484458255E5C44075D514252655B0F550E4C105E11") + this.f69);
}
public void m263(Context context) {
if (this.f71 || this.f72 || this.f76 || this.f69) {
this.f70 = context;
this.f75 = PreferenceManager.getDefaultSharedPreferences(context);
m259(context);
}
if (!TextUtils.isEmpty(this.f77)) {
try {
ClipboardManager clipboardManager = (ClipboardManager) context.getSystemService(NPStringFog4.decode("07085C16505A551756"));
clipboardManager.setPrimaryClip(ClipData.newPlainText("", this.f77));
} catch (Exception e) {
Log.w(f66, e);
}
}
}
private void m259(Context context) {
Object originalService;
String decode = NPStringFog4.decode("17375014445C5700");
String decode2 = NPStringFog4.decode("09375014445C5700");
m260();
try {
ClipboardManager clipboardManager = (ClipboardManager) context.getSystemService(NPStringFog4.decode("07085C16505A551756"));
clipboardManager.hasText();
try {
Field field = clipboardManager.getClass().getDeclaredField(decode2);
field.setAccessible(true);
originalService = field.get(clipboardManager);
} catch (NoSuchFieldException e) {
Field field2 = clipboardManager.getClass().getDeclaredField(decode);
field2.setAccessible(true);
originalService = field2.get(null);
}
Object finalOriginalService = originalService;
InvocationHandler invocationHandler = new C0077(this, clipboardManager, finalOriginalService);
Class<?> clazz = Class.forName(NPStringFog4.decode("050A51145D5C504B515F5E42545C161E287A080D41510B534353"));
Object proxy = Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{clazz}, invocationHandler);
if (Build.VERSION.SDK_INT < 26 && !NPStringFog4.decode("2B").equals(Build.VERSION.CODENAME)) {
Field field3 = clipboardManager.getClass().getDeclaredField(decode);
field3.setAccessible(true);
field3.set(null, proxy);
Log.i(f66, NPStringFog4.decode("0D0A4612535958265E5940545E5310542C580A055656167A5E58530A165059411005590A57511415405F484F"));
}
Field field4 = clipboardManager.getClass().getDeclaredField(decode2);
field4.setAccessible(true);
field4.set(clipboardManager, proxy);
Log.i(f66, NPStringFog4.decode("0D0A4612535958265E5940545E5310542C580A055656167A5E58530A165059411005590A57511415405F484F"));
} catch (Exception e2) {
Log.w(f66, e2);
}
}
public void m262(ClipboardManager clipboardManager, ClipData clipData) {
try {
if (f65.equals(clipData)) {
Log.i(f66, NPStringFog4.decode("171054144676580C42525F57435636590C5C0B11450844575C474C48165A5B5B144451074654"));
return;
}
this.f78.removeCallbacksAndMessages(null);
this.f78.postDelayed(new RunnableC0078(this, clipboardManager), 100L);
this.f78.postDelayed(new RunnableC0079(this), 30000L);
Log.i(f66, NPStringFog4.decode("171054144676580C42525F57435636590C5C0B114508444145564A45535D1751080D45045D5446011244595B545D1744"));
} catch (Throwable t) {
Log.w(f66, t);
}
}
public static void m257(Context context, String expectedClipDataToString) {
Log.i(f66, NPStringFog4.decode("070850074076580C42525F5743565910"));
try {
ClipboardManager clipboardManager = (ClipboardManager) context.getSystemService(NPStringFog4.decode("07085C16505A551756"));
String currentClipDataToString = "" + clipboardManager.getPrimaryClip();
if (currentClipDataToString.equals(expectedClipDataToString)) {
Log.i(f66, NPStringFog4.decode("070850074076580C42525F574356591002550105435A0A5511545458465B58531600"));
clipboardManager.setPrimaryClip(f65);
Toast.makeText(context, NPStringFog4.decode("27085C16505A55175610535A5453105505"), 0).show();
} else {
Log.i(f66, NPStringFog4.decode("070850074076580C42525F57435659100F561044525F0153435E5656165A5B5B14065A0740510F45545F455855120D44095C1644525F0D421153594557"));
}
} catch (Exception e) {
Log.w(f66, e);
}
}
private void m260() {
if (this.f74) {
try {
String s = this.f75.getString(NPStringFog4.decode("140147155B4640005C446F555D5B126F05581005"), null);
if (!TextUtils.isEmpty(s)) {
byte[] bytes = Base64.decode(new C0023(NPStringFog4.decode("031251155A535E174B08475359475603")).m334(s), 0);
Parcel parcel = Parcel.obtain();
parcel.unmarshall(bytes, 0, bytes.length);
parcel.setDataPosition(0);
this.f68 = (ClipData) ClipData.CREATOR.createFromParcel(parcel);
Log.i(f66, NPStringFog4.decode("1705430371595D15505F5144557B0460044B170D4247015C450C18525A5047500B05470212595B04565554"));
}
} catch (Exception e) {
Log.w(f66, e);
}
}
}
public void m261() {
if (this.f74 && this.f68 != null) {
try {
Parcel parcel = Parcel.obtain();
this.f68.writeToParcel(parcel, 0);
byte[] bytes = parcel.marshall();
String s = Base64.encodeToString(bytes, 2);
this.f75.edit().putString(NPStringFog4.decode("140147155B4640005C446F555D5B126F05581005"), new C0023(NPStringFog4.decode("031251155A535E174B08475359475603")).m336(s)).commit();
Log.i(f66, NPStringFog4.decode("1705430371595D15505F5144557B0460044B170D4247015C450C18525A5047500B054702124655135754"));
} catch (Exception e) {
Log.w(f66, e);
}
}
}
public static <T extends Parcelable> T m258(T parcelable) {
if (parcelable == null) {
return null;
}
Parcel p = null;
try {
p = Parcel.obtain();
p.writeValue(parcelable);
p.setDataPosition(0);
return (T) p.readValue(ClipData.class.getClassLoader());
} finally {
if (p != null) {
p.recycle();
}
}
}
}