gpt4 book ai didi

java - 从 apk 文件中读取 Strings.xml 文件

转载 作者:IT老高 更新时间:2023-10-28 23:27:45 25 4
gpt4 key购买 nike

有什么方法可以从 apk 文件中读取 strings.xml 文件吗?
我对库或类/代码文件不感兴趣,只对 strings.xml

中定义的字符串感兴趣

最佳答案

是的,您可以使用 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

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.

关于java - 从 apk 文件中读取 Strings.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11591044/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com