saleks28

Untitled

Sep 12th, 2020
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.     DexClassLoader loader = new DexClassLoader("/sdcard/classes.dex";, = getApplicationInfo().dataDir, null, getClass().getClassLoader());
  2.     try {
  3.         Class cl = classLoader.loadClass("com.example.myapplication.MyService");
  4.         Method meth = cl.getMethod("onStartCommand", Intent.class, int.class, int.class);
  5.         meth.invoke(c.newInstance(), null);
  6.     } catch (Exception e) {
  7.         e.printStackTrace();
  8.     }
  9.  
Add Comment
Please, Sign In to add comment