|
@@ -21,13 +21,12 @@ import android.view.accessibility.AccessibilityNodeInfo;
|
|
|
|
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
|
|
-import com.blankj.utilcode.util.SPUtils;
|
|
|
import com.elvishew.xlog.XLog;
|
|
|
import com.google.gson.Gson;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.LinkedList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Locale;
|
|
|
|
|
|
/**
|
|
|
* AccessibilityService for ussd windows on Android mobile Telcom
|
|
@@ -84,7 +83,10 @@ public class USSDService extends AccessibilityService {
|
|
|
|
|
|
String response = event.getText().toString();
|
|
|
XLog.i("USSDService response = " + response);
|
|
|
-
|
|
|
+ if (response.toLowerCase(Locale.US).contains("ussd code running")) {
|
|
|
+ XLog.e("中断执行,监测到是 ---> " + response);
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (LoginView(event) && notInputText(event)) {
|
|
|
XLog.i("USSDService: 1");
|
|
|
clickOnButton(event, 0);
|
|
@@ -102,7 +104,6 @@ public class USSDService extends AccessibilityService {
|
|
|
USSDController.instance.callbackInvoke.over(response);
|
|
|
|
|
|
} else if (isUSSDWidget(event)) {
|
|
|
-
|
|
|
XLog.i("USSDService: 3");
|
|
|
if (notInputText(event)) {
|
|
|
XLog.i("USSDService: 4");
|