资源简介

瑞芯微固件解包打包V9.0.0(160917) 更新日志: · 工具性能步进: ·更新支持新版RK3229固件 ·更新支持至Android6.0.1 ·更新固件解包打包内核 ·更新LOGO文件解包打包算法兼容性提升 ·更新工具验证一机一码完整云更新工具 ·更新SU文件以及Android5.1的机器ROOT算法, 一键ROOT固件稳定性兼容性提升 本工具有强大的兼容性,支持RK3368、RK3288、RK3229、RK3128、RK3126、RK3168等线刷固件解包打包定制修改,还有一键功能用来ROOT、换LOGO等解包固件后精简定制固件等各种创意 下载立即可以使用,无需在付费,下载可以使用

资源截图

代码片段和文件信息

#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2011-2012 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms with or without
# modification are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of The Linux Foundation nor
#       the names of its contributors may be used to endorse or promote
#       products derived from this software without specific prior written
#       permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
# AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
# IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
# EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
# WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Invoke gcc looking for warnings and causing a failure if there are
# non-whitelisted warnings.

import errno
import re
import os
import sys
import subprocess

# Note that gcc uses unicode which may depend on the locale.  TODO:
# force LANG to be set to en_US.UTF-8 to get consistent warnings.

allowed_warnings = set([
    “return_address.c:63“
    “hid-appleir.c:347“
    “hid-magicmouse.c:580“
    “hid-ntrig.c:1026“
    “core.c:1334“
    “menu.c:129“
    “bus.c:318“ # FIXME
    “atags_to_fdt.c:96“
 ])

# Capture the name of the object file can find it.
ofile = None

warning_re = re.compile(r‘‘‘(.*/|)([^/]+\.[a-z]+:\d+):(\d+:)? warning:‘‘‘)
def interpret_warning(line):
    “““Decode the message from gcc.  The messages we care about have a filename and a warning“““
    line = line.rstrip(‘\n‘)
    m = warning_re.match(line)
    if m and m.group(2) not in allowed_warnings:
        print “error forbidden warning:“ m.group(2)

        # If there is a warning remove any object if it exists.
        if ofile:
            try:
                os.remove(ofile)
            except OSError:
                pass
        sys.exit(1)

def run_gcc():
    args = sys.argv[1:]
    # Look for -o
    try:
        i = args.index(‘-o‘)
        global ofile
        ofile = args[i+1]
    except (ValueError IndexError):
        pass

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         13  2016-09-17 13:13  bin\BOX_x.txt

     文件          0  2016-01-25 19:27  bin\ID.txt.txt

     文件        539  2016-09-17 12:30  更新日志.txt

     文件        175  2016-01-23 04:46  bin\unpack.ini

     文件     128512  2008-07-04 00:08  bin\Linux\a2p.exe

     文件     128512  2008-07-04 00:08  bin\Linux\a2p5.10.0.exe

     文件     161792  2013-05-03 17:13  bin\adb.exe

     文件      34304  2008-08-16 01:18  bin\Linux\addftinfo.exe

     文件     521728  2008-07-09 06:14  bin\Linux\addr2line.exe

     文件     230400  2014-07-08 14:27  bin\AFPTool.exe

     文件    1333711  2015-08-29 16:37  bin\Append.exe

     文件     541184  2008-07-09 06:14  bin\Linux\ar.exe

     文件      43008  2008-11-14 12:54  bin\Linux\arch.exe

     文件     947712  2008-07-09 06:14  bin\Linux\as.exe

     文件       7168  2009-04-23 10:27  bin\Linux\ascii.exe

     文件      74240  2004-01-27 18:14  bin\Linux\ash.exe

    ..A.S..        19  2008-06-15 03:49  bin\Linux\awk.exe

     文件       8704  2009-04-23 10:27  bin\Linux\banner.exe

     文件      48128  2008-11-14 12:54  bin\Linux\base64.exe

     文件      43008  2008-11-14 12:54  bin\Linux\basename.exe

     文件     469504  2009-06-24 05:12  bin\Linux\bash.exe

     文件      41720  2012-04-29 04:39  bin\Linux\bmptool.exe

     文件      16384  2013-05-03 17:13  bin\bmptoppm.exe

     文件      81920  2009-03-02 10:52  bin\Linux\bunzip2.exe

     文件      81920  2009-03-02 10:52  bin\Linux\bzcat.exe

     文件      81920  2009-03-02 10:52  bin\Linux\bzip2.exe

     文件       7680  2009-03-02 10:52  bin\Linux\bzip2recover.exe

     文件     520704  2008-07-09 06:14  bin\Linux\c++filt.exe

     文件      46080  2008-11-14 12:54  bin\Linux\cat.exe

    ..A.S..        20  2009-07-09 22:23  bin\Linux\cc-3.exe

............此处省略1714个文件信息

评论

共有 条评论