xiongzhu 1 год назад
Родитель
Сommit
7feb8552b6
1 измененных файлов с 14 добавлено и 12 удалено
  1. 14 12
      scripts/_spoof_gms.js

+ 14 - 12
scripts/_spoof_gms.js

@@ -738,19 +738,21 @@ Java.perform(function () {
         // }
     } catch (error) {}
 
-    const ftit = Java.use("ftit")
-    const ftgv = Java.use("ftgv")
-    ftit.h.overload("ftgv").implementation = function (ftgvVar) {
-        try {
-            Log.e(`ftit.h(
-                this=${dump(this)},
-                ftgvVar=${dump(ftgvVar)})`)
-            return Java.use("ftiu").$new(this, ftgvVar)
-        } catch (e) {
-            e.printStackTrace()
-            Log.e(`ftit.h exception: ${e}`)
+    try {
+        const ftit = Java.use("ftit")
+        const ftgv = Java.use("ftgv")
+        ftit.h.overload("ftgv").implementation = function (ftgvVar) {
+            try {
+                Log.e(`ftit.h(
+                    this=${dump(this)},
+                    ftgvVar=${dump(ftgvVar)})`)
+                return Java.use("ftiu").$new(this, ftgvVar)
+            } catch (e) {
+                e.printStackTrace()
+                Log.e(`ftit.h exception: ${e}`)
+            }
         }
-    }
+    } catch (error) {}
 
     const Secure = Java.use("android.provider.Settings$Secure")
     Secure.getString.overload(