GKMSPatch/patch-loader
NkBe db64adde94
Use reflection for DexFile and XResources
Avoid direct references to dalvik.system.DexFile and android.content.res.XResources by using reflection and guarded calls. LSPApplication now constructs and injects the provider dex via reflective DexFile/DexPathList$Element creation inside a try/catch to handle deprecation/compat issues on newer Android versions and log failures. LSPLoader replaces the direct XResources.setPackageNameForResDir call with a reflective invocation (with warning logs) to prevent class resolution failures under strict boot classloader namespace delegation. Also added logging and minor import/constant adjustments to improve robustness and diagnostics.

Co-Authored-By: MrZhongzq <108169409+mrzhongzq@users.noreply.github.com>
Co-Authored-By: Claude <81847+claude@users.noreply.github.com>
2026-03-06 22:10:05 +08:00
..
src/main Use reflection for DexFile and XResources 2026-03-06 22:10:05 +08:00
.gitignore Switch into mainline core branch 2022-03-17 19:52:05 +08:00
build.gradle.kts Refactor:Replace all instances of `lspatch` with `npatch` 2025-12-02 23:42:23 +08:00
proguard-rules.pro Switch into mainline core branch 2022-03-17 19:52:05 +08:00