android-backup-service

Android sqlite backup/restore without overwriting

故事扮演 提交于 2019-12-12 04:16:02
问题 Question in short form: It seems from the followups that I should perhaps emphasize and simplify the core of my question. The core is this: other backup options for Android DBs seems to leave the risk that a restore could overwrite data currently in the database. Is this so, and is there a way to backup/restore without this risk? . Question in long form: Having looked through many of the (rather numerous) questions about backing up up an SQLite db on Android I have one question that I couldn

Why android:fullBackupOnly default value is false?

假如想象 提交于 2019-12-11 18:46:06
问题 In https://developer.android.com/guide/topics/manifest/application-element, android:fullBackupOnly This attribute indicates whether or not to use Auto Backup on devices where it is available. If set to true, then your app performs Auto Backup when installed on a device running Android 6.0 (API level 23) or higher. On older devices, your app ignores this attribute and performs Key/Value Backups. The default value is "false". If the default value is false , does that mean all Android version

Error : Neither user 10066 nor current process has android.permission.BACKUP

大憨熊 提交于 2019-12-11 08:11:21
问题 I am developing an android application for which i was studying about Google Backup API , i read this tutorial http://www.edumobile.org/android/android-development/backup-manager/ and tried to implement it but it is crashing all the time The Logcat is 07-31 13:39:35.797: E/AndroidRuntime(18279): FATAL EXCEPTION: main 07-31 13:39:35.797: E/AndroidRuntime(18279): java.lang.IllegalStateException: Could not execute method of the activity 07-31 13:39:35.797: E/AndroidRuntime(18279): at android

android backup agent and SherlockMapActivity

孤街醉人 提交于 2019-12-11 05:53:34
问题 I try to implement a Backup Agent in my Android app, and I've got a weird issue every times it restore (at first launch) : Unable to resolve superclass of Lcom/actionbarsherlock/app/SherlockMapActivity; (916) Link of class 'Lcom/actionbarsherlock/app/SherlockMapActivity;' failed Unable to resolve superclass of Lnet/myapp/activity/impl/MapActivity; (674) Link of class 'Lnet/myapp/activity/impl/MapActivity;' failed Could not find class 'net.myapp.activity.impl.MapActivity', referenced from

Android full backup: “file.xml is not in an included path”

为君一笑 提交于 2019-12-10 12:51:36
问题 I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup: <?xml version="1.0" encoding="utf-8"?> <full-backup-content xmlns:android="http://schemas.android.com/apk/res/android"> <include domain="sharedpref" path="." /> <exclude domain="sharedpref" path="nonceStorage.xml" /> <exclude domain="sharedpref" path="localStorage.xml" /> </full-backup-content> and Android Studio say's that there are errors: Error:(8, 15) `nonceStorage.xml` is not

What is the file name used by default shared preferences?

∥☆過路亽.° 提交于 2019-12-09 14:23:45
问题 Android Backup Service requires a filename to backup shared preferences: public static final String PREFS = "PrefFile"; SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, PREFS); It is clear what to use if filename is given during preferences creation like public static final String PREF_FILE_NAME = "PrefFile"; SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE); But I use default shared preferences: SharedPreferences preferences =

Can Android's keystore be backed up?

痞子三分冷 提交于 2019-12-08 21:31:01
问题 Android supports cloud and local backup of APK files, application data, and so on. Is the device keystore included in the backup? (I don't think you can extract private keys from an hardware-backed keystore even in rooted devices, not so sure about the software-based version used when there is no hardware support.) 回答1: No. The whole point behind the hardware-backed keystore is that it's resistant to even privileged attacks with root access. For this reason, not even the OS can access raw key

Android Data Backup: aborted by rate limiter

笑着哭i 提交于 2019-12-07 18:36:47
问题 I have successfully backed up data from my device. On reinstallation, I get my first backup data restored. But my problem is further calls to backup don't get the data sent or saved by the Transport. When I make calls to the Backup service, this is my log: D/BackupManagerService(748): Now staging backup of com.company.app D/PerformBackupTask(748): invokeAgentForBackup on @pm@ I/BackupRestoreController(748): Getting widget state for user: 0 I/PerformBackupTask(748): no backup data written; not

Device-Owner now disables the Backup service

扶醉桌前 提交于 2019-12-07 10:29:58
问题 I've had an issue with my device-owner App : before Android 5.1 it was working nicely, but now after the update to Android 5.1, installing a device-owner App disables the Backup Service. Now in the device settings, when going into the Backup & reset option, the Backup service is greyed out, saying this: Backup service is inactive. This is set by your device policy I could find this source on the google git repository... The code is not very long and easy to understand, they use android.app

Unclear SecurityException when using Android Service Backup (Cloud Backup)

纵然是瞬间 提交于 2019-12-07 08:08:39
问题 I try to use my application, which contains usage of Android Backup Service with my own BackupAgent , on Android Emulator . But backup doesn't work , despite of permission written in AndroidManifest.xml. Permission: <uses-permission android:name="android.permission.BACKUP"/> Warning in log: 09-17 09:05:58.553: WARN/PackageManager(73): Not granting permission android.permission.BACKUP to package my.package (protectionLevel=3 flags=0x1be46) Exception in log (when I try to call requestRestore())