summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pahler <luke.linked.in+git@gmail.com>2017-03-24 20:11:56 -0600
committerLuke Pahler <luke.linked.in+git@gmail.com>2017-03-24 20:11:56 -0600
commit2c68eab918485700a3597226ac6e80f0d1ea7483 (patch)
tree263f624b1d79a601b228524fe23bd32415616078
parent66bfa923ec693b96b3bbbae9504ada8d01bd4af5 (diff)
downloadandbackup-2c68eab918485700a3597226ac6e80f0d1ea7483.tar.gz
andbackup-2c68eab918485700a3597226ac6e80f0d1ea7483.tar.xz
How to install bash plus other README cleanup.
-rw-r--r--README69
1 files changed, 43 insertions, 26 deletions
diff --git a/README b/README
index 54d6e6f..e2418f3 100644
--- a/README
+++ b/README
@@ -1,8 +1,8 @@
-CYGWIN
-WINDOWS SHELL
-BASH
-
-
+-=TOC=-
+-CYGWIN
+-WINDOWS SHELL
+-BASH
+-TODO BUGS
CYGWIN doesn't echo things properly. Like when you hit up arrow instead of showing the last command it travels up in the window. But it still will execute the last command upon hitting <enter>. <tab> autocomplete also doesn't render but still executes.
@@ -24,30 +24,26 @@ andbackup.sh: line 269: @: unbound variable
WINDOWS SHELL doesn't have this problem, so autocomplete and last command are clean. But the "unbound variable" happens also, this is fixed by passing the correct parameter count. (bash bug?)
--
-"sh" doesn't work:
----
-1|root@htc_himaul:/sdcard2/bk/andbackup # sh andbackup.sh
-127|root@htc_himaul:/sdcard2/bk/andbackup #
----
-sh AKA ash doesn't work (with -x):
----
-1|root@htc_himaul:/storage/ext_sd/bk/andbackup # sh -x andbackup.sh
-127|root@htc_himaul:/storage/ext_sd/bk/andbackup #
--even with full correct params
-127|root@htc_himaul:/storage/ext_sd/bk/andbackup # sh -x andbackup.sh listback>
-127|root@htc_himaul:/storage/ext_sd/bk/andbackup #
----
-
-BASH even has a bug:
----
-shell-init: error retrieving current directory: getcwd: cannot access parent directories: Success
----
-but it appears to run fine
+BASH
+To my surprise BASH doesn't come with busybox. To install bash do this:
+Go to this site and follow its directions (http://www.blogzamana.com/getting-bash-on-android/)
+Or just copy what I did here:
+$ wget http://pub.mzet.net/bash
+$ adb push bash /sdcard2/Download
+-
+root@htc_himaul:/ # mount -o remount,rw /system
+mount -o remount,rw /system
+root@htc_himaul:/ # cd /system/bin
+root@htc_himaul:/system/bin # cp /sdcard2/Download/bash .
+root@htc_himaul:/system/bin # chmod 0755 bash
+root@htc_himaul:/storage/034A-1326/bk/andbackup # mount -o ro,remount,ro /system
+-
+Thanks (http://android.stackexchange.com/questions/110927/how-to-mount-system-rewritable-or-read-only-rw-ro) for mount tips.
TODO BUGS
+1)
---
22:30:17 2017-03-18 info Backing up com.nianticlabs.pokemongo
cp: /storage/ext_sd/bk/andbackup/andbackupBK/com.nianticlabs.pokemongo/data//lib: Function not implemented
@@ -60,5 +56,26 @@ deleting cache for com.google.android.apps.maps
22:33:19 2017-03-18 info Compressing userdata for com.google.android.apps.maps
root@htc_himaul:/sdcard2/bk/andbackup #
---
-The error output above might be because andbackup can't handle symlinks
+The "Function not implemented" error output above might be because andbackup can't handle symlinks
+
+2)
+Most shells and even BASH has this bug:
+---
+shell-init: error retrieving current directory: getcwd: cannot access parent directories: Success
+---
+but it appears to run...
+3)
+"sh" doesn't work:
+---
+1|root@htc_himaul:/sdcard2/bk/andbackup # sh andbackup.sh
+127|root@htc_himaul:/sdcard2/bk/andbackup #
+---
+sh AKA ash doesn't work (with -x):
+---
+1|root@htc_himaul:/storage/ext_sd/bk/andbackup # sh -x andbackup.sh
+127|root@htc_himaul:/storage/ext_sd/bk/andbackup #
+-even with full correct params you get the same "nothing" output
+127|root@htc_himaul:/storage/ext_sd/bk/andbackup # sh -x andbackup.sh listback>
+127|root@htc_himaul:/storage/ext_sd/bk/andbackup #
+---

Generated by cgit