[DO NOT MERGE] 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
This commit is contained in:
parent
6aa9632e83
commit
66334db0e7
3 changed files with 6 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.stevesoltys.seedvault"
|
package="com.stevesoltys.seedvault"
|
||||||
android:versionCode="33030020"
|
android:versionCode="33030021"
|
||||||
android:versionName="13-3.2">
|
android:versionName="13-3.2">
|
||||||
<!--
|
<!--
|
||||||
The version code is the targeted SDK_VERSION plus 6 digits for our own version code.
|
The version code is the targeted SDK_VERSION plus 6 digits for our own version code.
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import android.content.pm.PackageManager.PERMISSION_GRANTED
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.ServiceManager.getService
|
import android.os.ServiceManager.getService
|
||||||
import android.os.StrictMode
|
import android.os.StrictMode
|
||||||
|
import android.os.SystemProperties
|
||||||
import android.os.UserHandle
|
import android.os.UserHandle
|
||||||
import com.stevesoltys.seedvault.crypto.cryptoModule
|
import com.stevesoltys.seedvault.crypto.cryptoModule
|
||||||
import com.stevesoltys.seedvault.header.headerModule
|
import com.stevesoltys.seedvault.header.headerModule
|
||||||
|
|
@ -60,6 +61,7 @@ open class App : Application() {
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
|
SystemProperties.set(BACKUP_D2D_PROPERTY, "true")
|
||||||
startKoin()
|
startKoin()
|
||||||
if (isDebugBuild()) {
|
if (isDebugBuild()) {
|
||||||
StrictMode.setThreadPolicy(
|
StrictMode.setThreadPolicy(
|
||||||
|
|
@ -122,6 +124,8 @@ const val MAGIC_PACKAGE_MANAGER = PACKAGE_MANAGER_SENTINEL
|
||||||
const val ANCESTRAL_RECORD_KEY = "@ancestral_record@"
|
const val ANCESTRAL_RECORD_KEY = "@ancestral_record@"
|
||||||
const val GLOBAL_METADATA_KEY = "@meta@"
|
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
|
// TODO this doesn't work for LineageOS as they do public debug builds
|
||||||
fun isDebugBuild() = Build.TYPE == "userdebug"
|
fun isDebugBuild() = Build.TYPE == "userdebug"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="org.calyxos.backup.contacts"
|
package="org.calyxos.backup.contacts"
|
||||||
android:versionCode="33030020"
|
android:versionCode="33030021"
|
||||||
android:versionName="13-3.2">
|
android:versionName="13-3.2">
|
||||||
<!--
|
<!--
|
||||||
The version code is the targeted SDK_VERSION plus 6 digits for our own version code.
|
The version code is the targeted SDK_VERSION plus 6 digits for our own version code.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue