本文介绍了在给定APK文件的情况下,如何检测该应用是否使用React Native?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从Google Play下载了APK文件,并想知道应用程序的开发是否使用了React Native库.什么是快速而稳定的方法? (如果以后我可以将其自动化,那就更好了,但是这种自动化本身不在此问题的范围之内.)
I downloaded APK file from Google Play, and want to know if the develop of the application have used React Native library. What's a quick and stable way to do that? (Would be even better if it's something I can potentially automate later - but such automation itself is out of scope of this question.)
推荐答案
我可以为您提供2种解决方案:
I can offer you 2 solutions:
- 解决方案1
您可以使用 dex2jar .打开生成的jar文件时,可以检查是否存在/com/facebook/react/
文件夹.
You can use dex2jar.When you open the generated jar file, you can check if it uses React Native if there is a folder /com/facebook/react/
.
-
解决方案2
- 将应用程序APK
app.apk
重命名为app.zip
- 解压缩zip文件
- 使用Android中的
dexdump
SDK
$ ANDROID_HOME/build-tools//dexdump:
dexdump classes.dex` - 在dexdump的输出中搜索
com/facebook/react
- Rename your application APK
app.apk
intoapp.zip
- Decompress your zip file
- Use
dexdump
from AndroidSDK
$ANDROID_HOME/build-tools//dexdump:
dexdump classes.dex` - Search for
com/facebook/react
in the output of dexdump
这篇关于在给定APK文件的情况下,如何检测该应用是否使用React Native?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!