Sunday, March 28, 2010

Editing android read-only file system

This lines also help to fix the route and ifconfig not working as expected from /system/bin/

mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
mkdir /system/xbin
cd /system/xbin
ln -s /data/busybox/ifconfig ifconfig
ln -s /data/busybox/route route
mount -o remount,ro -t yaffs2 /dev/block/mtdblock6 /system

Setting up SSL/TLS vpn from Android phones

I did create a client.conf file almost similar for all my clients, one of them, the android phone.

Then created a simple script to start the vpn.

#again setting right path as ASE scripting for android uses other shell
export PATH='/system/sbin:/system/xbin:/system/bin'
cd /sdcard/openvpn/
su -c "openvpn --config /sdcard/openvpn/client.conf"&

Make busybox the default for android terminal

just enter on terminal Preferences and under Command line enter /system/xbin/sh and inside the initial comand set PATH to run commands from busybox and not from the default terminal.

export PATH='/system/sbin:/system/xbin:/system/bin'

after that ifconfig and route commands for example will work like a charm :-)

Start android connection with a linux box

adb kill-server
sudo adb start-server
adb devices


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.