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 have an Android App that uses lot of JAR's and have hit the limit of 65K methods. To resolve the issue, I used Android Maven Plugin 4.0.0-rc.1 that supports multi-dex option. I was able to generate the APK file which multiple dex files;…
Im trying to dynamic load class of BroadcastReceiver and stuck at this problem for over 2 weeks. It driving me crazy and project is on the dead line.
Any help would be appreciate.
I use this code to call the dex class loader:
DexClassLoader…
I have created 2 android applications (Application A and Application B) that share same process and user ID. I have defined a Generic Activity in both the applications. The name space and class name of GenericActivity is same in both the…
I am developing an Android app which reads excel file from assets. I was using POI-3.9 library for reading .xls files and was working properly. Then I had to read .xlsx files as well, so I added other jar files like poi-ooxml-schemas-3.9.jar,…
I want to dynamically load an encrypted jar file. I have loaded a Dex file dynamically and it works fine. I have tried it both on emulator and my android device. Now i want to load the encrypted file. As far as i understand i will have to customize…
I am loading a class using dalvik.system.PathClassLoader and by reflection creating newInstance from the constructor. This works fine if the loaded class contains only the "standard" java and android libs but not when it imports "custom" libs, even…
I have a working code that links with apk-plugin.
This code stopped working after I run another application on the android emulator.
DexClassLoader no longer find the apk-file.
How it looks
loadClass begin dropping to exception with text:
Didn't…
I have an apk that contains classes.dex. I dont't have apk source code. I have loaded an activity from dex file(LoginActivity) and implemented onClicklistener for button1 in LoginActivity. I succeeded to load dex file and started activity from dex…
I have A problem with Loading SO Libraries Dynamically in android and in order for people to understand why I actually need to do this and maybe suggest different ways to do it I'm going to explain briefly the project. I'm working on a research…
I have a field in MainActivity like this
public class MainActivity extends AppCompatActivity {
private static String field = "abc";
private void setField(Intent intent) {
String field2;
if (intent != null && (field2 =…
I have two APKs. First APK is a main APK which loads second APK.
In the second APK I have next code:
@Entity
public class RequestEntity {
@PrimaryKey
@NonNull
public String uid;
@ColumnInfo(name = "bucketName")
public String…
Is it possible to load an android sdk class dynamically at runtime?
Let's say I want to reload the class android.os.Debug dynamically at runtime, is it possible to reload it dynamically.
I tried extending ClassLoader and android provided…
I'm trying to get a View from APKs that implement a particular interface, but my app keeps crushing. What is it that I might be getting wrong? The following is my approach:
Here is the interface that gets passed around and gets implemented by…
I have an app called MyNiceApp installed in the internal storage /data/app/com.myniceapp.root_pkg.
QUESTIONS 1
Is it possible to programatically download files into /data/app/com.myniceapp.root_pkg
QUESTIONS 2
MyNiceApp is the core app that…
My app is called MyNiceApp. MyNiceApp is mostly just a core that loads a CORE view which gets populated by other plugins which the user downloads as wishes. I'm thinking that Android will install MyNiceApp in a folder called MyNiceApp, just as linux…