Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

Yet Another Bash for Android

$
0
0
After hunting around and not finding any dynamically linked Bash executable created using the NDK, I (as usual) decided to do it myself.

Here I give you dynamically linked bash 4.2 compiled using Crystax NDK r8, along with patches from http://dan.drown.org/android/src/bash/. The process to build it is documented on this page. The API version used was Android-8 (Froyo and upwards) and the toolchain used was gcc-4.7.

To use, place in any location where executables can run from (eg. /data/local/tmp or /data/data/jackpal.androidterm/app_HOME), gunzip it
Code:

gunzip bash.gz
, change permissions
Code:

chmod 755 bash
and run.

Please note that if you run it without root, it will give the following error message intermittently:
Code:

chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
This is because without root "/data" is inaccessible (Default permissions 771 with owner:group as "system:system").

As alternatives, there are statically linked bash binaries available from multiple sources, for example this by mzet.

Attached Files
File Type: gz bash.gz - [Click for QR Code] (452.4 KB)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>