You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open *build.sh.skeleton*, a skeleton of the main build script.
51
58
You will find out following four commented lines.
52
-
Assign an appropriate values to variable and uncomment it.
53
59
54
60
```
55
61
#export ADK_ROOT=""
@@ -58,20 +64,23 @@ Assign an appropriate values to variable and uncomment it.
58
64
#export DX_VERSION=""
59
65
```
60
66
61
-
Once the editing is done, typing the following commands:
67
+
Assign appropriate values to the variables and uncomment them.
68
+
Once the editing is done, type the following commands:
69
+
62
70
```
63
71
cp build.sh.skeleton build.sh
64
72
chmod 700 build.sh
65
73
```
66
74
67
75
#### Step 6. Build.
68
76
69
-
Now is the time to do the actual build!
77
+
Now, it is the time to do the actual build.
78
+
70
79
```
71
80
./build.sh
72
81
```
73
82
74
-
If the build process was succesful,
83
+
If the build process is succesful,
75
84
you will see two new files in the directory:
76
85
*inst.sh* and *test.sh*. Voila!
77
86
@@ -80,14 +89,14 @@ Using the Back-End
80
89
====================
81
90
82
91
#### Step 1. Create an Emulator
83
-
Do following steps to create Android Vritual Device. The steps will create emulator image.
92
+
Do following steps to create Android Vritual Device. The steps will create an emulator image.
84
93
85
-
1. Luanch SDK Manager (ADK_ROOT/tools/android)
94
+
1. Luanch SDK Manager (<ADK_ROOT>/tools/android)
86
95
2. Select 'Tools' -> 'Manage AVDs'
87
96
3. Push 'New' button to create emulator.
88
-
To reproduce the experimental result in the paper, We recommand to use 'Galaxy S' as a device, 'API Level 16' as a target, 'ARM' as a CPU/API. This step creates Android Virtual Device (AVD) image.
97
+
To reproduce the experimental result in the paper, We recommand to use 'Nexus S' as a device, 'API Level 16' as a target, 'ARM' as a CPU/API. This step creates Android Virtual Device (AVD) image.
89
98
90
-
You can find the official guideline about emulator management:
99
+
You can find the official guideline about the emulator management from here:
-wipe-data options it to start emulator from the factory-reset state -dns-server 127.0.0.1 option is a trick to disabling internet access. <AVD_NAME> refer the name of AVD created by step 2.
108
+
-wipe-data options it to start an emulator from the factory-reset state -dns-server 127.0.0.1 option is a trick to disabling internet access. <AVD_NAME> refer the name of AVD created by step 2.
100
109
101
110
102
111
#### Step 3. Execute the Back-End
103
112
The tool can be executed using the test.sh script generaated by the build scipt.
104
-
For example, to test mininote using SwiftHand with random seed 0 for 1 hour:
113
+
For example, to test *dist/benchmark/mininote.modified.apk* using SwiftHand with random seed 0 for 1 hour:
105
114
```
106
115
./test.sh dist/benchmark/mininote.modified.apk swift 3600 0 <OUTPUT_DIR>
107
116
```
108
117
109
-
Please replace <OUTPUT_DIR> to the output directory you want.
110
-
You can try any programs in the benchmark directory by replacing 'mininote.modified.apk' to an appropriate value.
118
+
Please replace <OUTPUT_DIR> to the output directory you want.
119
+
You can try any program in the benchmark directory by replacing 'mininote.modified.apk' to an appropriate value.
111
120
112
121
113
122
@@ -121,14 +130,16 @@ With a compiled front-end, you can instrument an apk file using the inst.sh scri
121
130
./inst.sh <TARGET.apk>
122
131
```
123
132
124
-
Please make sure to replace <TARGET.apk> with the path of the target apk file. You can find two example target files located in *dist/unmofidied* directory.
133
+
Please make sure to replace <TARGET.apk> with the path to the target apk file. You can find two example target files located in *dist/unmofidied* directory.
125
134
If the instrumentation process success, the front-end generates several files including the following two files,
126
-
in the direcory containing the source apk file.
135
+
in the direcory containing the original apk file.
127
136
128
137
- TARGET.modified.apk
129
-
- TARGET.json
138
+
- TARGET.modified.json
130
139
131
-
If you have these two files, you are ready to play with the back-end. Please make sure to have these two files in the same directory.
140
+
*TARGET.modified.apk* is an instrumented application file.
141
+
*TARGET.modified.json* is a text file containing an information about the target application.
142
+
To run a test, the back end requires both files to be in a singles directory.
0 commit comments