-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from banditAmit/amit
adb enabled
- Loading branch information
Showing
6 changed files
with
96 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package bug.bazzar.profiling; | ||
|
||
public class yyydddy { | ||
private static final boolean h0068hhhhh = false; | ||
private static final boolean hh0068hhhh = false; | ||
public static final String n006E006E006En006E006E = "adb_enabled"; | ||
private static final boolean n006E006En006E006E006E = false; | ||
private static final String n006E006Enn006E006E = "ADB_ENABLED"; | ||
private static final boolean n006En006E006E006E006E = false; | ||
public static final String n006En006En006E006E = "android_id"; | ||
private static final boolean n006Enn006E006E006E = false; | ||
private static final String n006Ennn006E006E = "ANDROID_ID"; | ||
private static final boolean nn006E006E006E006E006E = false; | ||
public static final String nn006E006En006E006E = "mock_location"; | ||
private static final boolean nn006En006E006E006E = false; | ||
private static final String nn006Enn006E006E = "ALLOW_MOCK_LOCATION"; | ||
private static final boolean nnn006E006E006E006E = false; | ||
private static final String nnn006En006E006E = "DEVELOPMENT_SETTINGS_ENABLED"; | ||
public static final String nnnn006E006E006E = "development_settings_enabled"; | ||
private static final String nnnnn006E006E = "getString"; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.bug.hook; | ||
import bug.bazzar.profiling.yyydddy; | ||
import android.content.Context; | ||
import android.provider.Settings; | ||
import android.util.Log; | ||
|
||
public class AdbEnabled { | ||
public static boolean AdbEnabled1(Context context) { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("AdbEnabled: "); | ||
sb.append(Settings.Secure.getInt(context.getContentResolver(), yyydddy.n006E006E006En006E006E, 0) == 1); | ||
Log.i("AdbEnabled", sb.toString()); | ||
return Settings.Global.getInt(context.getContentResolver(), yyydddy.n006E006E006En006E006E, 0) == 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.bug.hook; | ||
|
||
import android.content.Context; | ||
import android.os.Handler; | ||
import android.os.Looper; | ||
import com.BugBazaar.utils.AlertDialogManager; | ||
import com.BugBazaar.ui.SplashActivity; | ||
|
||
public class checkdetect { | ||
|
||
private AlertDialogManager alertDialogManager = new AlertDialogManager(); | ||
|
||
public void someMethod(final Context context) { | ||
|
||
if (AdbEnabled.AdbEnabled1(context)) { | ||
|
||
if (Looper.myLooper() == Looper.getMainLooper()) { | ||
// You are on the UI thread, you can show the dialog directly | ||
alertDialogManager.showRootedDeviceAlert(context, "adb enabled"); | ||
} else { | ||
// You are on a non-UI thread, use a Handler to execute on the UI thread | ||
new Handler(Looper.getMainLooper()).post(new Runnable() { | ||
@Override | ||
public void run() { | ||
alertDialogManager.showRootedDeviceAlert(context, "adb enabled"); | ||
} | ||
}); | ||
} | ||
} | ||
} | ||
} |