DexFile dexFile = new DexFile(path);
Enumeration<String> classNames = dexFile.entries();
The above code is the only way I am using DexFile. This has been deprecated and I want to future proof my code as much as possible. I can't find a working alternative without using an external library such as reflection, which I wish to avoid.
I already have a system to find and load the classes and methods I want, which works as it is. I just need a replacement for the two lines of code.
I have tried using ClassLoader.GetResources(path) and it always returns null regardless of the path I give it, and I've tried every way I can think of.
Can anyone point me in the right direction please.