react-native-decompiler
react-native-decompiler copied to clipboard
Error: No Modules Found!
Hi, First, thank you so much for your efforts, I really appreciate your awesome work!
I tried to run the mentioned command npx react-native-decompiler -i ./index.android.bundle -o ./output
in the document to decompile an output of the android APK file /assets/index.android.bundle
but I got this error:
[!] No modules were found!
[!] Possible reasons:
[!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument
[!] - The bundle is a binary/encrypted file (ex. Facebook, Instagram). These files are not supported
[!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle
[!] - The file provided is not a React Native or Webpack bundle.
Am I running the wrong command?
Thanks in advance
Same!
If you open the source file is it in a binary format? If it is this tool will not work. The data has been encoded as byte code for hermes which is a custom js engine. I got round this by getting an ios verision of the app which did not have the encoding
If the code is in binary format it may be "Hermes byte code" for which other decompilers are available: https://github.com/cyfinoid/hbctool (doesn't output JavaScript but at least something readable).
Same issue for me. [!] No modules were found! [!] Possible reasons: [!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument [!] - The bundle is a Hermes/binary file (ex. Facebook, Instagram). These files are not supported (Its not binary, it is readable) [!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle (not a webpack) [!] - The provided Webpack bundle was built from V5, which is not supported (no webpack, just .js files android app) [!] - The file provided is not a React Native or Webpack bundle.(pure React Native .js files and one .tsx file)