Is there any way to detect if a mobile session on my android app is in android USB debugging mode or developer mode, or otherwise running automation via tools such as appium
Asked
Active
Viewed 67 times
1 Answers
0
The simplest way:
if (BuildConfig.DEBUG) {
return "debug";
}else {
return "not debug";
}
Depending on what your are doing there may be a better way, just Google Buildconfig.Degug

Javier Refuerzo
- 274
- 3
- 7