2014年8月7日 星期四

htop on Android


  1. Need root
  2. Check $TERM is vt100 or not
    1. adb shell 
    2. echo $TERM
    3. Yes then go on, or download other terminal info from http://z4ziggy.wordpress.com/2010/09/17/a-short-guide-to-install-midnight-commander-on-android/
  3. Download htop and libncurses.so for arm, find on web
  4. Run script
# /bin/bash
adb remount
adb push htop /system/bin/
adb shell chmod 755 /system/bin/htop
adb push libncurses.so /system/lib
adb shell mkdir /system/usr/share/terminfo
adb shell mkdir /system/usr/share/terminfo/v
adb push vt100 /system/usr/share/terminfo/v/
adb shell 'echo export TERMINFO="/system/usr/share/terminfo/" >> /system/etc/mkshrc'
adb shell 'echo busybox resize >> /system/etc/mkshrc'
adb remount




沒有留言: