xiongzhu 10 месяцев назад
Родитель
Сommit
8112ecc38a

+ 3 - 1
app/src/main/java/com/example/modifier/constants/Packages.kt

@@ -10,4 +10,6 @@ const val PACKAGE_CLASH = "com.github.metacubex.clash.meta"
 
 const val PACKAGE_TELEPHONY = "com.android.providers.telephony"
 
-const val PACKAGE_CLEAN_SMS = "com.example.cleansms"
+const val PACKAGE_CLEAN_SMS = "com.example.cleansms"
+
+const val PACKAGE_PLAY = "com.android.vending"

+ 7 - 0
app/src/main/java/com/example/modifier/repo/SpoofedInfoRepo.kt

@@ -15,6 +15,7 @@ import com.example.modifier.BuildConfig
 import com.example.modifier.baseTag
 import com.example.modifier.constants.PACKAGE_GMS
 import com.example.modifier.constants.PACKAGE_MESSAGING
+import com.example.modifier.constants.PACKAGE_PLAY
 import com.example.modifier.constants.SIMView
 import com.example.modifier.extension.kill
 import com.example.modifier.model.SpoofedSimInfo
@@ -286,6 +287,12 @@ class SpoofedInfoRepo private constructor(private val context: Context) {
 
             if (suspend == true) {
                 shellRun(
+                    PACKAGE_PLAY.kill(),
+                    "sleep 3",
+                    PACKAGE_GMS.kill(),
+                    "sleep 3",
+                    PACKAGE_MESSAGING.kill(),
+                    "sleep 3",
                     PACKAGE_GMS.kill(),
                     "sleep 3",
                     PACKAGE_MESSAGING.kill(),

+ 1 - 1
app/src/main/java/com/example/modifier/utils/GoogleMessage.kt

@@ -25,7 +25,7 @@ import java.io.File
 import java.io.FileOutputStream
 
 fun injectOTP(otp: String) {
-    if (ROOT_ACCESS) {
+    if (ROOT_ACCESS && false) {
         val intent = Intent()
         intent.setAction("com.example.modifier.sms")
         intent.putExtra("sender", "3538")

+ 2 - 2
app/src/main/java/com/example/modifier/utils/Package.kt

@@ -7,6 +7,7 @@ import com.example.modifier.constants.CMD_START_PLAY_STORE
 import com.example.modifier.constants.PACKAGE_GMS
 import com.example.modifier.constants.PACKAGE_GSF
 import com.example.modifier.constants.PACKAGE_MESSAGING
+import com.example.modifier.constants.PACKAGE_PLAY
 import com.example.modifier.extension.clear
 import com.example.modifier.extension.kill
 
@@ -51,7 +52,6 @@ suspend fun clear(gsf: Boolean, gms: Boolean, sms: Boolean) {
 suspend fun resetAll() {
     try {
         clearConv()
-        Settings.Secure.putString()
         shellRun(
             "settings put secure location_mode 0",
             "settings put secure android_id ${genAndroidId()}",
@@ -92,7 +92,7 @@ suspend fun resetAll() {
 //            "pm revoke com.google.android.gms android.permission.WRITE_CALL_LOG",
 //            "pm revoke com.google.android.gms android.permission.BODY_SENSORS",
 //            "pm revoke com.google.android.gms android.permission.DUMP",
-            "sleep 2",
+            "sleep 10",
             PACKAGE_MESSAGING.clear(),
             "sleep 3",
             CMD_MESSAGING_APP,