forked from cSploit/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdate.java
More file actions
67 lines (58 loc) · 1.18 KB
/
Copy pathUpdate.java
File metadata and controls
67 lines (58 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package org.csploit.android.update;
import android.content.Intent;
import java.io.Serializable;
/**
* just a simple struct to handle archives metadata
*/
public abstract class Update implements Serializable {
public String
url,
name,
path,
version,
outputDir,
executableOutputDir,
md5,
sha1;
public compressionAlgorithm
compression;
public archiveAlgorithm
archiver;
public boolean
skipRoot,
fixShebang,
errorOccurred,
wipeOnFail;
public String
prompt;
public Update() {
reset();
}
public void reset() {
synchronized (this) {
url = name = md5 = sha1 = version = path =
outputDir = executableOutputDir = null;
version = null;
compression = null;
archiver = null;
wipeOnFail = fixShebang = errorOccurred = skipRoot = false;
}
}
public boolean haveIntent() {
return false;
}
public Intent buildIntent() {
return null;
}
public enum compressionAlgorithm {
none,
gzip,
bzip,
xz
}
public enum archiveAlgorithm {
none,
tar,
zip
}
}