From 57adc57c7f1ae9f5abcafa21491dfaf27309db03 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Fri, 30 Dec 2022 05:32:46 +0530 Subject: [PATCH] Bump version and set property for testing * Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283 --- app/src/main/java/com/stevesoltys/seedvault/App.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/stevesoltys/seedvault/App.kt b/app/src/main/java/com/stevesoltys/seedvault/App.kt index f3403de7..3cdc3365 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/App.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/App.kt @@ -9,6 +9,7 @@ import android.content.pm.PackageManager.PERMISSION_GRANTED import android.os.Build import android.os.ServiceManager.getService import android.os.StrictMode +import android.os.SystemProperties import android.os.UserManager import com.stevesoltys.seedvault.crypto.cryptoModule import com.stevesoltys.seedvault.header.headerModule @@ -59,6 +60,7 @@ open class App : Application() { override fun onCreate() { super.onCreate() + SystemProperties.set(BACKUP_D2D_PROPERTY, "true") startKoin() if (isDebugBuild()) { StrictMode.setThreadPolicy( @@ -121,6 +123,8 @@ const val MAGIC_PACKAGE_MANAGER = PACKAGE_MANAGER_SENTINEL const val ANCESTRAL_RECORD_KEY = "@ancestral_record@" const val GLOBAL_METADATA_KEY = "@meta@" +const val BACKUP_D2D_PROPERTY = "persist.backup.fake-d2d" + // TODO this doesn't work for LineageOS as they do public debug builds fun isDebugBuild() = Build.TYPE == "userdebug"