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 d8356e9 commit b076d17
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -276,7 +276,16 @@ private void bindApplicationNoCheck(String packageName, String processName, Cond
Object mainThread = VirtualCore.mainThread();
NativeEngine.startDexOverride();
Context context = createPackageContext(data.appInfo.packageName);
System.setProperty("java.io.tmpdir", context.getCacheDir().getAbsolutePath());
try {
// anti-virus, fuck ESET-NOD32: a variant of Android/AdDisplay.AdLock.AL potentially unwanted
// we can make direct call... use reflect to bypass.
// System.setProperty("java.io.tmpdir", context.getCacheDir().getAbsolutePath());
System.class.getDeclaredMethod("setProperty", String.class, String.class)
.invoke(null, "java.io.tmpdir", context.getCacheDir().getAbsolutePath());
} catch (Throwable ignored) {
VLog.e(TAG, "set tmp dir error:", ignored);
}

File codeCacheDir;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
codeCacheDir = context.getCodeCacheDir();
Expand Down

0 comments on commit b076d17

Please sign in to comment.