Skip to content

Commit

Permalink
Merge pull request ac3ss0r#5 from god-musfa/main
Browse files Browse the repository at this point in the history
Fixed device rebooting by killing Frida before launching it again
  • Loading branch information
ac3ss0r authored Jul 24, 2023
2 parents 3a3db76 + 06036e3 commit f00e674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/acessor/droidfrida/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ public void launchClicked(View v) {
writeTextFile(appDataPath + "script.js", scriptInput.getText().toString());
showToast("Injecting to the target application...");
if (settingSpawnNew.isChecked())
rootShell.runRootCommand(new Command(0, new String[]{"killall -v " + pkgName }));
rootShell.runRootCommand(new Command(1, new String[]{ fridaBinaryPath + " -s " + appDataPath +
rootShell.runRootCommand(new Command(0, new String[]{"killall -v " + pkgName }));
rootShell.runRootCommand(new Command(1,new String[]{"pkill -9 frida64"}));
rootShell.runRootCommand(new Command(2, new String[]{ fridaBinaryPath + " -s " + appDataPath +
"/script.js" + (settingSpawnNew.isChecked() ? " -f " : " -n ") + pkgName.getText()}) {
@Override
public void commandOutput(int id, String line) {
Expand Down

0 comments on commit f00e674

Please sign in to comment.