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
Note that your smartphone needs to be rooted for this.
You can either use the script at
[tools/](tools/ 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:
# 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/ ~/.briar/db/
adb pull /data/data/ ~/.briar/key/
adb pull /data/data/ ~/.briar/key/
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment