Commit cf9aa8b5 authored by Nico Alt's avatar Nico Alt

Add script to copy database from Android devices

parent fc91cbd8
Pipeline #3781 failed with stage
in 3 minutes and 42 seconds
......@@ -49,6 +49,9 @@ convenient way to do so is by using
[_adb_](https://developer.android.com/studio/command-line/adb).
Note that your smartphone needs to be rooted for this.
You can either use the script at
[tools/copy-db-from-android.sh](tools/copy-db-from-android.sh) or do it manually:
1. Start _briar-gtk_ and register a dummy account. This will create
the needed directory structure at _~/.briar/_. Close the program afterwards.
2. Enable _adb_ on your smartphone and give it root permissions.
......
#!/usr/bin/env bash
# Copyright (c) 2019 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
# Script to copy Briar database from Android to Linux devices.
# Note that you must have started Briar GTK beforehand.
# It's also recommend to manually start adb before using this script.
set -e -x
# List devices
adb devices
# Switch to root mode
adb root
# Copy files
adb pull /data/data/org.briarproject.briar.android/app_db/db.mv.db ~/.briar/db/
adb pull /data/data/org.briarproject.briar.android/app_key/db.key ~/.briar/key/
adb pull /data/data/org.briarproject.briar.android/app_key/db.key.bak ~/.briar/key/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment