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

Commit e9984e0

Browse files
committed
fix wifi
fix wifi problem moved to androidx generic gradient for nav image
1 parent 15a0725 commit e9984e0

File tree

10 files changed

+167
-183
lines changed

10 files changed

+167
-183
lines changed

app/build.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'io.fabric.tools:gradle:1.24.1'
7+
classpath 'io.fabric.tools:gradle:1.31.2'
88
}
99
}
1010
apply plugin: 'com.android.application'
@@ -16,16 +16,20 @@ repositories {
1616

1717

1818
android {
19-
compileSdkVersion 27
19+
compileSdkVersion 28
2020
buildToolsVersion '27.0.3'
2121
defaultConfig {
2222
applicationId "spacehunn.exploitr.deautherwebgui"
2323
minSdkVersion 19
24-
targetSdkVersion 27
24+
targetSdkVersion 28
2525
versionCode code()
26-
versionName "2.0.5"
26+
versionName "2.0.5-1"
2727
vectorDrawables.useSupportLibrary = true
2828
}
29+
compileOptions {
30+
sourceCompatibility = 1.8
31+
targetCompatibility = 1.8
32+
}
2933
}
3034

3135
static int code() {
@@ -34,11 +38,12 @@ static int code() {
3438

3539
dependencies {
3640
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') {
4044
transitive = true
4145
}
46+
implementation 'com.thanosfisherman.wifiutils:wifiutils:1.6.0'
4247
}
4348

4449

app/fabric.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public.
22
#Tue Sep 05 12:52:59 IST 2017
3-
apiSecret=#############################################################
3+
apiSecret=############################################################

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
1313
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
1414
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
15-
1615
<application
1716
android:name=".Deauther"
1817
android:allowBackup="false"
@@ -34,7 +33,7 @@
3433
</activity>
3534
<meta-data
3635
android:name="io.fabric.ApiKey"
37-
android:value="$#########################@$$$$" />
36+
android:value="#########################################" />
3837
</application>
3938

4039
</manifest>

app/src/main/java/spacehunn/exploitr/deautherwebgui/Deauther.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package spacehunn.exploitr.deautherwebgui;
22

33
import android.app.Application;
4+
import android.content.pm.PackageManager;
5+
import android.os.Build;
46
import android.os.Environment;
57
import android.widget.Toast;
68

@@ -15,9 +17,10 @@ public class Deauther extends Application {
1517
public void onCreate() {
1618

1719
Prefs.getInstance(getBaseContext()).setTime();
20+
super.onCreate();
1821

1922
if (Prefs.getInstance(getBaseContext()).isLogcatState()) {
20-
if (isExternalStorageWritable()) {
23+
if (checkPerms() && isExternalStorageWritable()) {
2124

2225
File appDirectory = new File(Environment.getExternalStorageDirectory() + "/DeAuther");
2326
File logDirectory = new File(appDirectory + "/log");
@@ -45,7 +48,15 @@ public void onCreate() {
4548

4649
}
4750
}
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;
4960
}
5061

5162
public boolean isExternalStorageWritable() {

0 commit comments

Comments
 (0)