Search code examples
androidapkreact-nativedecompiling

How do I detect if the app uses React Native, given APK file?


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.)


Solution

  • I can offer you 2 solutions:

    • Solution 1

    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/.

    • Solution 2

      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