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 successfully 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
Android's security model may not be friendly to code reuse. You might need to put both git-annex and your program in the same app.
I know this is something others want too. Maybe you can find or make a file manager type app that integrates with git-annex get/drop and could be included in the git-annex android app?
I am also interested in this.
It might be better to use intents [1], such that git-annex on Android can provide an interface for any app to ask it to perform actions on repositories.
Joey, is there any kind of api in the current Android app?
1: https://developer.android.com/reference/android/content/Intent.html