pull/1/head
Milk 4 years ago
parent 3b1f671d61
commit efc390724b
  1. 10
      Bcore/src/main/java/top/niunaijun/blackbox/BlackDexCore.java

@ -1,6 +1,7 @@
package top.niunaijun.blackbox;
import android.content.Context;
import android.net.Uri;
import java.io.File;
@ -51,6 +52,15 @@ public class BlackDexCore {
}
}
public boolean dumpDex(Uri file) {
InstallResult installResult = BlackBoxCore.get().installPackage(file);
if (installResult.success) {
return BlackBoxCore.get().launchApk(installResult.packageName);
} else {
return false;
}
}
public void registerDumpMonitor(IBDumpMonitor monitor) {
BlackBoxCore.getBDumpManager().registerMonitor(monitor.asBinder());
}

Loading…
Cancel
Save