Hot answers tagged bash
In adb shell or terminal emulator (and most likely over SSH) you can use the pm utility to install apps. The command is: pm install /sdcard/app1.apk The following are the switches of pm: usage: pm [list|path|install|uninstall] pm list packages [-f] [-d] [-e] [-u] [FILTER] pm list permission-groups pm list permissions [-g] [-f] ...
As explained by the comments and Liam's answer, this is due to the noexec flag used by the system when mounting the sdcard. If your configure file is a shell script (as it usually is), you can still trick it to be executed: cd to the directory as you described above, and then execute sh configure. sh is the Shell interpreter, and that binary should be ...
This is due to 2 things: The file does not have execute permissions [AND] The file cannot gain executable permissions as it is on the SD Card. The SD Card's filesystem can accept file permissions, however it is mounted with the noexec flag, as stated in a comment. This stops files being executed. Solution: Copy the net-snmp-5.7.2 directory to the ...
The best Terminal Emulator out there currently is: https://play.google.com/store/apps/details?id=jackpal.androidterm Here is it's wiki: http://github.com/jackpal/Android-Terminal-Emulator/wiki Regards,
I didn't have my Android with me right now to test, but with the Android Terminal Emulator if you go to the menu, you might be able to use the "Command line" or "Initial command" option.
You can use avahi (wiki) (or a similar piece of Zeroconf software) to discover computers on the network and publish the list for your phone to retreive. See Are there any other Java libraries for bonjour/zeroconf apart from JMDNS? for Java Zeroconf implementations.
If you don't want a server-based solution, your laptop could listen to the network for a specific broadcast packet. A broadcast packet will be rerouted to every device in the same network, but devices that aren't listening to it should ignore it.
Dynamic DNS service would work. Get your laptop to update your dynamic domain with it's local ip, and then whenever your phone connects to a new wifi network, resolve that domain, if you get a hit, you're either good or happened to find someone with the same local ip! Similar to that, you could get your laptop to post it's ip to a server somewhere (web, ...
I'm not too keen on the why, but sh on CyanogenMod is a bit watered down. As Joachim noted in the comments, usually you can modify PS1 to change your prompt, but it doesn't properly expand prompt variables: # ps $$ <-- Just showing that the current shell is /system/bin/sh ps $$ USER PID PPID VSIZE RSS WCHAN PC NAME root 1055 ...
Emulator app should be able to run another app from its own directory. That directory is called something like /data/data/com.super.emulator. Try giving the full path to the app you want in emulator. If you want to get a compiler for Android, you can use NDK. Easy to get, free to use. Can't you also push your file to /system/bin via adb? I don't know if ...
There is a pretty bad method using adb shell input tap, Get the coordinates for enable tethering and substitute adb shell input tap Or navigate to enable radio using adb shell input keyevent. Just have a look at, adb shell input Again this confines to a particular device.
Most likely you can't run the program because of libraries on the device you ripped it from being missing from the device you copied it to. Since your end goal is to compile a program and run it natively on the phone, might I suggest you use the Android NDK? The NDK documentation includes STANDALONE-TOOLCHAIN.HTML which explains how to cross-compile a ...
There's an application called Network Discovery (available on F-Droid, may also be on the Android Market) that attempts to identify devices on the network your phone is connected to. As it's Free Software, you could try to see if you can modify it or use portions of it for your purposes. Not a "here's an APK" answer, but if you have to write something, ...
Only top voted, non community-wiki answers of a minimum length are eligible