Skip to main content

Posts

Android: make tinyshell work

get tinyshell from http://groups.google.com/group/tinypy/browse_thread/thread/27a28294314abdb5 it is built from rev 98 svn --revision 98 checkout http://tinypy.googlecode.com/svn/trunk/ tinypy-read-only bc.c get from building the new version svn checkout http://tinypy.googlecode.com/svn/trunk/ tinypy-read-only #Android.mk for tinypy. #gcc -O3 tinyshell.c -I ../build/ -lm -o ../build/tinyshell ifneq ($(TARGET_SIMULATOR),true) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= tinyshell.c LOCAL_MODULE:= tinyshell LOCAL_CFLAGS += -I $(LOCAL_PATH)/build/ LOCAL_CFLAGS += -lm include $(BUILD_EXECUTABLE) endif

Android: setup android

# edit your ~/.bash_profile export PATH=${PATH}: /tools # Wipe your emulator data emulator -wipe-data #create SD card mksdcard 512M sdcard.iso #set emulator -system /path in eclipse Run -> Run Configuration -> Target -> Additional Emulator Command Line option "-system /path -sdcard /path/sdimg.iso " or run in shell like "emulator.exe -system /path -sdcard /path/sdimg.iso " #put the file in the sdcard adb push hello.py sdcard/hello.py or adb push hello.py data/hello.py Test tinypy adb push hello.py sdcard/hello.py adb shell tinypy sdcard/hello.py or  adb push hello.py data/hello.py adb shell tinypy data/hello.py

Android: adb command

Source:  http://developer.android.com/guide/developing/tools/adb.html adb install adb pull adb push  e.g. adb push foo.txt /sdcard/foo.txt adb shell Source: http://en.androidwiki.com/wiki/ADB_Shell_Command_Reference telnet localhost 5554 help|h|? print a list of commands event simulate hardware events geo Geo-location commands gsm GSM related commands kill kill the emulator instance network manage network settings power power related commands quit|exit quit control session redir manage port redirections sms SMS related commands vm manager virtual machine state window manage emulator window