Search This Blog

Monday, March 10, 2014

Install Midnight Commander (MC) on Android 4.0+

Requirements:

  • ROOT
  • busybox installed
To download an *.apk installer follow this link.

The xda-installer from Recognized Developer viulian installs MC here:
/system/share/mc
/system/libexec/mc
/system/etc/mc
/system/xbin
/system/etc/terminfo

Install script from *.tar.gz:


echo Pushing files....
adb push mclibs.tar.gz /mnt/local/mclibs.tar.gz
adb push xterm.tar.gz /mnt/local/xterm.tar.gz
sleep 2
echo Installing Midnight Commander...
adb shell su -c mount -o remount,rw /system
adb shell su -c cp /mnt/local/mclibs.tar.gz /system 
adb shell su -c cp /mnt/local/xterm.tar.gz /system 
adb shell su -c tar xzvf mclibs.tar.gz
adb shell su -c tar xzvf xterm.tar.gz
adb shell su -c mount -o remount,ro /system


Files:

3 comments:

  1. by first executing "adb root", one does not have to execute root-commands with su -c.

    Example:
    echo Pushing files....
    adb push mclibs.tar.gz /mnt/local/mclibs.tar.gz
    adb push xterm.tar.gz /mnt/local/xterm.tar.gz
    adb shell sync
    echo Installing Midnight Commander...
    adb root
    adb remount
    adb shell cp /mnt/local/mclibs.tar.gz /system
    adb shell cp /mnt/local/xterm.tar.gz /system
    adb shell tar xzvf mclibs.tar.gz
    adb shell tar xzvf xterm.tar.gz
    adb shell mount -o remount,ro /system

    ReplyDelete
  2. hello,

    I have mc working on my rooted Android 5.1.1 , but mc cannot see content of /data directory
    shell and command ls can see it.

    please can you help?

    ReplyDelete
  3. Be careful with this. Extracting to /system will overwrite your su binary with the one from mclibs.tar.gz.

    ReplyDelete

If you like this post, please leave a comment :)