Understanding runtime-loaded DEX
DexClassLoader and InMemoryDexClassLoader load DEX at runtime. Check when the app loads it and where the bytes come from.
PairIP · Google Play Automatic Protection
libpairipcore.so is a native library to investigate when an APK uses PairIP protection. Record its callers, protected methods and runtime checks before tracing the app's API. Google Play's automatic protection covers installer checks, anti-tamper checks and protected code; treating it as one startup check misses part of the work.
Need PairIP gone? We remove PairIP from any Android app and send back a working build. Remove PairIP
Google Play modifies and signs protected APKs before distribution. Its automatic protection documentation describes installer checks, runtime anti-tamper checks and device checks. The available features depend on the app's configuration and eligibility.
Protected with Play is the Play Console page that groups several services, including Automatic Protection and the Play Integrity API. It is not another name for one native library. Identify the library in the APK, then establish which protection paths that version uses.
Protection also reaches selected app methods. Google documents custom anti-tamper protection for Java and Kotlin method bodies, including code holding keys or URLs. A request-building method belongs in the investigation even after startup succeeds.
Check the native libraries, manifest application class and DEX code together. Search for libpairipcore.so, com.pairip.application.Application and com.pairip.licensecheck. Record the names that exist in this build and follow their callers. The examples below are search patterns, not output captured from a supplied APK. A missing name does not prove that an app is unprotected.
# Example commands. app.apk is the APK being reviewed.
$ apktool d app.apk -o decoded
$ grep -n 'application' decoded/AndroidManifest.xml
$ find decoded/lib -name 'libpairipcore.so'
$ find decoded -path '*/com/pairip/*' -type f
Fig. 01 · Search the decoded APK, including every smali directory. Record the actual matches before drawing a conclusion.
Map startup checks and later protected method calls separately. Read the Java or smali callers and the native library, then trace the action that produces the request. Record the app version, library hash, install source and test environment with each observation.
| Signal to look for | What it may indicate | How to confirm it |
|---|---|---|
| Signature comparison | The build checks the signing certificate. | Read the callers and the strings that name the certificate. |
| Dex or package hashing | Tampering with classes or resources is detected. | Find where the digest is computed and compared. |
| Debugger and tracer strings | An anti-debugging path exists. | Search for debugger and tracer markers, then trace the branch. |
| Hook and instrumentation markers | The guard knows common hook frameworks. | Search the strings and the GOT or PLT for rewritten entries. |
| Root and Magisk markers | A root or Magisk check may exist. | Search for su, Magisk and mount strings, then trace their use. |
| Emulator markers | An emulator check may exist. | Search build properties and hardware strings, then trace the branch. |
| Install-source handling | The source of the "get this app from Play" prompt. | Read the license-check path and what triggers the prompt. |
These are leads, not conclusions. A string match does not prove a check runs; read the code that uses it.
Read the actual library loader and native call sites. Record which paths run during startup and which run during an app action. Google's method-protection documentation describes on-demand loading and a separate startup-loading option. A successful launch does not establish that later request code is available or unchanged.
Build and library hash: Library loader and caller: Startup result: App action being tested: Protected method called by that action: Request input and output bytes: Device or server dependency:
Fig. 02 · Fill this record from the inspected build. Do not replace unknown call sites with invented native method names.
Automatic Protection changes the distributed APK. The Play Integrity API returns integrity verdicts for the app's server to use. These are separate services with related concerns about the app and device. Check for both integrations instead of using one library name to explain every failure.
| PairIP / Automatic Protection | Play Integrity API |
|---|---|
| Applied at distribution, shipped in the APK | Called at runtime by the app |
| Installer, runtime anti-tamper and eligible device checks | Integrity verdicts checked by the backend |
| Includes protection for selected method bodies | Reports app, device and other configured signals |
| Failure handling depends on the protected build | The backend decides how to act on the verdict |
Start with the file list, manifest, native exports and DEX call sites. Exports and strings provide leads; dynamic registration and hidden code require more work. Follow each relevant call into the action being tested before naming a check or a request dependency.
# the stub's native methods tell you the call surface. # jadx reads the DEX directly to Java; apktool produces Smali, not .class files. $ jadx -d jadx-out app.apk $ sed -n '/class Application/,/^}/p' jadx-out/sources/com/pairip/application/Application.java # exported symbols in the native core $ llvm-nm --dynamic decoded/lib/arm64-v8a/libpairipcore.so | head # strings the library references $ strings decoded/lib/arm64-v8a/libpairipcore.so | grep -iE 'tracerpid|magisk|frida|ptrace|su' | sort -u
Fig. 03 · Use an ELF-capable llvm-nm, such as the Android NDK tool. Choose the ABI and source path found in your APK. An export or string alone does not show which branch executes.
Establish a working baseline with an unchanged Play-installed build on a supported device. Compare each altered test environment with that baseline. A tool-induced crash belongs in the findings; it does not establish that the app's normal workflow has failed.
Trace the endpoint, session state, signing inputs and serialized body for the requested action. Follow any protected method that supplies those values. Compare the reconstructed client with fresh app requests, not just one saved capture.
A prompt, crash or HTTP status narrows the investigation. Confirm its cause with logs and a controlled comparison.
| Symptom | Check | Evidence to collect |
|---|---|---|
| App shows "get this app from Play" | Installer and anti-tamper result | Prompt path, signing certificate and install source |
| App exits after launch | Crash and protection paths | Crash log and comparison with the unchanged build |
| App runs but the API returns 403 | Signing, session, attestation and server policy | App/script request difference and backend error details |
| App diverges under a debugger | The first changed branch or failed call | Baseline behavior and the altered run's trace |
The final client needs the app's current request behavior, including values supplied by protected methods. Record software-generated values separately from device-backed operations and server-required proofs. The delivery must state where each part runs and include tests for fresh sessions and failure responses. See the runnable client example for a synthetic delivery and the PairIP service for protected APK work.
Updated 17 October 2026: corrected the startup-only model, added protected-method coverage and replaced illustrative native methods with a build-evidence checklist.
DexClassLoader and InMemoryDexClassLoader load DEX at runtime. Check when the app loads it and where the bytes come from.
The login is the entry point, but the token is the state the app leaves behind and later proves.
The copy is evidence of what was sent; the missing problem is how the application generated it.
Relevant capability
For PairIP-guarded apps we recover the endpoints, the signing and the request flow, working through the runtime checks rather than around them. PairIP reverse engineering
Start a project
We rebuild the complete application flow and return the full API in Python, JavaScript/TypeScript, Postman and complete API documentation.