瑞芯微固件解包打包修改工具


一款用于Windows平台下的瑞芯微固件修改工具。适用于RK3399、RK3368、RK3328、RK3288、RK3229、RK3228、RK3188、RK3168、RK3128、 等瑞芯微全系安装平台线刷固件的解包打包修改。稳定快速解包打包system、boot、resource、recovery.img等进行固件定制修改DIY。是Windows平台进行固件自由添加精简预装的软件、改开机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(‘
‘)
    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

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

     文件       8876  2016-07-12 10:39  configKernelConfig.ini

     文件       1443  2016-07-12 10:39  configparameter_rk3026_86v

     文件       1539  2016-07-12 10:39  configparameter_rk3028a_86v

     文件       1811  2016-07-12 10:39  configparameter_rk3168_616

     文件       1231  2016-07-12 10:39  configparameter_rk3188_616

     文件      10512  2016-07-12 10:39  configsystemconfig.ini

     文件     892156  2015-01-04 14:30  DocADC电池测试工具_V2.3.pdf

     文件    6976283  2015-01-08 16:52  DocBatteryArray_V2.3.apk

     文件     567110  2015-01-04 14:35  Doc固件工厂FactoryToolV5.0.pdf

     文件      16802  2016-07-12 10:39  LanguageChinese.ini

     文件      20990  2016-07-12 10:39  LanguageEnglish.ini

     文件    6063104  2016-08-08 14:43  PluginFirmwareModifier.bsc

     文件    1658880  2016-08-11 15:14  PluginFirmwareModifier.dll

     文件       6244  2016-08-11 15:14  PluginFirmwareModifier.exp

     文件      11468  2016-08-11 15:14  PluginFirmwareModifier.lib

     文件    5874688  2016-08-08 14:43  PluginFirmwareModifier.pdb

     文件       1046  2016-07-12 10:39  config.ini

     文件     528384  2016-08-11 15:15  FWFactoryTool.exe

     文件     161792  2016-07-12 10:39  binadb.exe

     文件      96256  2016-07-12 10:39  binAdbWinApi.dll

     文件      60928  2016-07-12 10:39  binAdbWinUsbApi.dll

     文件     176128  2016-07-12 10:39  binAFPTool.exe

     文件      16384  2016-07-12 10:39  binmptoppm.exe

     文件   10543133  2016-07-12 10:39  bincc1.exe

     文件      41720  2016-07-12 10:39  binconvert.exe

     文件     124430  2016-07-12 10:39  bincpio.exe

     文件      33758  2016-07-12 10:39  bincramfsck.exe

     文件      84509  2016-07-12 10:39  bincygaa-1.dll

     文件      35869  2016-07-12 10:39  bincygamd-0.dll

     文件      38414  2016-07-12 10:39  bincygao-4.dll

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)