oandbackup icon indicating copy to clipboard operation
oandbackup copied to clipboard

oandbackup from adb shell?

Open spmp opened this issue 7 years ago • 3 comments

I have a phone with broken digitiser which I can still get into using adb shell. Can I perform a backup using oandbackup from command line as root?

spmp avatar Apr 18 '18 22:04 spmp

  1. you can have the "remote control" over your device with the help of adb. See e.g. https://forum.f-droid.org/t/suggested-app-scrcpy-display-and-control-of-android-devices-through-adb/ I've used some others before.
  2. Having adb+root you can backup whatever you want without oandbackup. The straight UNIX way would be just cp -a /data/data/$APPID /sdcard/. The Android way is to use adb backup which BTW doesn't require the root but needs some screen interaction so see (1).

ildar avatar Apr 19 '18 07:04 ildar

It looks interesting to run oandbackup from adb, but I don't know how to do it. I use for backup:

adb backup "-apk -all -system" -f "${HOME}/MyAndroidBackup_$(date +%F).ab

Also, add -shared if you want to backup your SD-card content too.

vazhnov avatar Nov 08 '18 06:11 vazhnov

It looks interesting to run oandbackup from adb, but I don't know how to do it.

This might be possible if oandbackup had the proper intent. You can open a Feature Request for that.

ildar avatar Nov 08 '18 07:11 ildar