neoapplications / neo-backup Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jensstein/oandbackup
backup manager for android
License: GNU Affero General Public License v3.0
This project forked from jensstein/oandbackup
backup manager for android
License: GNU Affero General Public License v3.0
as a backup app a possible usecase is to migrate data from an old phone to a new one.
currently android 7 is required but old phones often have lower android versions, so it would be good to be able to install this app on lower android versions.
Different than the other "shelter" issue since in that apps got installed in both work and primary profile,however in this case the apps get restored in only work profile
Fix- 1) Restore ur app
2)after installing check whether your work profile has that app or not.
3) if yes, navigate to the backup folder and install that app from the base.apk
4)uninstall app from work profile
Note- after installing base.apk in primary profile, u will automatically get ur data since u restored it earlier (given in step 1 u selected "apk+data")
Hi, firstly thank you for resurrecting and improving OAndBackup!
The biggest problem at the moment I am having with the app is that Android kills the backup process, perhaps this can be avoided by making a persistent notification when performing a backup.
And it would also be a good idea to request a battery optimization exception.
My device info:
I manage work profile with shelter. When I restore an app it will be installed on both sides.
App crashes on start up on my pixel 3a running the April update. It is granted permission and allowed root. I tried the arm64 and universal versions of the newest version of the app. I'll grab a log in a bit and post it.
Hi,
OAndBackupX v1.1.0 gives error if a space is in the backup directory path.
Android 10, crDroid 6.6 3005.2 (LOS)
'/sdcard/- Cloud/Backups/OAndBackupX'
2020/06/01 - 12:00:02: rm: /data/data/com.tamasenco.neonverse.invaders.shmup.attack/cache/*: No such file or directory [Neonverse] 2020/06/01 - 12:00:02: cp: 'Cloud/Backups/OAndBackupX/com.tamasenco.neonverse.invaders.shmup.attack' not directory [Neonverse] 2020/06/01 - 12:00:02: cp: 'Cloud/Backups/OAndBackupX/com.tamasenco.neonverse.invaders.shmup.attack' not directory [Neonverse] 2020/06/01 - 12:00:02: cp: 'Cloud/Backups/OAndBackupX/com.tamasenco.neonverse.invaders.shmup.attack/device_protected_files' not directory [Neonverse]
Hello,
could you think to add OABX to F-Droid ?
Thanks :)
The mentioned errors occur on symlinks and special files like named pipes:
2020/06/14 - 16:26:16: cp: /storage/emulated/0/OAndBackupX/org.fdroid.fdroid/org.fdroid.fdroid/files/fdroid/index.html: Operation not permitted [F-Droid]
2020/06/14 - 16:26:16: cp: /storage/emulated/0/OAndBackupX/org.fdroid.fdroid/org.fdroid.fdroid/files/fdroid/repo/org.fdroid.fdroid_1000011.apk: Operation not permitted [F-Droid]
2020/06/14 - 16:28:10: cp: /storage/emulated/0/OAndBackupX/com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup/files/fifo0: Invalid argument [Titanium Backup]
It would be great if there was an option to exclude caches from the backups, since the cache usually does not include necessary / non-reproducible data, but instead tends to make the backups unnecessarily larger.
This could be implemented by just ignoring the folders called cache
, since this seems fairly standardized.
The next level would be to also include the ability for a per-app black- or whitelist, however this per-app setting is probably not necessary for most users.
Using oandbackupx 0.9.11-arm, it restores the data in Bromite 81.0.4044.127 but then the browser doesn't browse anymore. I can't open any site.
I should mention the data backup was made with oandbackup 0.3.5.
(already reported this issue for oandbackup so apologies for the crosspost, but it also affects
oandbackupx)
arm64 version
if 'Backup device protected data' is enabled, attempting to backup an app will crash oandbackupx.
This is from logcat:
https://del.dog/urigigrepu.txt
I can't get OandBackupX to backup to external SD.
When selecting a folder on the external SD, I get an error (something like "Can't create...")
Is there any chance to get backup to external SD (probably through Storage Access Framework) ?
A workaround could be the ability to configure any folder, including ones outside user storage area (I've been using Oandbackup configured to backup to "/mnt/media_rw/..."). Can such a setting be configured ? (can be through adb commands if there's no other possibility)
When backup a large app, progress bar is very useful. Could you please add one? Thanks!
i cant seem to make the app remember "sort" as well as "filter".
even after toggling in settings, it doesnt work.
if there something, i m doing wrong?1
In the readme it says, oandbackupx can be combined with syncthing or nextcloud for remote backups. However how is it actually possible to push those backups to Nextcloud? The backup location is a custom folder picker, so I can't choose Nextcloud via the Storage Access Framework, so there is no way to use Nextcloud? I could only select a data directory of the nextcloud app, however since it doesn't use the framework nextcloud isn't notified of any changes, and my backups won't be uploaded.
Thanks!
Some links (e.g. changelog) point to the origin repo. This is a little confusing. Thanks!
Since some split apks can't be restored by the app..I personally redownload them from the source ,however the option to restore only data isn't there..
This is my first time time in github,so point me if I m wrong somewhere..
Thx
While having selected APK+data backup and starting to back up apps, users may notice longer backups on apps with bigger data (games, browsers). For those, the app could add a button to skip app data and just back up the APK if it has taken long enough (10 seconds+).
I backuped all my app on Android 9 and restored them on Android 10. Some apps doesn't work or can't restore settings:
OAndBackupX crashes after every restoring. It works but just crash which is strange.
On Essential PH-1 Stock February update, data for rif is fun can't be backed up. The message "backup (circle animation)" shows up but it doesn't get past that.
This is also an issue in oandbackup.
Thanks for reading.
Do you plan to bring back the support of OpenPGP encryption with Openkeychain?
Hi, the new update(0.9.12) improved the force close issue by much, though there are still some, but broke the backup function. The logs for the fc issue are those (basically two errors xD) https://del.dog/crilegutul
The error for the backup issue is this
2020/05/14 - 04:48:25: /system/bin/sh: [1]: rsync: inaccessible or not found.
Also, I may refer to some ui stuff, the splash screen doesn't quite show up, it flashes quickly and then fades out. Pull down to refresh also doesn't work very good, icon gets dragged back immediately after pulled down in a choppy motion and I'm not sure if refreshing is actually done. Other than these great work, keep it up๐
As the title said, it's borken here. Tried to select the folders instead of root of sdcard, same issue. Iirc OG oandbackup is able to backup to sdcard. Here's the log.
Hello, I have filed an issue in the F-Droid repository. Here is the link in case you are interested: https://gitlab.com/fdroid/rfp/-/issues/1316
Hi,
would it be possible to run OAndBackupX without root as a system app (priv-app)? If it would have enough permissions given that sepolicy has rules for?
oab-utils will follow symlinks which can break some applications on restore. For example: if the application data has a lib symlink, it will follow it which leads to broken ownership and permissions for /data/app/(package)-1/lib/(arch), which may cause the application to malfunction or be considered not installed.
As discussed in the Telegram group, restore of Spotify does not work.
I've added some log statements to see what's going on and I found this.
D/OAndBackupX.CommandHandler: command: pm install -r /data/local/tmp/1592832328710.apk
D/OAndBackupX.CommandHandler: command: toybox rm -r /data/local/tmp/1592832328710.apk
W/Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8960.so from current namespace instead of sphal namespace.
D/OAndBackupX.CommandHandler: Failure [INSTALL_FAILED_VERIFICATION_FAILURE]
I/OAndBackupX.BackupRestoreHelper: com.spotify.music backup contains split apks
D/OAndBackupX.CommandHandler: command: toybox cp "/storage/emulated/0/OAndBackupX/com.spotify.music/split_config.arm64_v8a.apk" "/data/local/tmp/1592832338402.apk"
D/OAndBackupX.CommandHandler: command: pm install -p com.spotify.music -r /data/local/tmp/1592832338402.apk
D/OAndBackupX.CommandHandler: command: toybox rm -r /data/local/tmp/1592832338402.apk
D/OAndBackupX.CommandHandler: Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for com.spotify.music]
D/OAndBackupX.CommandHandler: command: toybox cp "/storage/emulated/0/OAndBackupX/com.spotify.music/split_config.de.apk" "/data/local/tmp/1592832344321.apk"
D/OAndBackupX.CommandHandler: command: pm install -p com.spotify.music -r /data/local/tmp/1592832344321.apk
D/OAndBackupX.CommandHandler: command: toybox rm -r /data/local/tmp/1592832344321.apk
I/zygote: Background concurrent copying GC freed 24144(1369KB) AllocSpace objects, 7(140KB) LOS objects, 49% free, 3MB/6MB, paused 91us total 157.363ms
D/OAndBackupX.CommandHandler: Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for com.spotify.music]
D/OAndBackupX.CommandHandler: command: toybox cp "/storage/emulated/0/OAndBackupX/com.spotify.music/split_config.xxhdpi.apk" "/data/local/tmp/1592832346291.apk"
D/OAndBackupX.CommandHandler: command: pm install -p com.spotify.music -r /data/local/tmp/1592832346291.apk
D/OAndBackupX.CommandHandler: command: toybox rm -r /data/local/tmp/1592832346291.apk
D/OAndBackupX.CommandHandler: Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for com.spotify.music]
I/OAndBackupX.ShellCommands: restoring: Spotify
It might be related to the verifier_verify_adb_installs
setting. I cannot execute the needed pm install
command via adb until I switch it off.
$ settings get global verifier_verify_adb_installs
0
Command to switch it off.
$ settings put global verifier_verify_adb_installs 0
doesnt do anything when i click it.
Mark and Tags are very useful for batch action,
I need to backup restore feom KitKat to Oero.
So I would need to use oandbackup to backup and yours to restore.
Would that work?
Or maybe you can lower the minsdk?
There are some map files but only 13kb files are backuped. The old oandbackupx directory is as 10x large as the new OAndBackupX. I guess there are some other apps which are not backuped completely.
While performing a backup of all apps, if the backup fails, there are lots of errors in the displayed log about "AnySoftKeyboard: rm: /data/data/com.menny.android.anysoftkeyboard/cache/*: No such file or directory".
** Solution could be to add '-f' (force) flag to "rm -r " in src/main/java/com/machiav3lli/backup/handler/ShellCommands.java for all rm commands so that it performs an "rm -rf" instead.
Please provide a non root backup method. It would be able to back up the apks and the data that is on the SD card even if it can't access the data partition.
When an app is restored from a backup, it is installed to the Work Profile even if the app wasn't originally installed to the Work Profile.
I am using an app called Shelter to make use of the Work Profile feature in case you would like to test this behaviour.
For reference, Titanium Backup doesn't do this.
Hi!
For some apps I would like to save the external data. For others like OSMand or Antennapod I don't want to save the external data, because it is too large. Maybe you could add something like a blacklist for apps, which external data is not to be saved.
The app is great....
Pls consider to add a option to backup obb as well as external storage file of app
i think this feature will make this one of a kind.
Some applications store some data in this path, OAndBackupX should also save that data too
There was a pull request for the upstream code that the original author didn't look at, maybe it could be included in this fork?
jensstein#267
A gzip compressed tar file would be a much more natural format for backups, as tar files store information like file permissions, owner, group, symlinks as core information. Most Linux distributions come with gzip and tar by default, and WinRAR, 7Zip, PeaZip, etc can open .tar.gz files easily for Windows. This would get rid of the need to correct file permissions and ownership after restoring the app's data. The tar format is very simple and there are implementations such as JTar or Apache Commons Compress, both under the Apache License.
An alternative option instead of migrating to .tar.gz, is to keep using zip files, but store the unix information inside the zip file. The upper two bites of the "external file attributes" store the unix permissions, and file type (regular, directory, symlink, device, socket, etc). A 0x7875 header is added in the "extra data" to store the unix ownership. Unfortunately, the zip implementation in Java does not give you access to the internal/external file attributes and always writes 0 for both. The implementation in Apache Commons Compress does let you handle this field though.
http://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/archivers/zip/X7875_NewUnix.html
https://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute
Right now, as far as I can see, it's only possible to have one single backup at one time. The file structure is like so
OAndBackupX/app/app.zip
OAndBackupX/app/app.log
What if we just created numbered directories that contain the backups, something like this
OAndBackupX/app/1/app.zip
OAndBackupX/app/1/app.log
OAndBackupX/app/2/app.zip
OAndBackupX/app/2/app.log
...
OAndBackupX/app/99/app.zip
OAndBackupX/app/99/app.log
To make it easier to see which backup is which we could show the date the backup was created in the UI (like it already does but show them as a list instead) or even add an optional "Description" field to the log file.
To keep the app backwards compatible, we could check if the numbered directories exist, and if they don't, move the content of app/
to app/1/
What do you think?
P.S. Why are the files .log if they just contain json data? Why not .json?
TB prompts to close the app (which is being restored) on the background.
If 'Clear app's cache' is enabled, if the cache directory doesn't exist (such as being cleared in a previous backup), oandbackupx will close and relaunch.
This is in the log:
rm: /data/data/arun.com.chromer/cache/*: No such file or directory [Lynket]
OS: Android 10
OandbackupX version: 0.9.7-universal
Description: Application crashes when trying to back up app+data (package: Protonmail)
Steps to reproduce: Try to back an app up on fresh install
Please consider keeping this great feature rather than removing it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.