|
@@ -170,7 +170,12 @@ class SpoofedSimInfoRepo private constructor(private val context: Context) {
|
|
|
} else {
|
|
} else {
|
|
|
if (suspend == true) {
|
|
if (suspend == true) {
|
|
|
suspendPackage(PACKAGE_GMS, PACKAGE_MESSAGING)
|
|
suspendPackage(PACKAGE_GMS, PACKAGE_MESSAGING)
|
|
|
|
|
+ shellRun(
|
|
|
|
|
+ PACKAGE_GMS.kill(),
|
|
|
|
|
+ PACKAGE_MESSAGING.kill()
|
|
|
|
|
+ )
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
val plmn = spoofedSimInfo.mcc + spoofedSimInfo.mnc
|
|
val plmn = spoofedSimInfo.mcc + spoofedSimInfo.mnc
|
|
|
val plmnHex = SimEncoder.encPLMN(spoofedSimInfo.mcc + spoofedSimInfo.mnc)
|
|
val plmnHex = SimEncoder.encPLMN(spoofedSimInfo.mcc + spoofedSimInfo.mnc)
|
|
|
val plmnwactHex = SimEncoder.encPLMNwAcT("$plmn:4000,$plmn:8000,$plmn:0080")
|
|
val plmnwactHex = SimEncoder.encPLMNwAcT("$plmn:4000,$plmn:8000,$plmn:0080")
|
|
@@ -222,12 +227,13 @@ class SpoofedSimInfoRepo private constructor(private val context: Context) {
|
|
|
apduChannel.close()
|
|
apduChannel.close()
|
|
|
|
|
|
|
|
telephonyManager.rebootModem()
|
|
telephonyManager.rebootModem()
|
|
|
- delay(10000)
|
|
|
|
|
- shellRun(
|
|
|
|
|
- PACKAGE_GMS.kill(),
|
|
|
|
|
- PACKAGE_MESSAGING.kill()
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ delay(5000)
|
|
|
|
|
+
|
|
|
if (suspend == true) {
|
|
if (suspend == true) {
|
|
|
|
|
+ shellRun(
|
|
|
|
|
+ PACKAGE_GMS.kill(),
|
|
|
|
|
+ PACKAGE_MESSAGING.kill()
|
|
|
|
|
+ )
|
|
|
resumePackage(PACKAGE_GMS, PACKAGE_MESSAGING)
|
|
resumePackage(PACKAGE_GMS, PACKAGE_MESSAGING)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|