1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Running *nix programs

Discussion in 'Android Hacks and Help' started by Mister2, Jun 22, 2010.

  1. Mister2
    Offline

    Mister2 New Member

    Joined:
    Jun 22, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    How feasible is it to run full on linux programs compiled from the source on a rooted Droid? For instance, something requiring simple dependecies like, say, metasploit (' ).(' ) could be configured and ran in a manner akin to what you have to do in slackware (assign all dependencies in the install script). If it's possible, i'll of course work in the virtual Android OS first.
  2. kevin@teslacoilsw
    Offline

    kevin@teslacoilsw New Member

    Joined:
    Jun 7, 2010
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    0
    It's possible but tricky.

    Android is very different from desktop linux. The filesystem is different, the build tools are different, the libc is different (and lacks some weird things). Another option to look into is running debian (or slackware were if they have an arm build these days) in a chroot jail. I haven't done this yet but have seen reports of it.

    There's three development kits for android, the commonly used SDK for Java, the less common NDK for C and C++, and the actual rom build from Welcome to Android | Android Open Source

    You might be able to do what you want from the NDK but I'd recommend the android-sources. I wrote a little guide with regard to dropbear here:
    Dropbear | TeslaCoil Software

    Basically after getting the build environment you have to rewrite the Makefiles as Android.mk and you may need to do static linking rather than dynamic.
Search tags for this page

two nix galaxy