Skip to content

Sonelli/android-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Bash

A docker image that builds bash binaries for Android.

For each supported Android CPU architecture (x86/ARM/MIPS) it will build both PIE (position independant executable) and a non-PIE binary.

PIE binaries are supported on Android 4.1+ and mandatory on Android L and above.

Automated Build

$ docker run -v $(pwd):/target sonelli/android-bash
$ find .
./x86/pie/bash
./x86/nopie/bash
./arm/pie/bash
./arm/nopie/bash
./mips/pie/bash
./mips/nopie/bash

Manual Build

$ docker run -i -t -v $(pwd):/target sonelli/android-bash /home/admin/shell
$ vi ~/build (tweak away)
$ ~/build
$ exit
$ find .
./x86/pie/bash
./x86/nopie/bash
./arm/pie/bash
./arm/nopie/bash
./mips/pie/bash
./mips/nopie/bash

Credits

This is made possible thanks to Dan Drown's Android build environment docker image: http://blog.dan.drown.org/android-cross-compile-environment/

About

A docker image that builds bash binaries for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages