October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk5 min

I Reverse-Engineered an APK Protected by XopProtector — and It Changed How I Look at Android

A DEV Community account of analyzing an XopProtector-protected APK, and why tracing when protected code appears at runtime changes how you read Android protection.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The main lesson of this account is that a protected Android app does not reliably show its real logic in a decompiler. In the author’s experience, the useful question shifts from “is the DEX encrypted?” to “when is protected code recovered, where does it appear, and how does it reach the Android runtime?” The article is a first-person walkthrough published on DEV Community in September 2026 by the author chatmay. It describes one APK, which the author says they owned or had permission to examine. It is not an independent test of XopProtector.

What the author set out to learn

The author approached the APK as a security researcher would approach any unfamiliar package. The goal was to understand how the protection worked, not to produce a fully restored copy of the application. The account says plainly that complete restoration was never the objective, which matters for how the result should be read. Nothing in the write-up claims a successful break, a measured level of protection, or a comparison against other protectors.

As an Amazon Associate I earn from qualifying purchases.

Why the decompiler view stopped short

The first step was ordinary. The author opened the APK as a container and inspected it in JADX. The visible Java side contained application startup code and shell or native-related components, but not the business classes one would expect in an unprotected app. The DEX files, assets and native libraries held the material of interest, and the obvious question followed: where had the original DEX gone?

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This is the point where many reverse engineers stall. A decompiler can only show what is present as readable bytecode at the moment you look. If the protection keeps the real classes out of that form until execution, the static view will look incomplete no matter how carefully you read it. The author treated that gap as information rather than as a dead end.

#1 Best Overall
Samsung Galaxy A16 4G LTE (128GB + 4GB) International Model SM-A165F/DS Factory Unlocked, 6.7", Dual SIM, 50MP Triple Camera (Case Bundle), Black
  • Please note, this device does not support E-SIM; This 4G model is compatible with all GSM networks worldwide outside of the U.S. In the US, ONLY compatible with T-Mobile and their MVNO's (Metro and Standup). It will NOT work with other CDMA carriers, and it is also not compatible with their MVNO (Visible, Xfinity Mobile, US Mobile, Cricket Wireless, etc).
  • Compatibility with certain third-party devices and accessibility accessories, including some hearing aids, may vary depending on manufacturer support, Bluetooth protocols, software compatibility, and regional firmware limitations. For additional hearing aid compatibility information, please refer to Samsung’s official support documentation.
  • Camera: 50 MP, f/1.8, (wide), 1/2.76", 0.64µm, AF | 50 MP, f/1.8, (wide), 1/2.76", 0.64µm, AF | 2 MP, f/2.4, (macro). Battery: 5000 mAh, non-removable | A power adapter is NOT included.

The question that changed the approach

The author’s central shift was from asking whether the DEX was encrypted to asking about its lifecycle. The article sharpens the inquiry into three questions:

  • When is the DEX recovered?
  • Where does the recovered data go?
  • How does it eventually reach ART?

To answer them, the author pointed to the runtime components that handle class definition and loading: DexFile, ClassLoader, DefineClass, ClassLinker and ART. Understanding those components turned a question about a file format into a question about timing and ownership. The author also asked how long the plaintext exists and who gets access to it while the app runs. Those are the questions a defender should be asking when judging a protection scheme, and the article’s framing makes them easy to carry over to other apps.

Following the boundary into native code

The next step was to follow Java-to-JNI calls into native code and inspect the structures of the shared libraries. The author’s takeaway is that a Java or Smali-only view can miss relevant behavior whenever a protection design also relies on native components. If the important work happens across a language boundary, reading one side is not enough to describe what the app does.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

XopProtector’s project documentation, on GitHub, describes a native shell and lists DEX encryption, dual VMP, SO protection and RASP among its capabilities. These are the project’s own claims. The author’s account does not independently confirm how well any of them work on the APK examined.

Two packing models in the project’s own terms

The article describes PVM2 as closer to a native interpreter than to the conventional model in which Java methods run on ART. The project’s repository draws a distinction between its two virtualization paths. The labels below are XopProtector’s terminology, not standard Android vocabulary.

Path How the project describes it Mental model for readers
PVM1 Virtualized packing that unpacks to Dalvik Code is restored to Dalvik bytecode before the normal runtime path takes over
PVM2 Described as its “true VMP” path, using a JNI trampoline and a native interpreter Execution is handled by native code rather than by ordinary Dalvik or ART method execution

Keeping these two paths separate prevents a common mistake: assuming every protected app is recovered to readable DEX in the same place and at the same time. A single decompiler workflow cannot cover both.

Rank #3
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

Where static inspection and runtime observation part ways

When static inspection stopped being enough, the author used Frida to observe runtime events. The events named include shared-library loading, file access, decryption, DEX recovery and class creation. Frida’s official documentation describes it as a dynamic instrumentation toolkit with tracing capabilities, which supports the choice of tool. It does not verify the author’s specific observations on this APK, so those should be read as the author’s report.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The useful distinction is between the two methods. Static analysis shows what is stored in the package. Runtime observation shows what becomes live in memory and when. A protected app often requires both, and neither alone answers the lifecycle question.

A working model for the same exercise

The article’s sequence can serve as a mental model, though it is not a guaranteed order for every Android app or every protection product:

Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
  1. Inspect the APK contents, including DEX files, assets and native libraries.
  2. Note what is missing from the decompiled Java side, such as business classes that should be present.
  3. Trace the Java-to-JNI boundary and examine the shared-library structures involved.
  4. Observe at runtime when code is recovered, where it is written, and which class-loading components receive it.
  5. Follow the path into ART and record how long the plaintext remains available.

Each step narrows a different question. The first two identify that something is hidden, the third locates where it moves, and the last two establish timing and exposure.

What this account does and does not show

  • It is one author’s analysis of one APK that the author says they owned or were authorized to examine.
  • It does not measure XopProtector’s effectiveness, compare it with other protectors, or test it across Android versions, devices or performance conditions.
  • It does not establish a complete restoration of the application.
  • Its most reusable contribution is the change in question: from “can I read the code?” to “when and where does the code exist in usable form?”

The project’s own documentation states the limit that applies to any protector. In the README’s words, “Protection raises the cost of reverse engineering; it does not make an app unbreakable.” That sentence is the project’s statement, and it is the right frame for reading both the protector’s claims and the author’s experience.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How this changes the way you look at Android

The author’s experience suggests that an Android app is better understood as a sequence of states than as a fixed set of files. Packaged code, unpacked code, native code and code loaded into ART are different things, and a protection scheme chooses which of them an observer can see and when. Learning to trace that sequence is more useful than learning any single tool, because it applies whether the protection is XopProtector or something else.

Best Value
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.

For defenders, the same lens helps evaluate protection claims. Ask what is exposed in the package, what is exposed at load time, and what remains in memory after execution. Those are answerable questions in a way that a general statement about “strong protection” is not.

The author’s real achievement, as told, is a clearer mental model rather than a broken app. That is a reasonable outcome for a learning exercise, and it is the part of the account readers can apply directly.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.