给定 APK 文件,如何检测应用程序是否使用 React Native? [英] How do I detect if the app uses React Native, given APK file?

查看:60
本文介绍了给定 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/文件夹,你可以检查它是否使用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

  1. 将您的应用程序 APK app.apk 重命名为 app.zip
  2. 解压您的 zip 文件
  3. 使用AndroidSDK中的dexdump$ANDROID_HOME/build-tools//dexdump:dexdump classes.dex`
  4. 在 dexdump 的输出中搜索 com/facebook/react
  1. Rename your application APK app.apk into app.zip
  2. Decompress your zip file
  3. Use dexdump from AndroidSDK$ANDROID_HOME/build-tools//dexdump:dexdump classes.dex`
  4. Search for com/facebook/react in the output of dexdump

这篇关于给定 APK 文件,如何检测应用程序是否使用 React Native?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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