com.virjar.android.hidden.helper.HelperDexClassLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AndroidHiddenHelper Show documentation
Show all versions of AndroidHiddenHelper Show documentation
some utils with android hidden api, work on none aosp scene
package com.virjar.android.hidden.helper;
import dalvik.system.BaseDexClassLoader;
import java.io.File;
import java.nio.ByteBuffer;
/**
* 开放所有构造函数,允许继承Classloader,以此逃过双亲委派
*/
public class HelperDexClassLoader extends BaseDexClassLoader {
public HelperDexClassLoader(String dexPath, File optimizedDirectory, String librarySearchPath, ClassLoader parent) {
super(dexPath, optimizedDirectory, librarySearchPath, parent);
}
public HelperDexClassLoader(String dexPath, File optimizedDirectory, String librarySearchPath, ClassLoader parent, boolean isTrusted) {
super(dexPath, optimizedDirectory, librarySearchPath, parent, isTrusted);
}
public HelperDexClassLoader(String dexPath, String librarySearchPath, ClassLoader parent, ClassLoader[] libraries) {
super(dexPath, librarySearchPath, parent, libraries);
}
public HelperDexClassLoader(String dexPath, String librarySearchPath, ClassLoader parent, ClassLoader[] sharedLibraryLoaders, boolean isTrusted) {
super(dexPath, librarySearchPath, parent, sharedLibraryLoaders, isTrusted);
}
public HelperDexClassLoader(ByteBuffer[] dexFiles, String librarySearchPath, ClassLoader parent) {
super(dexFiles, librarySearchPath, parent);
}
public HelperDexClassLoader(ByteBuffer[] dexFiles, ClassLoader parent) {
super(dexFiles, parent);
}
}