git-annex/doc/design/assistant/android.mdwn
Joey Hess faa9d3c22b work around broken getEnvironment on Android in the most important place: git annex init
This resulted in a lot of user complains that git annex init had git
telling them they needed to run git config --global user.email .. which
didn't work because even HOME was not passed into git.
2013-02-22 14:47:29 -04:00

37 lines
1.5 KiB
Markdown

### goals
1. Get git-annex working at the command line in Android,
along with all the programs it needs, and the assistant. **done**
2. Get an easy to install Android app built. **done**
2. Get the webapp working. Needs Template Haskell, or a workaround.
### Android specific features
The app should be aware of power status, and avoid expensive background
jobs when low on battery or run flat out when plugged in.
The app should be aware of network status, and avoid expensive data
transfers when not on wifi. This may need to be configurable.
### FAT
Due to use of the FAT filesystem, which doesn't do symlinks, [[desymlink]]
is probably needed for at least older Android devices that have SD cards.
Additionally, cripped filesystem mode is needed, to avoid hard links,
file modes, etc.
## TODO
* webapp
* autostart any configured assistants. Best on boot, but may need to only
do it when app is opened for the first time.
* Don't make app initially open terminal, but go to a page that
allows opening the webapp or terminal.
* I have seen an assistant thread crash with an interrupted system call
when the device went to sleep while it was running. Auto-detect and deal with
that somehow.
* Make git stop complaining that "warning: no threads uspport, ignoring --threads"
* git does not support http remotes. To fix, need to port libcurl and
allow git to link to it.
* getEnvironment is broken on Android <https://github.com/neurocyte/ghc-android/issues/7>
and a few places use it.