2008年5月27日 星期二

幫android換掉 sh

android的 init是 google自己寫的, 它會讀取 /etc/init.rc 作一些動作
我不喜歡它原本 sh , 因為不方便使用沒有 history的功能,

我修改如下

console {
exec /system/bin/busybox
args {
0 sh
}
console yes
}

這樣 run emulator的時候加上 -console 就會直接執行 busybox sh
但是 adb shell 則是直接 run /system/bin/sh 這要怎麼辦呢
先把原本的sh改名, 然後 ln -s busybox sh.

對了 android的 sh可不是由 toolbox link過來的喔 是一隻獨立的程式.

沒有留言: