-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Setup on Android
Andrea Fabrizi edited this page Apr 6, 2014
·
2 revisions
- Prerequisites: Android device must be rooted, busybox is required
- Download curl Android binary from here: http://curl.haxx.se/download.html
- As root, put curl binary into /system/bin/ and ca-bundle.crt into /system/usr/ and execute
chmod 0755 /system/bin/curl
- Put dropbox_uploader.sh into /mnt/sdcard/dropbox_uploader
- Make changes to dropbox_uploader.sh
- Home directory defaults to
/data
in Android, which is non-writable by non-root users, so changeCONFIG_FILE
variable to/mnt/sdcard/dropbox_uploader/.dropbox_uploader
- Configure
TMP_DIR
, e.g./mnt/sdcard/dropbox_uploader/tmp
- curl won't find ca cert bundle by itself, so point it to the right place via
CURL_ACCEPT_CERTIFICATES="--cacert /system/usr/ca-bundle.crt"
- Busybox stat command does not support output formating. As a workaround, file_size function must be changed into
function file_size
{
a=(`stat -t "$1"`)
echo ${a[1]}
return
}
Finally, dropbox_uploader can be set up by executing "bash /mnt/sdcard/dropbox_uploader/dropbox_uploader.sh" via Android terminal or adb shell as a non-root user.