Edit script.bin or script.fex for Android | 少将全栈
  • 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

Edit script.bin or script.fex for Android

点滴 admin 11年前 (2013-12-22) 3155次浏览 已收录 扫描二维码
1. You may needfex2binandbin2fex:
git clone git://github.com/linux-sunxi/sunxi-tools.git
cd sunxi-tools
make

With the using ofls, you can find thefex2binandbin2fex.

2. Copy thescript.binfrom 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 thescript.bintoscript.fex
.
$chmod 777 script.bin
$./bin2fex script.bin ./script.fex
$gedit script.fex

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

4. Convert thescript.fextoscript.binand 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 newscript.binwill come into effect.

Reference:
1.[教程]如何修改script.bin/script.fex

喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。