Android dalvik.system.DexClassLoader class loader loads classes from .jar and .apk files containing a classes.dex entry. This class can allow code execution not installed as part of an Android application.
dalvik.system.DexClassLoader was added in API level 3.
I am trying to build an app which allows users to install additional plugins for the app. I am building plugin modules as apk and trying to load those classes at run time using DexClassLoader.
When i call a non activity class it works fine. When i…
I'm trying to load dynamically external classes using DexClassLoader, like @Shlublu proposes here
When I execute my application and the DexClassLoader object try to find the class, it throws a ClassNotFound exception. I have added read and write…
I got this exception in my project:
No pending exception expected: java.lang.IllegalAccessError: com.mogujie.mgjpfbasesdk.fragment.PFBaseFragment
06-28 20:36:33.834 13192-13192/com.mogujie.uni A/art: art/runtime/thread.cc:1321] at java.lang.Class…
I am using DexClassLoader to load a jar file translated to DEX from Java jar, using the dx tool.
The jar file is in: /storage/sdcard0/Download/br_applications/calculator.dx.jar
I have permissions:
My code is (+/-):
String url_jar_path =…
I would like to test an activity from an other apk, and this test extends ActivityInstrumentationTestCase2 (http://developer.android.com/reference/android/test/ActivityInstrumentationTestCase2.html) because I will need to get the Activity and…
I'm developing a framework/application in Android (5.0+) that needs to be able to install additional "plugins"/apps silently without user interaction.
I started looking into the DALVIK/ART DexClassLoader to implement this functionality. At first it…
I am working on an Application, which can work with external apks. For this i used the DexClassLoader , to load classes, from external apks into an classes-Array, and work with the classes like this:
getFragment(){
for (Class> cls : classes)…
Before Android5.0,I use DexClassloader load plugin dynamiclly,code like this:
DexClassLoader localDexClassLoader = new DexClassLoader(pluginSrcJarDir,cont.getDir("dex", 0).getAbsolutePath(), null,…
I want to instance the ScreenX class in my jar file and try all of the solition on this site but it can not run.
I have two file that;
File folder = getDir("JarFile", MODE_PRIVATE);
//and
File file = new File(folder, "plugin.jar");
I tried…
I followed a tutorial provided on stackoverflow (http://www.pclviewer.com/android/androidJNI.html) to import a device specific library to handle a scanner (Honeywell 70e Black).
the TJDexClassLoader does instantiate correctly (not nil...) but I…
I am trying to design a plugin system for my Activity. To do that I created new class called PluginClass, external to my project and into a different package, that I load with DEXClassLoader from my main app.
I can call all the PluginClass methods…
I want to load dynamic classes from not trusted source.
I found this tutorial to load dynamic classes using DexClassLoader. How can I prevent loaded classes to hack in to my database or do any damage to my application? Is it possible?