2011年12月26日月曜日

use windows exe from cygwin

1. add a dummy function

function adb {
    TOP=/cygdrive/c/Android/android-sdk
    "$TOP"/platform-tools/adb.exe "$@"
}

2. create a dummy symbol link
cd /usr/bin
mv gvim gvim.org

ln -s /cygdrive/c/Program\ Files\ \(x86\)/Vim/vim73/gvim.exe gvim


xperia take root

1. download the latest version of the following script.
DooMLoRD_v3_ROOT-zergRush-busybox-su.zip


This script will:
      (1) root ur device using latest zergRush exploit (16 Nov)
      (2) install Busybox (1.18.4)
      (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
  
Before u begin:   
      (1) make sure u have installed adb drivers for ur device
      (2) enable "USB DEBUGGING" 
            from (Menu\Settings\Applications\Development)
      (3) enable "UNKNOWN SOURCES"
            from (Menu\Settings\Applications)
      (4) [OPTIONAL] increase screen timeout to 10 minutes
      (5) connect USB cable to PHONE and then connect to PC
      (6) skip "PC Companion Software" prompt on device



2. run this script


3. after Superuser is installed.
    adb shell
    su
    mount -o rw,remount /dev/block/mtdblock3 /system


4. and then you will find that you can change any file under system.


ENJOY!!

2011年12月5日月曜日

save log to sdcard

# logcat -v time -f /sdcard/logcat.txt -r 1024000 & http://developer.android.com/guide/developing/tools/logcat.html