解压/制作Android Bootimg
来源:互联网 发布:php和mysql交互 编辑:程序博客网 时间:2024/06/02 03:59
一、 解压boot.img
1.先下工具。 split.pl
2.解压boot.img文件
去到boot.img所在的文件夹,输入下面的命令:
split.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 2240184 (0x00222eb8)
Ramdisk size: 221504 (0x00036140)
Second size: 0 (0x00000000)
Board name:
Command line:androidboot.hardware=blade console=null g_android.product_id=0x1354 g_android.serial_number=Blade-CM7
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
完了之后,你就会发现多了boot.img-kernel 和 boot.img-ramdisk.gz文件,这就是解压出来的boot.img,其中boot.img-kernel 就是内核,boot.img-ramdisk.gz就是ramdisk。
3.打包boot.img文件
在替换和内核后,就要对boot.img打包了!!下是代码:
二、 制作boot.img
mkbootimg --cmdline 'androidboot.hardware=blade console=null g_android.product_id=0x1354 g_android.serial_number=Blade-CM7' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz -o new.img
命令中-cmdline‘xxx’,xxx就是解压boot.img是Command line:xxx
new.img文件就是你修改后的boot.img文件了。改个名字替换到ROM里面就可以了。!!
1.先下工具。 split.pl
2.解压boot.img文件
去到boot.img所在的文件夹,输入下面的命令:
split.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 2240184 (0x00222eb8)
Ramdisk size: 221504 (0x00036140)
Second size: 0 (0x00000000)
Board name:
Command line:androidboot.hardware=blade console=null g_android.product_id=0x1354 g_android.serial_number=Blade-CM7
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
完了之后,你就会发现多了boot.img-kernel 和 boot.img-ramdisk.gz文件,这就是解压出来的boot.img,其中boot.img-kernel 就是内核,boot.img-ramdisk.gz就是ramdisk。
3.打包boot.img文件
在替换和内核后,就要对boot.img打包了!!下是代码:
二、 制作boot.img
mkbootimg --cmdline 'androidboot.hardware=blade console=null g_android.product_id=0x1354 g_android.serial_number=Blade-CM7' --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz -o new.img
命令中-cmdline‘xxx’,xxx就是解压boot.img是Command line:xxx
new.img文件就是你修改后的boot.img文件了。改个名字替换到ROM里面就可以了。!!
- 解压/制作Android Bootimg
- android rom制作之bootimg的详细介绍和使用
- android rom制作之bootimg的详细介绍和使用
- android rom制作之bootimg的详细介绍和使用
- android rom制作之bootimg的详细介绍和使用
- bootimg解压和压缩破解
- android bootimg systemimg dataimg
- 制作/解压android ramdisk.img镜像
- Bootimg介绍
- 制作自解压包
- iso制作与解压
- splitimg脚本解析bootimg及打包bootimg
- splitimg脚本解析bootimg及打包bootimg
- mbm文件制作以及“解压”
- initrd解压和相关制作
- 制作自解压安装文件
- 批处理制作自解压包
- initrd的制作和解压
- 关于Python中以字母r/R,或字母u/U 开头的字符串
- 电话面试技巧全攻略
- oracle 中 drop user when exists的写法
- spin_lock & mutex_lock的区别
- 成家立业
- 解压/制作Android Bootimg
- 面试问题之dwr和jquery的作用
- error: Exited sync due to gc errors 解决方法
- C++继承经典案例
- webkit加速合成
- HttpServletResponse的应用
- axis1.4 发布webservice的问题
- C / C++ 头文件一览
- sql server 日志文件作用及设置