从apk文件读取Strings.xml文件 [英] Reading Strings.xml file from apk file

查看:186
本文介绍了从apk文件读取Strings.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 apk文件中阅读 strings.xml 文件?

我对libs或类/代码文件不感兴趣只是在 strings.xml中定义的字符串

Is there any way you can read the strings.xml file from an apk file?
I am not interested in libs or classes/code file just the strings defined in strings.xml

推荐答案

是的,您可以使用 apktool解压缩所有资源文件

Yes you can extract all the Resource files using apktool

步骤 -

1.) Download files from above links and extract them in a folder.
2.) Open cmd -> run 
3.) Run command as 
    apktool.bat d source.apk destination_path

OR

1.) Put apktool.jar and test.apk in same folder 
2.) Go to the jar and .apk path by command line
3.) And fire the command java -jar apktool.jar d test.apk
4.) It will generate a folder with the name "test" in the same folder.

这篇关于从apk文件读取Strings.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆