Can‘t find framework resources for package of id: 18. You must install proper framework files
小米13.0.5的系统应用:相册。
报错id18。
下面这个log是id=16的一个样例,实际报错情况类似,但是不完全一样
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0051
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0051
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0051
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0051
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x100d0074
-
I: Regular manifest package...
-
I: Decoding file-resources...
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x10070001
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0058
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0058
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0058
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0058
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0058
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0057
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x100d0072
-
I: Decoding values */* XMLs...
-
Can't find framework resources for package of id: 16. You must install proper framework files, see project website for more info.
首先需要明确一点的是,我们需要三个小米的框架文件,名字分别是:framework-res.apk,framework-ext-res.apk,miui.apk。其中,framework-res.apk框架文件位于系统目录:/system/framework/,framework-ext-res.apk框架文件位于系统目录:/system/framework/framework-ext-res/,miui.apk框架文件位于系统目录:/system/app/miui/。
但是以上的方案我实测之后,并不能解决id18的问题。
所以我用个了笨方法,直接写代码adb把所有包含miui,xiaomi的apk给拉出来,挨个试!
-
import os
-
-
p = os.popen('adb shell pm list package|findstr miui')
-
l = p.read().strip().replace('package:','').split('\n')
-
print(l)
-
for app in l:
-
p = os.popen('adb shell pm path ' app)
-
path = p.read().strip().replace('package:','')
-
print(path)
-
p = os.popen('adb pull ' path ' C:\\Users\\0x16FAAB6C\\Desktop\\Android\\xiaomi\\xiaomi_sys_apk\\' app '.apk')
-
print(p.read().strip().split('\n')[-1])
-
print("===done===")
然后直接批量安装到apktool的framework里面,我看他的id号
-
import os
-
import glob
-
-
files = glob.glob("C:\\Users\\administrator\\Desktop\\Android\\xiaomi\\xiaomi_sys_apk\\*")
-
-
for file in files:
-
p = os.popen('java -jar "D:\\APKDB\\apktool\\apktool250.jar" if ' file)
-
print(p.read().strip())
-
print("===done===")
终于,看到了这个:
这样就知道,还需要第四个文件. com.miui.system
这样就可以正常反编译无报错和warning了!
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhgfacfi
系列文章
更多
同类精品
更多
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
怎样阻止微信小程序自动打开
PHP中文网 06-13 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01