This repository was archived by the owner on Aug 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +167
-183
lines changed
java/spacehunn/exploitr/deautherwebgui Expand file tree Collapse file tree 10 files changed +167
-183
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
}
5
5
6
6
dependencies {
7
- classpath ' io.fabric.tools:gradle:1.24.1 '
7
+ classpath ' io.fabric.tools:gradle:1.31.2 '
8
8
}
9
9
}
10
10
apply plugin : ' com.android.application'
@@ -16,16 +16,20 @@ repositories {
16
16
17
17
18
18
android {
19
- compileSdkVersion 27
19
+ compileSdkVersion 28
20
20
buildToolsVersion ' 27.0.3'
21
21
defaultConfig {
22
22
applicationId " spacehunn.exploitr.deautherwebgui"
23
23
minSdkVersion 19
24
- targetSdkVersion 27
24
+ targetSdkVersion 28
25
25
versionCode code()
26
- versionName " 2.0.5"
26
+ versionName " 2.0.5-1 "
27
27
vectorDrawables. useSupportLibrary = true
28
28
}
29
+ compileOptions {
30
+ sourceCompatibility = 1.8
31
+ targetCompatibility = 1.8
32
+ }
29
33
}
30
34
31
35
static int code () {
@@ -34,11 +38,12 @@ static int code() {
34
38
35
39
dependencies {
36
40
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
37
- implementation ' com.android.support :appcompat-v7:27. 1.1'
38
- implementation ' com.android.support:design:27. 1.1'
39
- implementation(' com.crashlytics.sdk.android:crashlytics:2.6.8 @aar' ) {
41
+ implementation ' androidx.appcompat :appcompat: 1.1.0 '
42
+ implementation ' com.google. android.material:material: 1.1.0 '
43
+ implementation(' com.crashlytics.sdk.android:crashlytics:2.10.1 @aar' ) {
40
44
transitive = true
41
45
}
46
+ implementation ' com.thanosfisherman.wifiutils:wifiutils:1.6.0'
42
47
}
43
48
44
49
Original file line number Diff line number Diff line change 1
1
# Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public.
2
2
# Tue Sep 05 12:52:59 IST 2017
3
- apiSecret =#############################################################
3
+ apiSecret =############################################################
Original file line number Diff line number Diff line change 12
12
<uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
13
13
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
14
14
<uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
15
-
16
15
<application
17
16
android : name =" .Deauther"
18
17
android : allowBackup =" false"
34
33
</activity >
35
34
<meta-data
36
35
android : name =" io.fabric.ApiKey"
37
- android : value =" $ #########################@$$$$ " />
36
+ android : value =" ######################################### " />
38
37
</application >
39
38
40
39
</manifest >
Original file line number Diff line number Diff line change 1
1
package spacehunn .exploitr .deautherwebgui ;
2
2
3
3
import android .app .Application ;
4
+ import android .content .pm .PackageManager ;
5
+ import android .os .Build ;
4
6
import android .os .Environment ;
5
7
import android .widget .Toast ;
6
8
@@ -15,9 +17,10 @@ public class Deauther extends Application {
15
17
public void onCreate () {
16
18
17
19
Prefs .getInstance (getBaseContext ()).setTime ();
20
+ super .onCreate ();
18
21
19
22
if (Prefs .getInstance (getBaseContext ()).isLogcatState ()) {
20
- if (isExternalStorageWritable ()) {
23
+ if (checkPerms () && isExternalStorageWritable ()) {
21
24
22
25
File appDirectory = new File (Environment .getExternalStorageDirectory () + "/DeAuther" );
23
26
File logDirectory = new File (appDirectory + "/log" );
@@ -45,7 +48,15 @@ public void onCreate() {
45
48
46
49
}
47
50
}
48
- super .onCreate ();
51
+ }
52
+
53
+ private boolean checkPerms () {
54
+ for (String perm : MainActivity .perms ) {
55
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M && (checkSelfPermission (perm ) != PackageManager .PERMISSION_GRANTED )) {
56
+ return false ;
57
+ }
58
+ }
59
+ return true ;
49
60
}
50
61
51
62
public boolean isExternalStorageWritable () {
You can’t perform that action at this time.
0 commit comments