Skip to content

Commit

Permalink
[VXP]: fix for anti-virus, ESET-NOD32: a variant of Android/AdDisplay…
Browse files Browse the repository at this point in the history
….AdLock.AL potentially unwanted
  • Loading branch information
weishu.tws committed Mar 28, 2018
1 parent faebc82 commit d8356e9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import android.media.AudioRecord;
import android.os.Build;

import com.lody.virtual.helper.utils.EncodeUtils;

import java.lang.reflect.Method;

import dalvik.system.DexFile;
Expand All @@ -21,8 +23,12 @@ public class NativeMethods {
public static Method gAudioRecordNativeCheckPermission;

public static void init() {
// anti-virus, fuck ESET-NOD32: a variant of Android/AdDisplay.AdLock.AL potentially unwanted
final String openDexFileNative = EncodeUtils.decode("b3BlbkRleEZpbGVOYXRpdmU=");
final String openDexFile = EncodeUtils.decode("b3BlbkRleEZpbGU=");

String methodName =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? "openDexFileNative" : "openDexFile";
Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? openDexFileNative : openDexFile;
for (Method method : DexFile.class.getDeclaredMethods()) {
if (method.getName().equals(methodName)) {
gOpenDexFileNative = method;
Expand Down

0 comments on commit d8356e9

Please sign in to comment.