From 9a3bfcf804e3fa5f36b0d1d55bb590f03f227085 Mon Sep 17 00:00:00 2001 From: Siri Reiter Date: Thu, 10 Mar 2022 12:04:36 +0100 Subject: initial draft --- SETUP.md | 4 ++++ USE.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 SETUP.md create mode 100644 USE.md diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..944ba27 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,4 @@ +# Setting up media masters syncronized with Android + +FIXME: document setting up git-annex +with syncing of subdir "incoming" to Android device. diff --git a/USE.md b/USE.md new file mode 100644 index 0000000..7fb8d36 --- /dev/null +++ b/USE.md @@ -0,0 +1,67 @@ +# Using media masters syncronized with Android + +## Fetch from Android + +Finishing a photo session, +connect the phone to the computer with USB cable and use the following command: + + git annex sync --content phone + +Move the synchronized photos +(exchange 210724-1 with the actual date): + + mkdir 210724-1 + git mv incoming/OpenCamera/* 210724-1 + git annex fix + +### If connection fails... + +Under the hood, +git annex uses ADB to connect to the Android system. +The ADB connection requires physically connecting the device, +but also the Android system needs to permit ADB access. + +If connection fails, +then check on the Android system that ADB is active +(e.g. a status message saying "USB debugging enabled"). +Otherwise try disconnect and reconnect cables, +and if still no indication that ADB is enabled +then go into system setup below developer setting +and enable ADB debugger, +and then disconnect and reconnect again. + + +## Flush Android storage + +Empty the camera of the synced photos: + + git annex sync --content phone + + +## Unlock + +If there is need for editing media files, +they need to first be "unlocked". + +You can unlock a specific file: + + git annex unlock 210724-1/my_precious_file.jpg + +...or a directory: + + git annex unlock 210724-1 + + +## Lock + +To ensure integrity of annexed files +(and to save space: unlocked files require two copies), +make sure to lock when done editing. + +You can lock a specific file: + + git annex lock 210724-1/my_precious_file.jpg + +...or a directory: + + git annex lock 210724-1 -- cgit v1.2.3