反编译华为U8825Dframework-res.apk出现的错误提示1

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\apk>C:\apk\apktool.bat if f.apk
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: string-ERR0
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: string-ERR1
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: string-ERR2
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: string-zh-rHK-ERR3
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: string-zh-rHK-ERR4
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: string-zh-rHK-ERR5
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: string-zh-rCN-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: string-zh-rCN-ERR7
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: string-zh-rCN-ERR8
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: string-zh-rTW-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: string-zh-rTW-ERR10
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: string-zh-rTW-ERR11
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: plurals-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: plurals-ERR13
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: plurals-ERR14
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: plurals-zh-rHK-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: plurals-zh-rHK-ERR16
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: plurals-zh-rHK-ERR17
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: plurals-zh-rCN-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: plurals-zh-rCN-ERR19
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: plurals-zh-rCN-ERR20
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected: plurals-zh-rTW-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected: plurals-zh-rTW-ERR22
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected: plurals-zh-rTW-ERR23
I: Framework installed to: C:\Documents and Settings\Administrator\apktool\frame
work\1.apk

C:\apk>C:\apk\apktool.bat if f2.apk
I: Framework installed to: C:\Documents and Settings\Administrator\apktool\frame
work\2.apk

C:\apk>C:\apk\apktool.bat d f.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: string-ERR0
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: string-ERR1
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: string-ERR2
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR3
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR4
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR5
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rCN-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rCN-ERR7
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: string-zh-rCN-ERR8
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rTW-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: string-zh-rTW-ERR10
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: string-zh-rTW-ERR11
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: plurals-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: plurals-ERR13
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: plurals-ERR14
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rHK-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rHK-ERR16
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rHK-ERR17
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rCN-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rCN-ERR19
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rCN-ERR20
W: Config flags size > 36. Exceeding bytes: 0x11009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rTW-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rTW-ERR22
W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
W: Invalid config flags detected. Dropping resources: plurals-zh-rTW-ERR23
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

C:\apk>

C:\apk>C:\apk\apktool.bat b f 34566.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'accessibility_compound_button_selected' has no default tr
anslation in C:\apk\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'accessibility_compound_button_unselected' has no default
translation in C:\apk\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'battery_low_percent_format' has no default translation in
C:\apk\f\res; found: bs es et fr_CA is mk ms pt_BR sl zh_HK
aapt: warning: string 'battery_low_subtitle' has no default translation in C:\ap
k\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'battery_low_title' has no default translation in C:\apk\f
\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'battery_low_why' has no default translation in C:\apk\f\r
es; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'battery_status_charging' has no default translation in C:
\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'battery_status_text_percent_format' has no default transl
ation in C:\apk\f\res; found: es fr_CA zh_HK
aapt: warning: string 'contact_status_update_attribution' has no default transla
tion in C:\apk\f\res; found: fr_CA mk zh_HK
aapt: warning: string 'contact_status_update_attribution_with_date' has no defau
lt translation in C:\apk\f\res; found: bs fr_CA is mk pt_BR zh_HK
aapt: warning: string 'copyAll' has no default translation in C:\apk\f\res; foun
d: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'cutAll' has no default translation in C:\apk\f\res; found
: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'description_star' has no default translation in C:\apk\f\
res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'l2tp_ipsec_crt_vpn_description' has no default translatio
n in C:\apk\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'l2tp_ipsec_psk_vpn_description' has no default translatio
n in C:\apk\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'l2tp_vpn_description' has no default translation in C:\ap
k\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'lockscreen_sim_corporate_locked_message' has no default t
ranslation in C:\apk\f\res; found: bs mk pt_BR zh_HK
aapt: warning: string 'lockscreen_sim_network_locked_message' has no default tra
nslation in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'lockscreen_sim_network_subset_locked_message' has no defa
ult translation in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'lockscreen_sim_service_provider_locked_message' has no de
fault translation in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'lockscreen_sim_sim_locked_message' has no default transla
tion in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'memory_in_phone' has no default translation in C:\apk\f\r
es; found: es_MX es_US es_VE fa
aapt: warning: string 'memory_in_sdcard' has no default translation in C:\apk\f\
res; found: es_MX es_US es_VE
aapt: warning: string 'permdesc_accessUsb' has no default translation in C:\apk\
f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'permdesc_readOwnerData' has no default translation in C:\
apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'permdesc_writeOwnerData' has no default translation in C:
\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'permlab_accessUsb' has no default translation in C:\apk\f
\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'permlab_readOwnerData' has no default translation in C:\a
pk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'permlab_writeOwnerData' has no default translation in C:\
apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'pptp_vpn_description' has no default translation in C:\ap
k\f\res; found: bs et fr_CA is mk pt_BR zh_HK
aapt: warning: string 'selectText' has no default translation in C:\apk\f\res; f
ound: bs fr_CA is mk pt_BR zh_HK
aapt: warning: string 'status_bar_clear_all_button' has no default translation i
n C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'status_bar_latest_events_title' has no default translatio
n in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'status_bar_no_notifications_title' has no default transla
tion in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'status_bar_ongoing_events_title' has no default translati
on in C:\apk\f\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'stopSelectingText' has no default translation in C:\apk\f
\res; found: bs es fr_CA is mk pt_BR zh_HK
aapt: warning: string 'test_version_for_develop' has no default translation in C
:\apk\f\res; found: bs es_MX es_US es_VE mk pt_BR zh_HK
I: Building apk file...

C:\apk>

加载框架时显示错误“Config flags size > 36. Exceeding bytes: 0x11009C00”,

应该是定义里没有,反编译时丢弃“Dropping resources”,

然后编译时根据列表找不到已被丢弃的资源,第一行提示 “W: Could not find sources ”

 

编译时出现aapt: warning string 'appname' has no default translation in ...

语言包中已经有name,但public.xml中未定义。具体见下

 

查看apktool参数,apktool作者已考虑到出现这种情况的可能性。

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\apk>apktool
Apktool v1.5.0.5a056e3 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
with smali v1.3.4-ibot8, and baksmali v1.3.4-ibot8
Updated by iBotPeaches <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)

Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]

COMMANDs are:

    d[ecode] [OPTS] <file.apk> [<dir>]
        Decode <file.apk> to <dir>.

        OPTS:

        -s, --no-src
            Do not decode sources.
        -r, --no-res
            Do not decode resources.
        -d, --debug
            Decode in debug mode. Check project page for more info.
        -f, --force
            Force delete destination directory.
        -t <tag>, --frame-tag <tag>
            Try to use framework files tagged by <tag>.
        --keep-broken-res
            Use if there was an error and some resources were dropped, e.g.:
            "Invalid config flags detected. Dropping resources", but you
            want to decode them anyway, even with errors. You will have to
            fix them manually before building.

    b[uild] [OPTS] [<app_path>] [<out_file>]
        Build an apk from already decoded application located in <app_path>.

        It will automatically detect, whether files was changed and perform
        needed steps only.

        If you omit <app_path> then current directory will be used.
        If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
        will be used.

        OPTS:

        -f, --force-all
            Skip changes detection and build all files.
        -d, --debug
            Build in debug mode. Check project page for more info.

    if|install-framework <framework.apk> [<tag>]
        Install framework file to your system.

For additional info, see: https://github.com/iBotPeaches/brut.apktool
For smali/baksmali info, see: http://code.google.com/p/smali/

C:\apk>

--keep-broken-res
            Use if there was an error and some resources were dropped, e.g.:
            "Invalid config flags detected. Dropping resources", but you
            want to decode them anyway, even with errors. You will have to
            fix them manually before building.

使用“--keep-broken-res”反编译出的文件和不用此选项反编译出的文件做对比,基本都是语言包被Dropping了。

汉化apk的时候不过就是添加中文的语言包,那么语言包是不是可以随便增添的呢?

-----------------------------------------------------------------------------------------------------------------------------

string被丢弃就会产生下面的问题

“has no default translation in”

反编译华为U8825Dframework-res.apk出现的错误提示1

反编译华为U8825Dframework-res.apk出现的错误提示1

这两张图说明:个别语言包中存在的“string”在public中没有定义

以下为引用

删除语言包后报错?
刚刚有讲到删除了一部分语言包,有些strings是是该语言独享,并且values中的srings.xml亦没有,那么删除它们合成的时候报错是必然的了。
报错了怎么办?最简单的就是别删语言包。
进阶方案:只想保留英简繁三语,其他一定要删除。请看下文:
    到apk manager的主目录下看log。
    会告诉您 public.xml 行号 xxxx资源不存在。如果仅仅是删除语言包产生的错误
    打开public.xml,比对log文件中的行号,将其删除(删除时请注意保留该行\号,以免接下来的行号不对应log中的错误行号而导致误删除。)
    重新执行合成步骤,看看是否报错,如果您正确处理掉多余的string,那么将不再报错。

此文形成已久,不再更正,见(2)

更多相关文章
  • Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp.C:\apk>apktool if f.apk W: Config flags size > 36. Exceeding bytes: 0x11009 ...
  • androidapk防止反编译技术第三篇-加密
    经过了忙碌的一周终于有时间静下来写点东西了,我们继续介绍android apk防止反编译技术的另一种方法.前两篇我们讲了加壳技术(http://my.oschina.net/u/2323218/blog/393372)和运行时修改字节码(http://my.oschina.net/u/2323218 ...
  • Eclipse反编译插件: JadClipse JadClipse是Jad的Eclipse插件,是非常不错的反编译插件.  一.下载:下载插件:下载jadclipse_3.1.0.jar版本,该版本支持eclipse3.1M6-3.2M2下载jadclipse_3.2.0.jar版本,该版本支持ec ...
  • 反编译的目的在于学习一些优秀的Android应用程序代码.在进行反编译之前,需要准备好下面的软件工具(这些文件都放在同一文件下): 这些工具的下载地址:http://down.51cto.com/data/266751下面开始进行反编译APK文件:1.先将上面的 里面的AndroidManifest ...
  • apktool,可以从http://code.google.com/p/android-apktool/下载(Windows下需要apktool1.x.x.tar.bz2和apktool-install-windows-r04-brut1.tar.bz2两个文件),下载后解压,为了以后方便使用,可以 ...
  • centos反编译APK包实验目的      线上linux上传游戏包,PHP调用反编译命令解包实验环境      centos6.4 Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 2212:19:21 UTC 20 ...
  • apk反编译方式
    一.Apk反编译得到Java源代码 下载上述反编译工具包,打开apk2java目录下的dex2jar-0.0.9.9文件夹,内含apk反编译成java源码工具,以及源码查看工具. apk反编译工具dex2jar,是将apk中的classes.dex转化成jar文件 源码查看工具jdgui,是一个反编 ...
  • apk反编译
    使用工具:      CSDN上下载地址:        dex2jar(源码文件获取) 下载        jd-gui  (源码查看) 下载 下载上述两个工具,解压. 1.将需要反编译的apk文件后缀名改为.zip或.rar,(apk文件其实本质也就是个压缩文件),解压,打开后有两个重要的文件, ...
一周排行
  • Exchange2010SP2下,批量启用用户邮箱后,对于OU中为中文的用户,别名显示为乱码.有过Exchange2010运维经验的朋友都知道,我们如果在图形界面一次性的为多个域账户开启邮箱的话,并且对于OU中为中文 ...
  •        今天产品有个操作,要求将满足某个条件的主表和相关联的几个子表的数据全部删除,其实这个要求很简单,如果子表在创建外键的时候指定了ON DELETE CASCADE,则直接从主表中删除相关记录,子表中数据也 ...
  • 1. 建立工程 进入工程目录 cd D:\workspace\project 全局安装express,express作为命令被安装到了系统中 npm install -g express 查看express版本 ex ...
  • 本想依照南非蚂蚁的博客安装配置一下heartbeat3,但是发现安装的过程很曲折,特在此记录一下安装过程中的问题及解决办法,希望别人能少走弯路.安装可参考该英文网站:http://clusterlabs.org/wi ...
  • xwiki是使用java语言编写的开源wiki系统   xwiki有多种版本,standalone的版本可以直接下载之后独立安装,默认集成了jetty运行,但是这种方式安装xwiki,运行速度比较慢,在大部分的情况下 ...
  • 刷卡支付 刷卡支付是用户展示微信钱包内的“刷卡条码/二维码”给商户系统扫描后直接完成支付的模式.主要应用线下面对面收银的场景. 2. 扫码支付 扫码支付是商户系统按微信支付协议生成支付二维码,用户再用微信“扫一扫”完 ...
  • 5年前,谷歌骄傲地对全世界说它要"撤出"中国了,因为它觉得中国互联网的约束政策让它很不爽,所以它要用退出的方式坚守自己的原则.之后,一些好事者大肆渲染这起普通的商业行为,一些推波助澜者更是将其上升 ...
  • SQLServer窗口函数:ROWS与RANGE
    几乎每次我展示SQL Server里的窗口时,人们都非常有兴趣知道,当你定义你的窗口(指定 ...
  • 最近写了一个三子棋的游戏,然后我们来看一下.主函数:int main() { int start = 1; char lchess = 0; char cchess = 0; char chess[5][11]; w ...
  • IDC评述网(idcps.com)06月16日报道:根据RegistrarStats公布的实时数据显示,截止至2015年6月13日,全球域名注册保有量十五强排行榜,环比上期(6月6日),排名无变化.其中,上榜的两家中 ...