在android下修改script.bin

来源:互联网 发布:女朋友很强体验知乎 编辑:程序博客网 时间:2024/05/06 14:55

1,#adb shell

2,#cd dev/block && ls

###  dmesg | grep gpio    //打印出关于""gpio""字符的信息

3,如下:



  4.#mkdir /mnt/mytemp
  5.#busybox mount /dev/nanda /mnt/mytemp


7,-> Ctrl  +c

8,-> adb pull /mnt/my/script.bin D:\                     //复制到D:盘

6:如图:





1. You may need fex2bin and bin2fex:
    git clone git://github.com/linux-sunxi/sunxi-tools.git
    cd sunxi-tools
     make

     With the using of ls, you can find the fex2bin and bin2fex.

2. Copy the script.bin from Android.

    $adb shell
    $mkdir /mnt/tmp
    $mount -t vfat /dev/block/nanda /mnt/tmp

     (Attention it's different from Linux.)
    $exit
    $adb pull /mnt/tmp/script.bin


3.Convert the script.bin to script.fex
.
    $chmod 777 script.bin 
    $./bin2fex script.bin > ./script.fex
    $gedit script.fex

    Now, you can edit the script.fex.
    Don't forget saving the file when you leave it.

4. Convert the script.fex to script.bin and push it back to the CB.
    $./fex2bin script.fex > ./script.bin
    $adb push script.bin /mnt/tmp
    $adb shell
    $umount /mnt/tmp
    $reboot
    It will restart the CB. The new script.bin will come into effect.

0 0
原创粉丝点击