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

Edit script.bin or script.fex for Android

点滴 admin 10年前 (2013-12-22) 2778次浏览 已收录 0个评论 扫描二维码
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全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址