Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Implement database dump

Vincent Bourgmayer requested to merge 143-o-addDebugUtility into v1-oreo

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

Merge request reports

Loading