在给定APK文件的情况下,如何检测该应用是否使用React Native? [英] How do I detect if the app uses React Native, given APK file?

查看:305
本文介绍了在给定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

  1. 将应用程序APK app.apk重命名为app.zip
  2. 解压缩zip文件
  3. 使用Android中的dexdump SDK $ 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天全站免登陆