summaryrefslogtreecommitdiff
path: root/doc/design/assistant/android.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:32:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:32:16 -0400
commit4951472e2eac968fff91e08de3e173e7d7d53b99 (patch)
tree08ab37a3499578188a15e5f13222552e8d153dae /doc/design/assistant/android.mdwn
parentebfc2dbbf815bd59a3e6d57365ae60ad8af16506 (diff)
update; android tarball
Diffstat (limited to 'doc/design/assistant/android.mdwn')
-rw-r--r--doc/design/assistant/android.mdwn42
1 files changed, 22 insertions, 20 deletions
diff --git a/doc/design/assistant/android.mdwn b/doc/design/assistant/android.mdwn
index c7fcb2c57..4dab366d1 100644
--- a/doc/design/assistant/android.mdwn
+++ b/doc/design/assistant/android.mdwn
@@ -1,25 +1,10 @@
### goals
1. Get git-annex working at the command line in Android,
- along with all the programs it needs.
+ along with all the programs it needs. **done**
2. Get the webapp and assistant working. A hopefully small Java app will be
developed, which runs the webapp daemon, and a web browser to display it.
-Current status: git-annex can be built for Android, with `make android`.
-You need <https://github.com/neurocyte/ghc-android> installed first,
-and also have to `cabal install` all necessary dependencies.
-
-### TODO
-
-* port busybox, so it doesn't need KBOX's busybox
-* Make a runshell wrapper for Android, setting paths, etc.
-* Build a standalone tarball for Android.
-* Make build system that can generate ports, and tarball, from source
- checkouts.
-
-* git-annex sets `#!/bin/sh` in hook script, but that is not
- a valid path on android, and the right path needs to be determined at runtime.
-
### Android specific features
The app should be aware of power status, and avoid expensive background
@@ -33,7 +18,14 @@ transfers when not on wifi. This may need to be configurable.
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.
-### Porting notes
+### Utility porting notes
+
+#### TODO
+
+* Make build system that can generate ports, and tarball, from source
+ checkouts.
+* Remove git commands and busybox builtins that are not used, to reduce
+ size.
#### git
@@ -65,9 +57,19 @@ Build fails in docs, but see `g10/gpg`
Use git://github.com/android/platform_external_dropbear
-Copy in config.sub and config.guess from recent autoconf, and build:
+Copy in config.sub and config.guess from recent autoconf.
+
+Edit `cli-auth.c`, and add: `#include "netbsd_getpass.c"`
+
+Edit `cli-main.c` and remove the HOME setting.
+
+Edit options.h and set `DROPBEAR_RANDOM_DEV "/dev/urandom"`
PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH ./configure --host=arm-linux-androideabi --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx
- PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH make
+ PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH make dbclient
+
+#### busybox
-TODO build fails
+ cp configs/android2_defconfig .config
+ # edit config and set CONFIG_FEATURE_INSTALLER=y
+ PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/bin:$PATH CROSS_COMPILE=arm-linux-androideabi- make