From 8997c1ed7468b89f72aa3ee0523f4f3486c0f909 Mon Sep 17 00:00:00 2001 From: parhuzamos Date: Fri, 27 Nov 2015 14:26:35 +0000 Subject: [PATCH] --- ..._a_git-annex_repo_from_an_Android_app.mdwn | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/forum/Manipulate_a_git-annex_repo_from_an_Android_app.mdwn diff --git a/doc/forum/Manipulate_a_git-annex_repo_from_an_Android_app.mdwn b/doc/forum/Manipulate_a_git-annex_repo_from_an_Android_app.mdwn new file mode 100644 index 0000000000..7414faab54 --- /dev/null +++ b/doc/forum/Manipulate_a_git-annex_repo_from_an_Android_app.mdwn @@ -0,0 +1,21 @@ +I use the command line almost every hour, I'm familiar with it. But it's a pita on the phone. + +I'd like to create an "graphical" Android application that lists/browses the repo's content and allows the user to manipulate the files/directories. + +git-annex for Android (5.0) is installed and working fine. I was messing around (on my rooted phone) with the rwx permissions to run the git-annex binary from my app as it's a different user and has no access to those binaries by default. But no success yet: + +``` +shell@jfltexx:/storage/sdcard1/repo $ /data/data/ga.androidterm/lib/lib.git-annex.so list + +lib.git-annex.so: git: createProcess: runInteractiveProcess: exec: permission denied (Permission denied) +``` + +Question 1: How should I set up the permissions to be able to sucessfully run any git-annex command from my (non-commercial, private) Android app? + +Question 2: What if I include all the git-annex binaries in my app as a resource and write them to disk after install and execute them? (Permissions should work.) + + +Use case: family videos are stored in a repo at home. This repo is cloned to my phone's sdcard. I want to browse the repo on my phone and mark some directories to be transferred from home to phone. My app would be a simple frontend for git-annex where you can browse and do some basic stuff: get, drop, manipulate metadata (and of course start playing a video). + +Thank you for any ideas, +Bence