Implement database dump
Description
Implement a way to dump database into an accessible directory for the user
Issue(s)
https://gitlab.e.foundation/e/os/eDrive/-/issues/143
Technical details
Use following command to dump database:
adb shell am broadcast -a foundation.e.drive.action.DUMP_DATABASE --receiver-include-background
Then run `adb logcat | grep 'DebugCmdReceiver'
You should see logs like:
08-26 09:43:34.065 1883 1883 I DebugCmdReceiver: Database has been dump at /storage/emulated/0/Android/data/foundation.e.drive/files/DataBaseDump/dump-1661499814055.db
Then select the path displayed and run adb pull <path>
to get it.
Example:
adb pull /storage/emulated/0/Android/data/foundation.e.drive/files/DataBaseDump/dump-1661499814055.db
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation
Closes #143