NkBe
ed202bbb10
refactor: use PatchConfig and optimize module loading
...
[feat: Local mode runs without background manager](https://github.com/7723mod/NPatch/pulls/2 )
2025-09-30 23:24:02 +08:00
NkBe
5bbef84a43
feat: Add null checks for JNI method arguments
...
Adds a null pointer check for the origApkPath and cacheApkPath arguments in the enableOpenatHook native method.
Previously, passing nullptr to this method would lead to a potential crash. The added checks ensure the function handles invalid input gracefully by logging an error and returning early, thus preventing a potential crash.
2025-09-30 23:24:02 +08:00
NkBe
c2fdd4941d
refactor: improve hook and dex loading logic
...
重構了 patch_loader.cpp 並修改了bypass_sig.cpp,優化了 openat hook 的實現方式,簡化了 HookOpenat 和 enableOpenatHook 的流程。PatchLoader 的 LoadDex、InitArtHooker、InitHooks、SetupEntryClass、Load 方法也進行了結構優化,提升了代碼可讀性和健壯性,減少了重複代碼,並加強了錯誤處理。
參考自 802d3fbe28 爲什麽這樣改我也有點忘了,commit用Copilot寫的
2025-09-07 22:17:31 +08:00
NkBe
4e63d61cd3
fix: can't connect to manager
...
順便優化了一下排版
2025-09-07 22:16:41 +08:00
NkBe
c0aecf9e33
change name and url
...
Co-Authored-By: Kaelyn Wisoky <206877283+lshwjgpt25@users.noreply.github.com>
2025-09-05 23:48:04 +08:00
NkBe
624a786bad
fix: liblspatch.so not found by modifying include path
...
让不同的构建有独立的输出目录,防止文件冲突
2025-08-18 13:40:32 +08:00
NkBe
493d367bfc
fix: 缺失的大括号
2025-08-17 22:40:26 +08:00
NkBe
336ad9ecf8
Fix: 兼容特殊加固
...
問題出自
7b98d98389
只是嘗試性修復
2025-08-17 22:20:04 +08:00
JingMatrix
5180d7315d
Update dependencies
...
Update compose-destinations is non-trivial.
To use version 2.0+ in the future, we need to follow its migration guide:
https://composedestinations.rafaelcosta.xyz/migrating-to-v2/
2025-08-03 09:42:16 +02:00
JingMatrix
95ed02d4bb
Update JingMatrix/LSPosed
...
Users of Android 16 beta 3 has reported LSPlant failure, for which we should thus update LSPosed.
See issue https://github.com/JingMatrix/LSPlant/issues/2 .
Files are reformatted.
2025-03-15 09:22:18 +01:00
JingMatrix
bab8bd2d4c
Update JingMatrix/LSPosed
2024-12-01 09:48:30 +01:00
JingMatrix
332d99784e
Fix log formatting of __openat hook
2024-09-16 19:22:30 +02:00
JingMatrix
557d56091d
Update JingMatrix/LSPosed
...
To avoid a crash in the fisrt launch (#7 ), we cannot use PLT
.inline_hooker to DisableBackgroundVerification.
Remove ccache to avoid difference between CI builds and local builds.
2024-09-16 19:22:26 +02:00
JingMatrix
cddf811b9c
Update dependencies
...
1. Use JDK 21
2. Update ksp for compatibility (compulsory)
3. R8 claims that org.lsposed.lspatch.util.ModuleLoader is needed
We use rules in share/lspatch-rules.pro to ensure that LSPatch works
properly after R8 engine
2024-05-18 22:57:32 +02:00
JingMatrix
3dacebc6bf
Remove symbol cache
...
See commit 42190f1fb8
2023-12-28 14:00:22 +01:00
JingMatrix
c3ee8bec23
Check ProfileFile existence first
...
Avoid java.nio.file.NoSuchFileException when readAttributes.
2023-12-28 13:29:27 +01:00
JingMatrix
87a765d65c
Remove dependency on Gson
...
Patch-loader might use Gson provided by the apk classLoader
2023-12-28 13:29:27 +01:00
Js0n
3674a967ef
Remove keep alive foreground service because bound service won't need it ( #262 )
...
Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-11-23 20:32:24 +08:00
LoveSy
7d69dbcb66
Fix crash and sync
2023-06-29 10:08:50 +08:00
Howard Wu
941726d559
Core upgrade ( #213 )
...
Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-06-29 02:17:00 +08:00
JingMatrix
5d927f1dd2
Fix file permissions for Android 14 ( #201 )
...
Dex file should not be writable, otherwise it causes
java.lang.SecurityException.
Here is the related [soucre
code](https://cs.android.com/android/platform/superproject/+/master:art/runtime/native/dalvik_system_DexFile.cc;l=381 )
of Android 14.
---------
Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-06-08 00:11:47 +08:00
Howard Wu
0964a8eece
Update core to 1.8.6 ( #168 )
...
With
- update AGP to 7.4.0
- update Android Build Tools to 33.0.1
2023-01-28 11:54:06 +08:00
Nullptr
2ace2660b4
Fix modules missing after update loader for integrated mode
2022-11-13 22:43:39 +08:00
Nullptr
c191397dc0
Add foreground keep alive option
2022-11-09 13:09:50 +08:00
Nullptr
54cf7eed35
Use service instead of content provider to send binder
2022-11-08 02:54:31 +08:00
Nullptr
9c951bdbb6
Better signature bypass
2022-11-05 22:58:45 +08:00
Nullptr
5876d4a0a0
Update dependencies & Fix UI previewing
2022-11-05 12:00:25 +08:00
Nullptr
f8888b81e8
Support bootstrapping loader dynamically for local mode ( #118 )
2022-10-21 15:24:16 +08:00
Nullptr
edea4552a2
Support fake signatures for other lspatched apps
2022-10-20 18:36:41 +08:00
Bob Pan
030e1e54bc
replace PackageInfo.CREATOR to hook creation of PackageInfo in all Parcel api ( #117 )
...
* replace PackageInfo.CREATOR to hook creation of PackageInfo in all Parcel api
* also clear Parcel.sPairedCreators
2022-10-14 21:31:58 +08:00
方块君
eb870b593d
Fix Android 9 crash ( #114 )
2022-10-03 20:39:53 +08:00
Nullptr
35a8dd4c6d
Use striped so for debug build
2022-09-03 10:09:18 +08:00
Nullptr
95f006682c
Update core and dependencies
2022-09-02 10:30:34 +08:00
Nullptr
8498da904c
Update core & Listen app change broadcast & Crash when cannot connect to manager
2022-07-10 23:25:23 +08:00
Nullptr
0ef34fa633
Add .apk suffix
2022-07-05 19:10:29 +08:00
LoveSy
e05dde5b20
Fix comaptibility on Android 13 beta 2
2022-06-06 22:13:42 +08:00
Nullptr
641ed369fa
Fix module not loading on first run
2022-05-27 23:01:06 +08:00
Nullptr
4e41e141dd
Update core version & dependencies
2022-05-27 19:57:42 +08:00
Bob Pan
857d228103
release ElfImg(libart.so) after InitHooks ( #66 )
...
LSPosed/LSPosed#1956
ElfImg(libart.so) is hold by kArtImg in symbol_cache.cpp,
it maps an extra segment of libart.so in /proc/self/maps,
which cause some app fail to detect the base address of libart.so,
force relese it.
2022-05-27 19:57:42 +08:00
Nullptr
a9b27b1427
Update core to 1.8.3
2022-05-11 01:00:00 +08:00
Nullptr
774afca739
Update proguard
2022-04-06 11:17:19 +08:00
Nullptr
c88e63e1ee
Update core version
2022-04-05 17:34:50 +08:00
Nullptr
7905b343dc
ServiceClient
2022-03-23 22:36:19 +08:00
Nullptr
ebb70a4d63
Fix Shizuku connection
2022-03-18 11:59:41 +08:00
Nullptr
955606b51a
Fix linux build
2022-03-17 21:03:50 +08:00
Nullptr
b89b425a53
Switch into mainline core branch
2022-03-17 19:52:05 +08:00