SReverseby Simpa Labs

Xamarin

Unpacking Xamarin assemblies from libmonodroid

Find the managed payload by inspecting the installed APK set and its runtime. Separate the runtime library from the assembly container, then match the extraction tool to the build's format.

The assemblies live in a container

A Xamarin build compiles C# to managed code. For builds with embedded assemblies, inspect the APK set for that payload; Fast Deployment can place development assemblies outside the package. The runtime does not read them from a folder of files in every build. Depending on the packaging options, the assemblies are stored as individual files, embedded inside a native shared library, or collected into an assembly store with a blob and a manifest. Which layout the build used decides where you look.

The shared library case surprises people. The file has the name and the structure of a native library, it sits in the per-architecture library folder, and its payload is a set of managed assemblies rather than native code the app calls.

Separate the runtime library from the assembly container. A runtime name or a large file is a lead, not proof of where the app's managed payload sits. Inspect the library's symbols and sections, then match the package layout to its runtime version.

Why a build embeds assemblies in a native library

Loading many small files costs time on the first run, and the loader has to map each one separately. Bundling the assemblies into a single library reduces the number of files the installer writes and lets the runtime map one object and read the assemblies from inside it. The packaging choice is a startup and install decision, and it changes the container without changing the assemblies themselves.

Finding the container

  • The library folder names the architecture. Collect the complete installed APK set and record its architecture. Inspect other architecture packages when comparing their payloads; a device install does not supply every ABI.
  • Inspect the payload. File size helps choose candidates. Headers, sections and the matching runtime's format definitions identify the stored data.
  • A name that matches no dependency is a signal. A library that is not a well known runtime dependency and is not referenced by another binary is worth opening.
  • Match the store version. Layouts differ across Xamarin and .NET for Android releases. Current stores can sit inside an ELF library; older blob and manifest layouts need their own parser.

Extracting the assemblies

Static extraction reads entries from a recognized container. Runtime observation follows the loader used by the app. Choose the path from the build's format and active runtime, then validate each recovered image.

Runtime observation can resolve a loader boundary that a static parser does not support. Identify that boundary and check the captured buffer before treating it as a complete assembly. Exercise the relevant workflows: loading one screen does not establish that every assembly or method has been reached.

Reading the payload before extracting it is worth a few minutes. Inspect recognized headers, entry boundaries and managed metadata. A short marker alone does not establish compression, and a PE signature alone does not validate a managed assembly. The difference is visible in a hex dump and saves a decompiler from rejecting every file you pull out.

Why the file you expected may be missing

Packaging options move the assemblies between layouts from one release to another, and an app bundle distribution splits the package by architecture. A search of the base APK alone can therefore find nothing while the assemblies sit in another file the device installed. Collect the full installed set before deciding that the app stores no assemblies.

Reading the C# and building a client

Inspect retained IL and metadata with a compatible .NET decompiler. Follow request builders into native calls, serializers and session handlers, then compare their output with the running app. Trimming and obfuscation change the names and bodies available to read. SReverse delivers Python, JavaScript/TypeScript, Postman and complete API documentation for the full endpoint set. Projects start at $70 and most finish in 24 to 72 hours after files and required access arrive, with 30 days of fixes.

Reviewed 18 October 2026 · SReverse research desk

Start your full APK reconstruction

Send the full APK

Projects start at $70. Choose WhatsApp or email, then attach the APK in the app that opens. We reply within one hour with the next step and send the fixed quote after review.

Want us to contact you?