LE代码制作OTA的过程

以下是制作一个ota包的代码过程分析:
1.在./meta-qti-bsp/recipes-products/images/machine-robot-image.bb中有(或者是machine-image.bb)
require include/mdm-ota-target-image-ext4.inc
2.在rocto没有zip包的原因是,在上面的bb文件中把require include/mdm-ota-target-image-ext4.inc屏蔽掉了
3.分析mdm-ota-target-image-ext4.inc
A.增加生成recovery ext4,和ota包的任务
B.设置OTA_TARGET_IMAGE_ROOTFS_EXT4和RECOVERY_IMAGE_ROOTFS的路径
C. do_recovery_ext4()函数的前期准备,为recovery ext4创建目录结构:BOOTABLE_IMAGES、 RECOVERY 、SYSTEM 、DATA 、META 、RADIO 、OTA、BOOT/RAMDISK
D.等待recovery rootfs镜像 生成,因为它是生成ota files的关键
E.开始制作ota files,调用do_recovery_ext4()函数第一个任务
#拷贝radio
#拷贝boot.img成为BOOTABLE_IMAGES的boot.img和recovery.img
#拷贝system rootfs到SYSTEM ,拷贝recovery rootfs到RECOVERY
#制作recovery.fstab分区表,这是被updater-script使用的
#如果有usrfs,就拷贝进入DATA目录
#为ota目录建立bin目录,并且把RECOVERY目录下的applypatch和updater文件拷入
#拷贝file_contexts到RAMDISK/.目录下
#给META/misc_info.txt文件写入信息:version boot_size recovery_size system_size userdata_size cache_size (均可以从partit

iPhone降级工具NO LONGER MAINTAINED, USE VIEUX INSTEAD! 10.3.3 OTA Downgrade Script Script to downgrade any device that has iOS 10.3.3 OTA signed. Please read this before doing ANYTHING Yes, this may not work out of the box for everyone. Please note, if you are experienced with compiling things and using package managers, this will be an easy fix. For everyone else, please post any issues on the issues page and I will try to resolve any issues that are present. Also, please do not change a single thing unless you absolutely know what you're doing. Just let the script do its thing. Only supports the iPhone 5s (6,1 and 6,2), iPad Air (iPad4,1 iPad4,2 and iPad4,3) and iPad Mini 2 (iPad4,4 and iPad4,5). No iPad4,6 support ever because it doesn't have 10.3.3 OTA signed as it shipped with 7.1 not 7.0. Has been tested on macOS Mojave but SHOULD work on Catalina as it now doesn't need to write to / but CATALINA IS UNTESTED CURRENTLY. Don't complain to us if it doesn't work, just give us errors and we will try fix it. If you are running High Sierra or Catalina, it seems like these are the worst for ipwndfu to exploit your device. I'd advise either running a new install or just not even running this. You won't get anywhere on those versions until axi0mX updates the exploit. Windows support will probably be something that would never happen. Axi0mX probably isn't interested in supporting Windows with ipwndfu. Until then, Windows support will not be added. If this breaks your phone or macOS install neither Matty or Merc take absolutely no responsibility. This script has been tested by Matty, Merc, and others and should be fine but in case something goes wrong, that's on you not us. No verbose boot, custom logo's, or anything else will be added as of now, maybe later on. This will only downgrade your device to 10.3.3 and that's it.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值