Skip to content
Snippets Groups Projects
Commit cf9aa8b5 authored by Nico's avatar Nico
Browse files

Add script to copy database from Android devices

parent fc91cbd8
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,9 @@ convenient way to do so is by using ...@@ -49,6 +49,9 @@ convenient way to do so is by using
[_adb_](https://developer.android.com/studio/command-line/adb). [_adb_](https://developer.android.com/studio/command-line/adb).
Note that your smartphone needs to be rooted for this. 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 1. Start _briar-gtk_ and register a dummy account. This will create
the needed directory structure at _~/.briar/_. Close the program afterwards. the needed directory structure at _~/.briar/_. Close the program afterwards.
2. Enable _adb_ on your smartphone and give it root permissions. 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/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment