Commit graph

32 commits

Author SHA1 Message Date
Joey Hess
a48d340abd Android: Work around Android devices where the am command doesn't work. 2013-05-31 21:30:21 -04:00
Joey Hess
4713f0c89d Android app: Avoid using hard links to app's lib directory, which is sometimes on a different filesystem than the data directory.
Assumes symlinks work on all android. If not, this would need to be adapted
to try both. This worked for me.
2013-05-23 13:54:49 -04:00
Joey Hess
543ffa5b9f work around git/environment/gecos/android suck
I don't know why, but I can't seem to set the environment variables inside
git-annex to work around the git error caused by android's crappy username
and hostname settings. This workaround works, and that's all that's good
about it.
2013-05-03 14:08:26 -04:00
Joey Hess
063e344cbd fix setup of runshell wrapper wrapper 2013-05-03 13:17:01 -04:00
Joey Hess
e3f76de319 better webapp startup, using the terminal app's default command config
This allows the user to turn it off easily, or only start the assistant and
not the webapp.

I was not able to determine why having runshell run the webapp segfaulted.
Strace was not helpful. Oh well, this is better anyway.
2013-05-03 12:39:33 -04:00
Joey Hess
201f802175 set TMPDIR 2013-05-03 11:56:53 -04:00
Joey Hess
cdddc58365 fixes 2013-05-03 11:51:58 -04:00
Joey Hess
214931546c work around weird behavior when starting webapp not in shell
It seems to need nohup, or it segfaults on startup. I suspect the problem
is the command that opens the web browser.
2013-05-03 01:40:18 -04:00
Joey Hess
921d04501f ensure HOME exists
The SD card could be replaced, or it got deleted some other way. Still let
git-annex start, and ensure anything that wants to write to HOME can.
2013-05-03 01:02:38 -04:00
Joey Hess
b3a3273741 improved runshell start
Start webapp in nohup so it doesn't close when window is closed and so it
doesn't output stuff over the shell prompt.
2013-05-03 01:00:00 -04:00
Joey Hess
9116580312 run webapp on startup 2013-05-02 22:42:51 -04:00
Joey Hess
be253aeff9 add a runshell script to the top of the app directory
This is mostly useful when you have adb with root access, to easily start the
git-annex environment in there.
2013-05-02 01:43:22 -04:00
Joey Hess
422928394e fix android app upgrade hang
rm was blocked waiting for input
2013-02-28 19:18:56 -04:00
Joey Hess
6a52a47193 fix 2 bugs in android runshell 2013-02-28 19:12:54 -04:00
Joey Hess
9b4c98ac52 autostart assistant 2013-02-26 15:42:29 -04:00
Joey Hess
bf783d141d run system shell for interactive shell
This way PS1 settings etc work.
2013-02-24 14:34:47 -04:00
Joey Hess
61a12ce47f Explicitly run every command as a busybox app
Seems that CONFIG_FEATURE_SH_STANDALONE is not working.
2013-02-24 14:31:43 -04:00
Joey Hess
ac0292df95 use C shim to start Android app
This should avoid relying on features of the Android builtin shell,
and so hopefully avoid failures like this one
http://git-annex.branchable.com/design/assistant/blog/day_197__template_haskell/#comment-07f90830f78f6495dcbdf90eb8636129

The C shim sets up busybox, and uses its builtin shell to run runshell.

It's important that busybox be configured with
CONFIG_FEATURE_SH_STANDALONE, so that while runshell is running, it
does not rely on either system utilities, or busybox being already
installed.
2013-02-24 13:27:06 -04:00
Joey Hess
1fbd08db8b remove pause after run
Terminal is configured to pause too.
2013-02-23 14:50:14 -04:00
Joey Hess
e3df7ae212 typo 2013-02-23 14:33:12 -04:00
Joey Hess
acc3c8c157 try to be more robust and allow the user to see most types of failure 2013-02-23 01:08:15 -04:00
Joey Hess
d8c10929d2 fixes 2013-02-22 16:23:59 -04:00
Joey Hess
98eeb12053 typo 2013-02-22 16:06:21 -04:00
Joey Hess
73c66c480d fixes 2013-02-22 15:49:11 -04:00
Joey Hess
d868a785a2 make upgrades work
Add a lib.version.so and when it's different, re-install.
2013-02-22 15:03:12 -04:00
Joey Hess
fede34ff62 start in HOME 2013-02-21 17:09:03 -04:00
Joey Hess
c299c60d7e forgot to install ssh 2013-02-21 16:03:00 -04:00
Joey Hess
a535cb3379 build an apk containing git-annex and a terminal emulator 2013-02-21 15:20:32 -04:00
Joey Hess
00b465e213 shorter directory to external ssh socket
Before it was too long to be used.
2013-02-19 17:31:08 -04:00
Joey Hess
0f4cc559a7 Android: Support ssh connection caching. 2013-02-19 14:57:45 -04:00
Joey Hess
242c83e66f tweak android runshell after testing 2013-02-13 14:32:02 -04:00
Joey Hess
2633c704bb runshell for Android 2013-02-13 13:32:15 -04:00