Managed code keeps the client readable
Identify the runtime, architecture and managed payload in the supplied Android build. Assemblies can be individual files or entries in a versioned store. Trimming, linking, obfuscation and native compilation affect the code and metadata available to inspect.
Read the retained IL and metadata in a compatible decompiler, then follow native calls and values supplied by the running app. This connects the code to the requests your client needs to make.
The order to read the package
- List the package contents and find the managed payload. List individual assemblies and candidate stores. Identify the store version, compression and architecture before choosing an extractor; manifests and entry names depend on the format.
- Unpack the store into individual assemblies. Read the store header and select a parser for that format version. Validate entry offsets and lengths before opening the extracted assemblies.
- Open the assemblies in a .NET decompiler. A tool such as ILSpy, dnSpy or dotPeek reconstructs C# from retained IL and metadata. Inspect its output alongside native dependencies and renamed or encrypted code.
- Identify the HTTP client style. A raw HttpClient call site builds a request and awaits a response. A declarative client such as Refit declares routes in attributes on an interface, which turns the endpoint inventory into a list of interface methods. RestSharp builds a request object with a path and a verb as constructor arguments. Each style needs a different search.
- Read the models and their serialisation attributes. Trace the serializer and custom converters as well as model properties and attributes. Compare the resulting bytes with the app's request.
- Read the startup configuration and the request pipeline. The base URL, the default headers, the authentication handler and any message handler that signs requests are usually registered in one place.
What .NET MAUI changes
.NET MAUI changes the app framework and startup code, while runtime and packaging choices depend on the target version and build settings. Inspect the actual runtime rather than assuming all MAUI builds match Xamarin. Trimming removes unused code. AOT adds native implementations but does not by itself establish that IL bodies were removed; IL stripping is a separate, version-specific setting.
Reproduce the client outside the app
The reconstruction covers more than an endpoint list. Record the base host and any path prefix, the verbs and paths, the headers that every request carries, the payload shapes, and the calls that obtain and refresh a token. Then handle the values that change per request: a signature, a timestamp, a nonce or a device value. Finally, describe the state that has to survive between calls, because a client that treats each call as independent breaks on the second one. The result ships as Python, JavaScript/TypeScript, Postman and complete API documentation for the same full endpoint set.
Where a Xamarin project stalls
- A compressed or encrypted assembly store stops a direct decompile, so the unpacking step has to be solved before any reading starts.
- A .NET obfuscator renames members and can encrypt strings, which removes the readable names that make these builds attractive.
- Native compilation and IL stripping affect which implementation you can inspect. Check both the assembly and native files.
- Values derived from the keystore, from attestation or from a server handshake cannot be copied out of the code and need a reproduction strategy instead.
Use the package inventory to plan extraction, then follow each workflow across managed code, native calls and session state. Test fresh sessions and changed inputs against the app instead of treating a readable method as a finished client.
Deliverable
The work ends with a client that authenticates, performs the flows in scope and survives token rotation. Xamarin and .NET MAUI Android reverse engineering describes the engagement.
Technical sources
Related work
Reviewed 18 October 2026 · SReverse research desk