Where the bundle sits inside the APK
React Native keeps its JavaScript in the assets folder of the APK. For a development build, inspect the loader configuration to find the JavaScript source it loads. In a release build Metro bundles and minifies it, and when Hermes is enabled the bundler compiles the result to bytecode before packaging, so what you extract is an instruction stream rather than text.
The usual name is index.android.bundle under assets. List the installed package's assets and inspect its bundle loader to find the file the app uses. A bundle that begins with a Hermes header is bytecode. For readable JavaScript, inspect how the engine loads the source. For a recognized compressed container, unpack it before checking the content. Trace the loader's decode step for encrypted assets.
Why bytecode is worth reading
Hermes is a bytecode virtual machine with its own instruction set, a serialised string table and a table of function headers. Property names used on objects, string literals and module references survive compilation because the runtime needs them. Endpoint paths, header names and JSON field names are exactly that kind of string, which is why a Hermes bundle still answers the questions an API project asks, and the string table gathers those literals in one place.
Confirm the format before disassembling
Inspect the first bytes of the extracted file before choosing a tool. If the file is compressed, decompress it and inspect the result. If it is bytecode, load it with a Hermes disassembler such as hermes-dec or hbctool and read the header first, because the header lists the bytecode version, the function count and the size of the string table.
Read the format version to choose compatible tools. Compare the header's declared file length with the extracted file, then validate the tables with the parser. Check extraction and tool support when parsing fails.
Read the string table first
The string table is the fastest route to the API surface, and you can read it without understanding a single instruction.
- Filter for URL schemes and path fragments to build a shortlist, then follow their references into request construction.
- Header names and authentication prefixes survive as strings, which shows which headers the client sets beyond the defaults of its HTTP library.
- GraphQL operation names and persisted query identifiers sit close to the transport call that sends them.
- Follow field names into the serializer and compare its output with the request body before building the client models.
String literals also reveal local behaviour that never leaves the device, such as storage keys for cached tokens and the event names a state manager relies on. Those tell you how the app rebuilds state between launches, which matters whenever a flow depends on a value written during an earlier session.
Reconstruct a call site
Hermes disassembly is register based. A typical request begins when a string constant is loaded into a register, followed by other values and then a call through a property such as fetch, a generated client method or a small wrapper the app defines. Reading the instructions between the string load and the call shows which parameters are attached to which string.
The practical loop is mechanical. Find an interesting string, list the functions that reference it, open the enclosing function, and read the calls it makes. Read the helper's callers, inputs and output, then follow each request path that uses it.
Module boundaries help as well. Metro assigns each module an identifier, and cross-module calls reference those identifiers, so you can follow a request from a screen component down to the transport layer even when local variable names are minified.
Encrypted, split and remotely updated bundles
Not every Hermes bundle arrives as a plain file. Some apps decrypt the bundle at startup with a key held in native code, so the asset on disk is ciphertext and the disassembler rejects it. Trace the loader through its Java and native calls, then collect the decoded bytes at the boundary where the runtime loads them.
Bundle splitting raises a different problem. A feature can ship its own module that loads on demand, and the strings for that feature appear only after the module downloads. If a screen is missing from the main bundle, exercise that screen once and capture the additional bundle before concluding that the code is unavailable.
From bytecode to a callable API
The bundle gives you names, and the running app gives you behaviour. Read the key handling, session setup and request order in the code, then check them against a fresh run of the app. Recovered strings tell you what to call, and a capture or an instrumentation hook tells you what has to be true when you call it.
That division of labour is what makes a React Native target tractable. Follow the bytecode's request builders and compare their output with the running app to recover endpoints, payload fields and values derived per request. SReverse recovers the API from React Native bundles and delivers a client that reproduces those derived values. The same approach applies to turning an APK into a callable API when an app mixes React Native screens with native modules.
Technical sources
Related work
Reviewed 18 October 2026 · SReverse research desk