Skip to content
This repository was archived by the owner on Aug 5, 2023. It is now read-only.

Commit 9798d13

Browse files
committed
1.2.4
v1.2.4
1 parent 64948cf commit 9798d13

File tree

11 files changed

+240
-103
lines changed

11 files changed

+240
-103
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1+
buildscript {
2+
repositories {
3+
maven { url 'https://maven.fabric.io/public' }
4+
}
5+
6+
dependencies {
7+
classpath 'io.fabric.tools:gradle:1.24.1'
8+
}
9+
}
110
apply plugin: 'com.android.application'
11+
apply plugin: 'io.fabric'
12+
13+
repositories {
14+
maven { url 'https://maven.fabric.io/public' }
15+
}
16+
217

318
android {
419
compileSdkVersion 25
@@ -7,15 +22,12 @@ android {
722
applicationId "spacehunn.exploitr.deautherwebgui"
823
minSdkVersion 19
924
targetSdkVersion 21
10-
versionCode 1
11-
versionName "1.0"
25+
versionCode 124
26+
versionName "1.2.4"
1227
vectorDrawables.useSupportLibrary = true
1328
}
1429
buildTypes {
1530
release {
16-
minifyEnabled true
17-
shrinkResources true
18-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1931
}
2032
}
2133
}
@@ -26,4 +38,7 @@ dependencies {
2638
compile 'com.android.support:design:25.3.1'
2739
compile 'com.android.support.constraint:constraint-layout:1.0.2'
2840
compile 'com.github.zjywill:OverwatchProgress:1.4'
41+
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
42+
transitive = true;
43+
}
2944
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
package="spacehunn.exploitr.deautherwebgui">
55

6+
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
67
<uses-permission android:name="android.permission.INTERNET" />
78
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
89
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
@@ -27,6 +28,9 @@
2728
<category android:name="android.intent.category.LAUNCHER" />
2829
</intent-filter>
2930
</activity>
31+
<meta-data
32+
android:name="io.fabric.ApiKey"
33+
android:value="###################################" /> <!-- enter your key -->
3034
</application>
3135

3236
</manifest>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
package spacehunn.exploitr.deautherwebgui;
2+
3+
import java.util.concurrent.TimeoutException;
4+
5+
/*
6+
* Created by exploitr on 09-09-2017.
7+
*/
8+
9+
class ConnectionChecker {
10+
11+
static int executePing()throws Exception {
12+
Runtime runtime = Runtime.getRuntime();
13+
Process process = runtime.exec("ping -c 1 192.168.4.1");
14+
Worker worker = new Worker(process);
15+
worker.start();
16+
System.out.println("S-D Worker Start!");
17+
try {
18+
worker.join(100);
19+
if (worker.exit != null)
20+
return worker.exit;
21+
else
22+
throw new TimeoutException();
23+
} catch(InterruptedException ex) {
24+
worker.interrupt();
25+
Thread.currentThread().interrupt();
26+
throw ex;
27+
} finally {
28+
process.destroy();
29+
System.out.println("S-D Process Destroyed");
30+
}
31+
}
32+
33+
private static class Worker extends Thread {
34+
private final Process process;
35+
private Integer exit;
36+
private Worker(Process process) {
37+
this.process = process;
38+
}
39+
public void run() {
40+
try {
41+
process.waitFor();
42+
System.out.println("S-D "+process.exitValue());
43+
exit = process.exitValue();
44+
} catch (InterruptedException ignore) {
45+
ignore.getSuppressed();
46+
}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)