|
@@ -9,6 +9,7 @@ import com.example.modifier.constants.PACKAGE_GSF
|
|
|
import com.example.modifier.constants.PACKAGE_MESSAGING
|
|
import com.example.modifier.constants.PACKAGE_MESSAGING
|
|
|
import com.example.modifier.data.BackupItem
|
|
import com.example.modifier.data.BackupItem
|
|
|
import com.example.modifier.data.BackupItemDao
|
|
import com.example.modifier.data.BackupItemDao
|
|
|
|
|
+import com.example.modifier.extension.clear
|
|
|
import com.example.modifier.extension.disable
|
|
import com.example.modifier.extension.disable
|
|
|
import com.example.modifier.extension.enable
|
|
import com.example.modifier.extension.enable
|
|
|
import com.example.modifier.model.SpoofedSimInfo
|
|
import com.example.modifier.model.SpoofedSimInfo
|
|
@@ -139,12 +140,8 @@ class BackupRepository(
|
|
|
PACKAGE_GSF
|
|
PACKAGE_GSF
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- shellRun(
|
|
|
|
|
- PACKAGE_MESSAGING.disable(),
|
|
|
|
|
- PACKAGE_GMS.disable(),
|
|
|
|
|
- PACKAGE_GSF.disable()
|
|
|
|
|
- )
|
|
|
|
|
- for (pkg in packages) {
|
|
|
|
|
|
|
+ shellRun(PACKAGE_MESSAGING.disable())
|
|
|
|
|
+ for (pkg in listOf(PACKAGE_MESSAGING)) {
|
|
|
for (item in listOf("data.tar.gz", "data_de.tar.gz", "data_ext.tar.gz")) {
|
|
for (item in listOf("data.tar.gz", "data_de.tar.gz", "data_ext.tar.gz")) {
|
|
|
val file = File("${backup.path}/$pkg/$item")
|
|
val file = File("${backup.path}/$pkg/$item")
|
|
|
if (!file.exists()) {
|
|
if (!file.exists()) {
|
|
@@ -163,12 +160,10 @@ class BackupRepository(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
shellRun(
|
|
shellRun(
|
|
|
-// "pm clear com.google.android.gsf",
|
|
|
|
|
- PACKAGE_GSF.enable(),
|
|
|
|
|
|
|
+ PACKAGE_GSF.clear(),
|
|
|
"sleep 1",
|
|
"sleep 1",
|
|
|
-// "pm clear com.google.android.gms",
|
|
|
|
|
- PACKAGE_GMS.enable(),
|
|
|
|
|
-// "sleep 30",
|
|
|
|
|
|
|
+ PACKAGE_GMS.clear(),
|
|
|
|
|
+ "sleep 30",
|
|
|
PACKAGE_MESSAGING.enable(),
|
|
PACKAGE_MESSAGING.enable(),
|
|
|
"sleep 3",
|
|
"sleep 3",
|
|
|
CMD_MESSAGING_APP,
|
|
CMD_MESSAGING_APP,
|