fastboot脚本刷入ECHO脚本关闭怎么办

【cofface】HTC S-ON unlock机型自动刷入boot.img脚本教程 - Cofface Blog
下面介绍解决HTC S-ON机器解锁unlocked后刷入刷机包的方法,s off机型测试通过。感谢作者、
感谢xiaolu大在其htc one s off机型测试也通过。此教程适用于ROM开发者。下面以HTC ONE机型为例;1、下载附件解压后如下图所示:
其中kernel目录放置的是刷boot.img脚本,META-INF目录是定制ROM的刷机脚本和签名,boot.img是内核;2、boot.img替换成你机型的内核;3、kernel目录不需要动任何操作,复制此目录到你的ROM包即可;4、META-INF目录下的updater-script刷机脚本代码复制到你的ROM包刷机脚本写boot.img代码覆盖即可,如下图所示;
温馨提示:刷机信息最后如果任何信息都不打印表示已经自动刷入,如果是Kernel Will Be Installed On Startup,则表示他会在重启的过程中刷入,如果出现ERROR: Kernel Not Installed!就表示无法刷入了。后使用快捷导航没有帐号?
一步搞定
只需一步,快速开始
查看: 1005|回复: 7
阅读权限40分享主题在线时间1053 小时积分2183UID4744139帖子精华0 战斗力0 点 技术0 点 金币4478 元 人气60 点 贡献1754 点 智豆0 点 手机u9200注册时间最后登录
, 积分 2183, 距离下一级还需 817 积分
金币4478 元 手机u9200 智豆0 点
我不知道为什那么自己打包的rom,re刷入时,总是。。。。检查刷机包...........
打开刷机包..........
E:Can't open &引号内容为刷机包名称&.zip(bad)
我查过很多论坛和网站了,主要是说是签名问题,sd卡问题,脚本问题。
但我可以排除是sd卡问题,因为我能刷大神们的包。脚本应该也没问题,我看了挺多有关的脚本的增加删减帖子。还有,rom中绝对没有空格符号,中文等。
至于是不是签名问题,我不确定。我是用厨房签名的。
我自己修改的脚本如下(我只修改了一点点,就是红色部分):
show_progress(0.1, 0);format(&ext4&, &EMMC&, &/dev/block/mmcblk0p13&, &0&);
mount(&ext4&, &EMMC&, &/dev/block/mmcblk0p13&, &/system&);& && &&&ui_print(&&);
& && &&&ui_print(&&);
& && &&&ui_print(&&);& & & & & & & &
& && &&&ui_print(&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&);
& && &&&ui_print(&& && && &&&官方EMUI B534 卡刷rom& && && &&);
& && &&&ui_print(&#########################################&);
& && &&&ui_print(&& && && && & HUAWEI ASCEND P1& && && && &&);
& && &&&ui_print(&=========================================&);
& && &&&ui_print(&&);
& && &&&ui_print(&#########################################&);
& && &&&ui_print(&& & 本脚本是通过安智Ry9大神的进行小修改& &&);
& && &&&ui_print(&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&);
& && &&&ui_print(&&);
& && &&&ui_print(&&);
& && &&&ui_print(&&);
ui_print(&Updating SYSTEM...&);
show_progress(0.8, 22);
package_extract_dir(&system&, &/system&);
symlink(&busybox&, &/system/xbin/[&, &/system/xbin/[[&,
& && &&&&/system/xbin/arp&, &/system/xbin/ash&, &/system/xbin/awk&,
& && &&&&/system/xbin/basename&, &/system/xbin/bbconfig&, &/system/xbin/brctl&,
& && &&&&/system/xbin/bunzip2&, &/system/xbin/bzcat&, &/system/xbin/bzip2&,
& && &&&&/system/xbin/cal&, &/system/xbin/cat&, &/system/xbin/catv&,
& && &&&&/system/xbin/chgrp&, &/system/xbin/chmod&, &/system/xbin/chown&,
& && &&&&/system/xbin/chroot&, &/system/xbin/cksum&, &/system/xbin/clear&,
& && &&&&/system/xbin/cmp&, &/system/xbin/cp&, &/system/xbin/cpio&,
& && &&&&/system/xbin/cut&, &/system/xbin/date&, &/system/xbin/dc&,
& && &&&&/system/xbin/dd&, &/system/xbin/depmod&, &/system/xbin/devmem&,
& && &&&&/system/xbin/df&, &/system/xbin/diff&, &/system/xbin/dirname&,
& && &&&&/system/xbin/dmesg&, &/system/xbin/dnsd&, &/system/xbin/dos2unix&,
& && &&&&/system/xbin/du&, &/system/xbin/echo&, &/system/xbin/ed&,
& && &&&&/system/xbin/egrep&, &/system/xbin/env&, &/system/xbin/expr&,
& && &&&&/system/xbin/false&, &/system/xbin/fdisk&, &/system/xbin/fgrep&,
& && &&&&/system/xbin/find&, &/system/xbin/fold&, &/system/xbin/free&,
& && &&&&/system/xbin/freeramdisk&, &/system/xbin/fuser&, &/system/xbin/getopt&,
& && &&&&/system/xbin/grep&, &/system/xbin/gunzip&, &/system/xbin/gzip&,
& && &&&&/system/xbin/head&, &/system/xbin/hexdump&, &/system/xbin/id&,
& && &&&&/system/xbin/ifconfig&, &/system/xbin/insmod&, &/system/xbin/install&,
& && &&&&/system/xbin/ip&, &/system/xbin/kill&, &/system/xbin/killall&,
& && &&&&/system/xbin/killall5&, &/system/xbin/length&, &/system/xbin/less&,
& && &&&&/system/xbin/ln&, &/system/xbin/losetup&, &/system/xbin/ls&,
& && &&&&/system/xbin/lsmod&, &/system/xbin/lspci&, &/system/xbin/lsusb&,
& && &&&&/system/xbin/lzop&, &/system/xbin/lzopcat&, &/system/xbin/md5sum&,
& && &&&&/system/xbin/mkdir&, &/system/xbin/mke2fs&, &/system/xbin/mkfifo&,
& && &&&&/system/xbin/mkfs.ext2&, &/system/xbin/mknod&, &/system/xbin/mkswap&,
& && &&&&/system/xbin/mktemp&, &/system/xbin/modprobe&, &/system/xbin/more&,
& && &&&&/system/xbin/mount&, &/system/xbin/mountpoint&, &/system/xbin/mv&,
& && &&&&/system/xbin/netstat&, &/system/xbin/nice&, &/system/xbin/nohup&,
& && &&&&/system/xbin/nslookup&, &/system/xbin/ntpd&, &/system/xbin/od&,
& && &&&&/system/xbin/patch&, &/system/xbin/pgrep&, &/system/xbin/pidof&,
& && &&&&/system/xbin/ping&, &/system/xbin/pkill&, &/system/xbin/printenv&,
& && &&&&/system/xbin/printf&, &/system/xbin/ps&, &/system/xbin/pwd&,
& && &&&&/system/xbin/rdev&, &/system/xbin/readlink&, &/system/xbin/realpath&,
& && &&&&/system/xbin/renice&, &/system/xbin/reset&, &/system/xbin/rm&,
& && &&&&/system/xbin/rmdir&, &/system/xbin/rmmod&, &/system/xbin/route&,
& && &&&&/system/xbin/run-parts&, &/system/xbin/sed&, &/system/xbin/seq&,
& && &&&&/system/xbin/setsid&, &/system/xbin/sh&, &/system/xbin/sha1sum&,
& && &&&&/system/xbin/sha256sum&, &/system/xbin/sha512sum&,
& && &&&&/system/xbin/sleep&, &/system/xbin/sort&, &/system/xbin/split&,
& && &&&&/system/xbin/stat&, &/system/xbin/strings&, &/system/xbin/stty&,
& && &&&&/system/xbin/swapoff&, &/system/xbin/swapon&, &/system/xbin/sync&,
& && &&&&/system/xbin/sysctl&, &/system/xbin/tac&, &/system/xbin/tail&,
& && &&&&/system/xbin/tar&, &/system/xbin/tee&, &/system/xbin/telnet&,
& && &&&&/system/xbin/test&, &/system/xbin/tftp&, &/system/xbin/time&,
& && &&&&/system/xbin/top&, &/system/xbin/touch&, &/system/xbin/tr&,
& && &&&&/system/xbin/traceroute&, &/system/xbin/true&, &/system/xbin/tty&,
& && &&&&/system/xbin/tune2fs&, &/system/xbin/umount&, &/system/xbin/uname&,
& && &&&&/system/xbin/uniq&, &/system/xbin/unix2dos&, &/system/xbin/unlzop&,
& && &&&&/system/xbin/unzip&, &/system/xbin/uptime&, &/system/xbin/usleep&,
& && &&&&/system/xbin/uudecode&, &/system/xbin/uuencode&, &/system/xbin/vi&,
& && &&&&/system/xbin/watch&, &/system/xbin/wc&, &/system/xbin/wget&,
& && &&&&/system/xbin/which&, &/system/xbin/whoami&, &/system/xbin/xargs&,
& && &&&&/system/xbin/yes&,
& && &&&&/system/xbin/zcat&);
symlink(&toolbox&, &/system/bin/cat&, &/system/bin/chmod&,
& && &&&&/system/bin/chown&, &/system/bin/cmp&, &/system/bin/date&,
& && &&&&/system/bin/dd&, &/system/bin/df&, &/system/bin/dmesg&,
& && &&&&/system/bin/getevent&, &/system/bin/getprop&, &/system/bin/hd&,
& && &&&&/system/bin/id&, &/system/bin/ifconfig&, &/system/bin/iftop&,
& && &&&&/system/bin/insmod&, &/system/bin/ioctl&, &/system/bin/ionice&,
& && &&&&/system/bin/kill&, &/system/bin/ln&, &/system/bin/log&,
& && &&&&/system/bin/ls&, &/system/bin/lsmod&, &/system/bin/lsof&,
& && &&&&/system/bin/mkdir&, &/system/bin/mount&, &/system/bin/mv&,
& && &&&&/system/bin/nandread&, &/system/bin/netstat&,
& && &&&&/system/bin/newfs_msdos&, &/system/bin/notify&, &/system/bin/printenv&,
& && &&&&/system/bin/ps&, &/system/bin/r&, &/system/bin/reboot&,
& && &&&&/system/bin/renice&, &/system/bin/rm&, &/system/bin/rmdir&,
& && &&&&/system/bin/rmmod&, &/system/bin/route&, &/system/bin/schedtop&,
& && &&&&/system/bin/sendevent&, &/system/bin/setconsole&,
& && &&&&/system/bin/setprop&, &/system/bin/sleep&, &/system/bin/smd&,
& && &&&&/system/bin/start&, &/system/bin/stop&, &/system/bin/sync&,
& && &&&&/system/bin/top&, &/system/bin/touch&, &/system/bin/umount&,
& && &&&&/system/bin/uptime&, &/system/bin/vmstat&, &/system/bin/watchprops&,
& && &&&&/system/bin/wipe&);
& && &&&symlink(&mksh&, &/system/bin/sh&);
& && &&&symlink(&Roboto-Bold.ttf&, &/system/fonts/DroidSans-Bold.ttf&);
& && &&&symlink(&Roboto-Regular.ttf&, &/system/fonts/DroidSans.ttf&);
& && &&&symlink(&libbltsville_cpu.2.0.0.8.so&, &/system/vendor/lib/libbltsville_cpu.so&);
& && &&&symlink(&libbltsville_ticpu.2.0.0.8.so&, &/system/vendor/lib/libbltsville_ticpu.so&);
set_perm_recursive(0, 0, , &/system&);
set_perm_recursive(0, , 0755, &/system/bin&);
set_perm(0, , &/system/bin/ip&);
set_perm(0, , &/system/bin/netcfg&);
set_perm(0, , &/system/bin/ping&);
set_perm(0, , &/system/bin/run-as&);
set_perm_recursive(, , &/system/etc/bluetooth&);
set_perm(0, 0, 0755, &/system/etc/bluetooth&);
set_perm(, 0640, &/system/etc/bluetooth/auto_pairing.conf&);
set_perm(, 0444, &/system/etc/bluetooth/blacklist.conf&);
set_perm(, 0440, &/system/etc/dbus.conf&);
set_perm(, 0550, &/system/etc/dhcpcd/dhcpcd-run-hooks&);
set_perm(0, , &/system/etc/init.goldfish.sh&);
set_perm_recursive(0, , 0755, &/system/etc/init.d&);
set_perm(0, 0, 0755, &/system/etc/init.d&);
set_perm_recursive(0, 0, , &/system/etc/ppp&);
set_perm_recursive(0, , 0644, &/system/vendor&);
set_perm_recursive(0, , 0755, &/system/vendor/bin&);
set_perm_recursive(0, , 0644, &/system/vendor/etc&);
set_perm_recursive(0, 0, , &/system/vendor/firmware&);
set_perm(0, , &/system/vendor/firmware&);
set_perm(0, , &/system/vendor/lib&);
set_perm(0, , &/system/vendor/lib/egl&);
set_perm(0, , &/system/vendor/lib/hw&);
set_perm_recursive(0, , 0755, &/system/xbin&);
set_perm(0, 0, 06755, &/system/xbin/su&);
run_program(&/sbin/busybox&, &mount&, &/data&);
package_extract_dir(&data&, &/data&);
set_perm_recursive(, , &/data/app&);
show_progress(0.1, 10);
ui_print(&Updating BOOT Image...&);
package_extract_file(&boot.img&, &/dev/block/mmcblk0p6&);
ui_print(&Updating CUST Partition...&);
format(&ext4&, &EMMC&, &/dev/block/mmcblk0p19&, &0&);
mount(&ext4&, &EMMC&, &/dev/block/mmcblk0p19&, &/cust&);
package_extract_dir(&cust&, &/cust&);
show_progress(0.1, 0);
unmount(&/system&);
unmount(&/cust&);
ui_print(&Installation complete!&);
大神们,这是怎么回事,我的rom中的文件当然是自己添加了cust和data文件夹。
难道是签名问题?还是脚本问题呢?
阅读权限40分享主题在线时间1053 小时积分2183UID4744139帖子精华0 战斗力0 点 技术0 点 金币4478 元 人气60 点 贡献1754 点 智豆0 点 手机u9200注册时间最后登录
, 积分 2183, 距离下一级还需 817 积分
金币4478 元 手机u9200 智豆0 点
p1区没有自己DIY& &rom 的同学吗。呃呃呃
阅读权限45分享主题在线时间2300 小时积分4855UID4501899帖子精华0 战斗力0 点 技术3 点 金币290 元 人气92 点 贡献3936 点 智豆0 点 手机P1注册时间最后登录
, 积分 4855, 距离下一级还需 145 积分
金币290 元 手机P1 智豆0 点
蹂躏世人 发表于
p1区没有自己DIY& &rom 的同学吗。呃呃呃
阅读权限40分享主题在线时间1053 小时积分2183UID4744139帖子精华0 战斗力0 点 技术0 点 金币4478 元 人气60 点 贡献1754 点 智豆0 点 手机u9200注册时间最后登录
, 积分 2183, 距离下一级还需 817 积分
金币4478 元 手机u9200 智豆0 点
<font color="#5857938 发表于
没遇到过,但是你用什么打包的啊?
阅读权限45分享主题在线时间2300 小时积分4855UID4501899帖子精华0 战斗力0 点 技术3 点 金币290 元 人气92 点 贡献3936 点 智豆0 点 手机P1注册时间最后登录
, 积分 4855, 距离下一级还需 145 积分
金币290 元 手机P1 智豆0 点
蹂躏世人 发表于
没遇到过,但是你用什么打包的啊?
我没解包过,直接在压缩的状态下进行的
阅读权限40分享主题在线时间1053 小时积分2183UID4744139帖子精华0 战斗力0 点 技术0 点 金币4478 元 人气60 点 贡献1754 点 智豆0 点 手机u9200注册时间最后登录
, 积分 2183, 距离下一级还需 817 积分
金币4478 元 手机u9200 智豆0 点
奥,我是想自己弄官方包。比如大神没制作卡刷包前,我自己就能体验了。
反正不想刷官方recovery,刷来刷去麻烦。直接来个卡刷rom更爽,是吧
阅读权限150分享主题在线时间6289 小时积分13743UID2341934帖子精华0 战斗力0 点 技术20 点 金币37 元 人气1147 点 贡献10088 点 智豆0 点 手机21世纪超级无敌歼—20重型版注册时间最后登录
心理学砖家
金币37 元 手机21世纪超级无敌歼—20重型版 智豆0 点
删掉试试,还有 ui_print(&& & 本脚本是通过安智Ry9大神的进行小修改& &&);这句话貌似显示不来把
&-sina_sign,,6daf321a,9-&
未曾被超越的人…………
阅读权限40分享主题在线时间1053 小时积分2183UID4744139帖子精华0 战斗力0 点 技术0 点 金币4478 元 人气60 点 贡献1754 点 智豆0 点 手机u9200注册时间最后登录
, 积分 2183, 距离下一级还需 817 积分
金币4478 元 手机u9200 智豆0 点
李福龙 发表于
删掉试试,还有 ui_print(&& & 本脚本是通过安智Ry9大神的进行小修改& &&);这句话貌似显示不来把
感谢你的回复。我试过,不可以呢
安智版主勋章
安智版主勋章
安智全勤勋章
签到满一百天即可申请
要说近来的社会风气啊,真是能一句话总结——“坏人都变老了!”老人摔倒你扶不扶?或者说你敢不敢扶?这居然成了一道无解的问题!
Powered by

我要回帖

更多关于 小米刷机fastboot脚本 的文章

 

随机推荐