设为首页收藏本站

移动叔叔

搜索
查看: 1133|回复: 0
打印 上一主题 下一主题

--资料分享--学习rom制作的必经之路

[复制链接]
跳转到指定楼层
楼主
发表于 2011-6-6 23:55:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
--资料分享--学习rom制作的必经之路

--资料分享--学习rom制作的必经之路

转自:丨米s灬you

先说下rom是怎样执行刷机命令的

目录META-INF/com/google/android/updata-script

这个脚本文件是rom的核心,刷rom的过程是按照一条条的命令来执行的

用记事本打开

做下简单解释,最主要的还是靠大家理解

show_progress 0.1 0--------------------加入标签
format SYSTEM:--------------------------格式化system区
format DATA:----------------------------格式化data区
format CACHE:----------------------------格式化CACHE
copy_dir PACKAGE:system SYSTEM:--复制ROM里的system区到手机的system区
symlink toolbox SYSTEM:bin/cat--以下为toolbox连接
symlink toolbox SYSTEM:bin/chmod
symlink toolbox SYSTEM:bin/chown
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/dd
symlink toolbox SYSTEM:bin/df
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/ionice
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/ln
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/ls
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/mount
symlink toolbox SYSTEM:bin/mv
symlink toolbox SYSTEM:bin/nandread
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/newfs_msdos
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/reboot
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rm
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/umount
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe------------------------toolbox连接结束
copy_dir PACKAGE:data DATA:--------------------复制rom的DATA区到手机的data
set_perm_recursive 1000 1000 0771 0644 DATA:app------文件权限
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 0 0777 0777 SYSTEM:etc/init.d
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02750 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 2000 06750 SYSTEM:bin/run-as
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluetooth
set_perm 0 0 0755 SYSTEM:etc/bluetooth
set_perm 1000 1000 0640 SYSTEM:etc/bluetooth/auto_pairing.conf
set_perm 3002 3002 0444 SYSTEM:etc/bluetooth/blacklist.conf
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm 0 0 04755 SYSTEM:bin/bash
symlink /system/bin/bash SYSTEM:bin/sh--------------文件连接
set_perm 0 0 0777 SYSTEM:bin/a2sd
set_perm 0 0 0777 SYSTEM:etc/init.d/00banner
set_perm 0 0 0777 SYSTEM:etc/init.d/01sysctl
set_perm 0 0 0777 SYSTEM:etc/init.d/02firstboot
set_perm 0 0 0777 SYSTEM:etc/init.d/04apps2sd
set_perm 0 0 0777 SYSTEM:etc/init.d/99complete
set_perm 0 0 0777 SYSTEM:bin/launcha2sd
set_perm 0 0 0777 SYSTEM:bin/starta2sd
set_perm 0 0 0777 SYSTEM:bin/jita2sd
set_perm 0 0 0777 SYSTEM:bin/chka2sd
set_perm 0 0 0777 SYSTEM:bin/zipalign
set_perm 0 0 0777 SYSTEM:bin/sysinit
set_perm 0 0 0777 SYSTEM:bin/busybox.a2sd
set_perm 0 0 0644 SYSTEM:bin/apps2sd.hlp
set_perm 0 0 0777 SYSTEM:xbin/a2sd
set_perm 0 0 0777 SYSTEM:bin/dtinstall
set_perm 0 0 04755 SYSTEM:bin/sysrw
set_perm 0 0 04755 SYSTEM:bin/sysro
set_perm 0 0 04755 SYSTEM:bin/nano
set_perm 0 0 06755 SYSTEM:bin/su-----------文件权限
symlink /system/bin/su SYSTEM:xbin/su-------文件连接
set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp
set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin
show_progress 0.1 10-------标签结束
show_progress 0.2 0-------加入新标签
set_perm 0 1000 0755 SYSTEM:xbin/busybox---------权限
run_program PACKAGE:installbusybox---------运行安装busybox
run_program PACKAGE:data/dtinstall.launch
delete SYSTEM:bin/dtinstall-------删除system/bin/dtinstall
delete DATA:dtinstall.launch-----------删除DATA:dtinstall.launch
write_raw_image PACKAGE:boot.img BOOT:------烧录bootimg
show_progress 0.2 10------------第二标签结束
您需要登录后才可以回帖 登录 | 注册

© 2008-2024 移动叔叔. 版权所有,专业的网络售后平台 ( 闽ICP备18006692号-3 )

商务合作点击这里给我发消息|Email:service@mobileuncle.com|手机版|移动叔叔     

GMT+8, 2024-11-29 12:46 , Processed in 0.119165 second(s), 12 queries , Gzip On, Memcache On.

返回顶部