Skip to content

Even a hello-world react native app fails to decompile #252

@houmie

Description

@houmie

I'm not sure if this project still works. I created a very basic app.

$npm install
$npx react-native init ObfuscationDemo

Created a signed APK and tried to decompile it.

  1. Converted APK to .jar via dex2jar
  2. Decompile .jar file via jd-gui

Then I try to to compile the javascript files in app-release/assets/index.android.bundle. But it doesn't work.

npx react-native-decompiler@0.2.2 -i app-release/assets/index.android.bundle -o ./output
Reading file...
[!] 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.

Many Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions