Skip to content

Commit

Permalink
tmp workaround for backups in other dir
Browse files Browse the repository at this point in the history
  • Loading branch information
androidlover5842 committed Jul 31, 2018
1 parent 061e8d7 commit c75af57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/github/twrpbuilder/Interface/Tools.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void Clean() {
file("bin");
file("magic");
file("androidbootimg.magic");

file("build.tar.gz");
}

public void extract(String name) {
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/com/github/twrpbuilder/Thread/RunCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ public class RunCode extends Tools implements Runnable {

public static boolean extract;
public static boolean AndroidImageKitchen;
private static String name;
private static String type;
private boolean mrvl;
private boolean mtk;
private boolean samsung;

public RunCode(String name) {
RunCode.name = name;
cp(name,"build.tar.gz");
if (AndroidImageKitchen) {
System.out.println("Using Android Image Kitchen to extract " + name);
extract("bin");
Expand All @@ -27,7 +26,6 @@ public RunCode(String name) {
}

public RunCode(String name, String type) {
RunCode.name = name;
RunCode.type = type;

if (type.equals("mrvl")) {
Expand All @@ -48,14 +46,10 @@ public RunCode(String name, String type) {
}
}

public static String getName() {
return name;
}

@Override
public void run() {
if (extract) {
new ExtractBackup(name);
new ExtractBackup("build.tar.gz");
}
if (AndroidImageKitchen) {
MakeTree.AndroidImageKitchen = true;
Expand Down

0 comments on commit c75af57

Please sign in to comment.