|
@@ -259,9 +259,9 @@ class TaskRunner(
|
|
|
suspend fun reset() {
|
|
suspend fun reset() {
|
|
|
val context = getContext()
|
|
val context = getContext()
|
|
|
val dir = ContextCompat.getExternalCacheDirs(context)[0]
|
|
val dir = ContextCompat.getExternalCacheDirs(context)[0]
|
|
|
- val pifPath = File(dir, "pif1.json").path
|
|
|
|
|
- Utils.copyAsset(context.assets, "pif1.json", pifPath)
|
|
|
|
|
- shellRun("cp $pifPath /data/adb/pif.json")
|
|
|
|
|
|
|
+// val pifPath = File(dir, "pif1.json").path
|
|
|
|
|
+// Utils.copyAsset(context.assets, "pif1.json", pifPath)
|
|
|
|
|
+// shellRun("cp $pifPath /data/adb/pif.json")
|
|
|
if (isOldVersion(context)) {
|
|
if (isOldVersion(context)) {
|
|
|
withTimeout(1.hours) {
|
|
withTimeout(1.hours) {
|
|
|
while (true) {
|
|
while (true) {
|
|
@@ -395,7 +395,7 @@ class TaskRunner(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
appStateRepo.updateRuntimeFlags(reqState = ReqState.NONE)
|
|
appStateRepo.updateRuntimeFlags(reqState = ReqState.NONE)
|
|
|
- shellRun("rm /data/adb/pif.json")
|
|
|
|
|
|
|
+// shellRun("rm /data/adb/pif.json")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private suspend fun requestNumberAtomic(store: Boolean? = false) {
|
|
private suspend fun requestNumberAtomic(store: Boolean? = false) {
|