I'm not sure if what I'm trying to achieve is possible.
I'm loading a class from another apk, like this:
final Class classToLoad = (Class<Object>) pathClassLoader.loadClass(classPath);
Which is all good, but I need to extend it, so I'm trying to create a Subclass which extends it:
class other extends classToLoad {...code to follow...}
But the compiler is moaning that it's expecting the class name instead of classToLoad
Is there any way around it?
Before I get shouted down, yes I'm trying to modify behaviour of another app, which I do not have the source code of, but I'm not trying to "hack" a paid app or similar, I'm only trying to start a service which isn't exported and the only way to start the service is to open the activity and tap on a menu item, and I'm trying to automate this, although I have a feeling I will be told this is not possible.