反编译华为U8825D“framework-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_***_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_***_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_***_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_***_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 <brut.alll@gmail.com>
with smali v1.3.4-ibot8, and baksmali v1.3.4-ibot8
Updated by iBotPeaches <connor.tumbleson@gmail.com>
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”
这两张图说明:个别语言包中存在的“string”在public中没有定义
以下为引用
删除语言包后报错?
刚刚有讲到删除了一部分语言包,有些strings是是该语言独享,并且values中的srings.xml亦没有,那么删除它们合成的时候报错是必然的了。
报错了怎么办?最简单的就是别删语言包。
进阶方案:只想保留英简繁三语,其他一定要删除。请看下文:
到apk manager的主目录下看log。
会告诉您 public.xml 行号 xxxx资源不存在。如果仅仅是删除语言包产生的错误
打开public.xml,比对log文件中的行号,将其删除(删除时请注意保留该行\号,以免接下来的行号不对应log中的错误行号而导致误删除。)
重新执行合成步骤,看看是否报错,如果您正确处理掉多余的string,那么将不再报错。
此文形成已久,不再更正,见(2)
转载于:https://blog.51cto.com/yiyangde7/1092855
反编译华为U8825D“framework-res.apk”出现的错误提示(1)相关推荐
- 反编译华为U8825D“framework-res.apk”出现的错误提示(2)
Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. C:\apk>apktool if f.apk W: ...
- android 反编译工具_【Android APK分析工具】
1.Apktool 官网:http://ibotpeaches.github.io/Apktool/ 源码: Github地址:https://github.com/iBotPeaches/Apkt ...
- Java反编译Jar包和Android APK(类似.NET Reflector)
JD-GUI 这个JD-GUI可以反编译jar包,用法就是打开jar包直接浏览. JD-Eclipse JD-Eclipse是个Eclipse插件,安装方法是打开Eclipse,菜单 Help – & ...
- 小龟视频APP-插件打包-v1.6.x反编译教程及未加固apk包ios最新版文件分享
1.先爆破安卓签名,工具:MT管理器,百度自行下载 2.搜索getcertsign(一般在285之间都能看到)如下图: 3.添加return-void 然后保存返回回到首页进行APK签名,就ok了 这 ...
- 反编译华为U8825Dldquo;framework-res.apkrdquo;出现的错误提示(1)
Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. C:\apk>C:\apk\apktool.bat i ...
- 反编译sencha toucha打包的apk文件,修改应用名称支持中文以及去除应用标题栏
一.去除安卓应用标题栏 sencha touch打包android安装包,去掉标题栏titlebar的简单方法 (有更复杂更好的方法,参看"二.利用反编译修改apk的应用名称为中文" ...
- php 修改 apk名称6,反编译sencha toucha打包的apk文件,修改应用名称支持中文以及去除应用标题栏...
一.去除安卓应用标题栏 sencha touch打包android安装包,去掉标题栏titlebar的简单方法 (有更复杂更好的方法,参看"二.利用反编译修改apk的应用名称为中文" ...
- android+包+反编译,简单的Android之apk包反编译方法
网上相关的文章一大堆了,我只是总结下自己的反编译方法和工具 工具下载地址: 下载上面的三个工具的压缩包 Apktool_v1.5.1_CHS_By_b-sf.rar dex2jar.zip jd-gu ...
- 微信短信显示服务器解包异常,最新微信小程序解包反编译bug处理 解决 $gwx is not defined 错误...
前期准备: 安装node.js不作细述,按提示安装即可.安装完成后在命令窗口输入:node -v,能查看到版本号即可. 打开脚本地址下载反编译脚本,解压. 安装依赖 在脚本目录下shift+鼠标右键, ...
最新文章
- HTML里面设置文本倒影,文字倒影怎么做
- LeetCode:326. Power of Three
- N-甲基-N-亚硝基脲(MNU)与眼睛健康(思考中)
- 计算机系统结构树形流程图,计算机系统结构 第七章自考练习题答案
- Linux shell笔记5 基本文本处理
- 禁用app里面的java_java – 我们可以禁用AOP调用吗?
- PHP伪原创文章自动生成,api生成伪原创-爱发狗一键伪原创生成原创文章
- 数据恢复软件TOP 1—easyrecovery
- 如何在BIOS中设置RAID?
- 基于产生式规则的动物识别系统(Python)
- Visual Leak Detector内存泄漏检测工具,vld使用及原理
- 前端之JS事件events
- 3dmaxs坐标轴不显示灰色显示(没有坐标轴箭头)
- canvas 绘制七巧板
- PGP 对于JSON的加解密
- 生成订单核销二维码,扫码完成核销
- 启帆工业机器人综合收入如何_广州启帆工业机器人有限公司
- python+selenium+phantomjs 模拟淘宝登陆
- linux命令和vim学习
- Imail邮局不能收邮件的解决办法