给定 APK 文件,如何检测应用程序是否使用 React Native? [英] How do I detect if the app uses React Native, given APK file?
问题描述
我从 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/
文件夹,你可以检查它是否使用React Native.
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
SDK
中的dexdump
$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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!