summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramtlib-dot-dll <amtlib-dot-dll@users.noreply.github.com>2015-08-30 12:59:13 +0800
committeramtlib-dot-dll <amtlib-dot-dll@users.noreply.github.com>2015-08-30 12:59:13 +0800
commit8f64d72cbc2d6570090753ebd292d8a2a0e54aeb (patch)
tree085b4cc7fa56de872f32f9764063dafc94d00912
parent17e5c98ba6d1e34c06c66017b899db60134fc9a8 (diff)
Update README.android
Providing some workarounds about CA certificates and standard output
-rw-r--r--README.android9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.android b/README.android
index b282e8f5..29dc8644 100644
--- a/README.android
+++ b/README.android
@@ -55,11 +55,19 @@ using ``--async-dns`` and specify DNS servers using
--async-dns --async-dns-server=`getprop net.dns1`,`getprop net.dns2`
+Additionally, the CA certificates shipped with Android don't locate in
+the same place as those of normal Unix-like systems do, so this
+workaround might be useful to securely download files via HTTPS::
+
+ cat /etc/security/cacerts/* | aria2c --ca-certificate=/proc/self/fd/0 $@
+
Because it is tedious to type these long parameters every time you use
aria2c, the following wrapper shell script would be handy::
#!/system/bin/sh
+ cat /etc/security/cacerts/* | \
/data/data/jackpal.androidterm/aria2c \
+ --ca-certificate=/proc/self/fd/0 \
--async-dns \
--async-dns-server=`getprop net.dns1`,`getprop net.dns2` \
"$@"
@@ -71,6 +79,7 @@ Known Issues
------------
* Since Android does not have ``/dev/stdout``, ``-l-`` does not work.
+ ``/proc/self/fd/0`` is a workaround for Android.
* Android Terminal Emulator sometimes stops updating console. It looks
like aria2c hangs, but aria2c continues to run.