2 Star 2 Fork 2

贺小帅/Flyme_device_ZTE_A1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
releasetools.py 924 Bytes
一键复制 编辑 原始数据 按行查看 历史
HeShuai 提交于 2016-08-08 13:34 . make services
import common
import edify_generator
import os
def InstallBased(info):
for filename in os.listdir("firmware"):
if not (filename.find('.img')==-1 and filename.find('.bin')==-1 ):
data=open(os.path.join(os.getcwd(),"firmware",filename)).read()
common.ZipWriteStr(info.output_zip, filename, data)
extra_img_flash = """ui_print("update firmware image...");
assert(package_extract_file("logo.img", "/tmp/logo.img"),
write_raw_image("/tmp/logo.img", "logo"),
delete("/tmp/logo.img"));
assert(package_extract_file("lk.bin", "/tmp/uboot.img"),
write_raw_image("/tmp/uboot.img", "uboot"),
delete("/tmp/uboot.img"));
assert(package_extract_file("mobicore.bin", "/tmp/tee1.img"),
write_raw_image("/tmp/tee1.img", "tee1"),
delete("/tmp/tee1.img"));"""
info.script.AppendExtra(extra_img_flash);
def FullOTA_InstallEnd(info):
InstallBased(info)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/hexiaoshuai/FlymeOS_device_ZTE_A1.git
git@gitee.com:hexiaoshuai/FlymeOS_device_ZTE_A1.git
hexiaoshuai
FlymeOS_device_ZTE_A1
Flyme_device_ZTE_A1
C880AV1.0.0B06

搜索帮助