identity-crisis
작성자: MadKarma
Spoofs an app's original signature, so it runs after being re-signed.
Reseam Manager에 추가- 버전
- 1.0.0
- 업데이트
- 서명 키
- e9b8 f965 b871 d350
모든 앱
패치 3개Pairip 제거
선택사항Google Play의 자동 무결성 보호를 제거합니다. 서버 측 검사는 여전히 적용됩니다.
모든 버전- Pairip VM 중지 켜기 또는 끄기 · 기본값 false
- Pairip VM이 라이선스 확인만 하는 앱에만 사용하세요. VM 안에서 자체 코드를 실행하는 앱은 작동하지 않게 됩니다.
- 설치 프로그램 검사 위장 켜기 또는 끄기 · 기본값 true
- 남은 설치 프로그램 검사가 Google Play를 보고하게 합니다.
Identity Crisis(APK 파일 접근)
선택사항원본 APK 파일도 포함하고, 앱이 자신의 APK를 읽으면 그 파일로 리디렉션합니다. APK 크기가 약 두 배가 됩니다.
모든 버전Identity Crisis
선택사항앱에 원래 서명을 보여 줘 수정된 앱 검사를 통과하게 합니다.
모든 버전- 진단 로그 기록 켜기 또는 끄기 · 기본값 false
- IdentityCrisis 태그로 logcat에 진단 정보를 기록합니다.
- 모든 서명 검사 위장 켜기 또는 끄기 · 기본값 false
- 리플렉션, JNI 또는 패커가 복호화한 코드로 하는 검사도 위장합니다. libIdentityCrisis.so를 추가합니다.
Identity Crisis
A Reseam patch bundle that shows re-signed apps their original signature and removes Pairip.
Patches
- Identity Crisis: shows the app its original signature, so checks for a modified app pass.
Options:
diagnostics(log to logcat under theIdentityCrisistag) andprocessWideChecks(also spoof checks made through reflection, JNI, or code a packer decrypts). - Identity Crisis (APK file access): also embeds the original APK files and redirects the app's reads of its APK to them. Patch the APKs as the store distributes them: merged or re-signed APKs are rejected, because their signature no longer matches their contents.
- Remove Pairip: removes Google Play's automatic integrity protection. Options:
killVM(stop the Pairip VM, only for apps whose VM does nothing but check the license) andspoofInstaller(make leftover installer checks report Google Play).
Use it from another bundle
Copy this into a new file in your bundle, with your package line below @file:Suppress, to depend
on the patches and call the extension. Users must load this bundle too; the engine links the
extension classes from it. Only patches that depend on identityCrisis or spoofApkFileAccess may
call the extension.
@file:Suppress("unused")
import app.reseam.patch.ExtClass
import app.reseam.patch.ExternalPatch
import app.reseam.patch.Type
private const val IDENTITY_CRISIS_BUNDLE = "identity-crisis"
val identityCrisis =
ExternalPatch(IDENTITY_CRISIS_BUNDLE, "top.madkarma.patches.universal.signature.identityCrisis")
val spoofApkFileAccess =
ExternalPatch(
IDENTITY_CRISIS_BUNDLE,
"top.madkarma.patches.universal.signature.spoofApkFileAccess",
)
val removePairip =
ExternalPatch(IDENTITY_CRISIS_BUNDLE, "top.madkarma.patches.universal.pairip.removePairip")
private const val CONTEXT = "android.content.Context"
private const val FILE = "java.io.File"
private const val PACKAGE_INFO_CREATOR = $$"android.os.Parcelable$Creator"
object IdentityCrisis : ExtClass("top.madkarma.universal.signature.IdentityCrisis") {
// packageName, encodedCertificate, originalApkFileAccess, diagnostics
val initialize by static(CONTEXT, Type.String, Type.String, Type.Boolean, Type.Boolean)
val initializeEarly by static(Type.String, Type.String, Type.Boolean, Type.Boolean)
// packageName, encodedCertificate, libraryName, diagnostics
val initializeBeforeNativeLibrary by static(Type.String, Type.String, Type.String, Type.Boolean)
val initializeNativeFileAccess by static(Type.String, Type.String, Type.Boolean)
val spoofSignature by static(Type.String, Type.String)
val startApkFileAccess by static(CONTEXT, Type.String)
val wrapPackageCreator by
static(PACKAGE_INFO_CREATOR, Type.String, Type.String, returns = PACKAGE_INFO_CREATOR)
// For programs run outside the app process, such as from adb shell.
val extractOriginalApk by static(Type.String, Type.String, returns = Type.String)
val launchWithOriginalApk by
static(Type.String, Type.String, Type.String, Type.Boolean, returns = Type.String)
val launchFileWithOriginalApk by
static(FILE, Type.String, Type.String, Type.Boolean, returns = FILE)
// libraryName
val redirectRawApkOpens by static(Type.String)
val redirectRawApkOpensAfterFork by static(Type.String)
val redirectApkFilesOnLibraryLoad by static(Type.String)
}
object NativeCreatorView : ExtClass("top.madkarma.universal.signature.NativeCreatorView") {
// packageName, encodedCertificate, libraryName
val initializeBeforeNativeLibrary by static(Type.String, Type.String, Type.String)
}
encodedCertificate is the original signing certificate, Base64-encoded.
Build
You need JDK 17, the Android SDK in ANDROID_HOME, the reseam CLI matching the plugin version in
settings.gradle.kts, and a signing key from reseam bundle keygen --out ~/.reseam/bundle-signing.key.
./gradlew build bundle
The build writes build/reseam/identity-crisis.reseam. The native library ships prebuilt;
apps/universal/patch/build.gradle.kts explains how to rebuild it.
License
Project-owned code is licensed under AGPL-3.0-or-later. NOTICE lists the inherited Reseam section 7 terms and third-party notices. Vendored code keeps the licenses recorded in REUSE.toml.