NkBe
5aa809dc5a
Refactor:Replace all instances of `lspatch` with `npatch`
...
嘗試规避關鍵詞檢測
2025-12-02 23:42:23 +08:00
NkBe
fd8dc4d3c9
build(deps): bump the actions group across 1 directory with 2 updates ( #31 )
2025-12-02 21:40:46 +08:00
Chara White
e576531cbc
readme: Fix Telegram link missing schema ( #26 )
2025-11-21 22:08:10 +08:00
NkBe
f03ad9a386
fix: improve asset handling and error checks
2025-11-21 19:33:34 +08:00
NkBe
b076eed005
fix: 优化 manager 连接与禁用 profile 文件
...
修正 manager 连接失败时的回退逻辑,避免 service 为 null,统一本地服务处理。新增 disableProfile 方法,自动清理和禁用 profile 文件,防止 profile 干扰运行。
2025-11-20 20:58:37 +08:00
NkBe
4d7f56c21c
Release 0.7.2
2025-11-19 23:31:04 +08:00
NkBe
c136335aaf
feat: support Shizuku API to fetch app list
...
ShizukuApi 增添 getInstalledApplications 方法,包名管理器增添 fetchAppList 方法,優先使用 Shizuku API 獲取應用列表,失敗則回退至標準 PackageManager。
2025-11-19 22:59:02 +08:00
NkBe
83817fba3c
feat: restore IntegrApplicationService and refactor RemoteService
...
LSPApplication 現在會根據情況選擇使用 IntegrApplicationService 或 NeoLocalApplicationService(是否 useManager 和安裝包内是否有集成模組安裝包)。
重構 RemoteApplicationService,簡化連接流程,移除死亡監聽(NeoLocal用不到了)。
2025-11-19 21:03:41 +08:00
NkBe
9588a87814
refactor: improve APK signature block parsing
2025-11-19 21:03:41 +08:00
NkBe
5642d2e62f
Improve compatibility with boot.oat in recent A15
...
See JingMatrix/LSPosed#414 for details
Also update few dependencies.
Co-Authored-By: JingMatrix <jingmatrix@gmail.com>
2025-11-19 21:03:41 +08:00
NkBe
a89856c4b4
actions: use ubuntu runs
...
我記錯了,是 Windows 才兩倍份額,而且還沒 Ubuntu 快(
2025-11-19 20:53:41 +08:00
NkBe
0fa8ef2b89
enjoy: 專門為MiUI桌面卸載添加了提示,提升使用者體驗
2025-10-29 23:54:55 +08:00
NkBe
0883ea5577
refactor: improve module loading and remote service
...
優化本地模組加載流程,修復模組路徑丟失時自動恢復,並加強日誌提示。重構 RemoteApplicationService,實現 Binder 死亡監聽與資源釋放,提升遠端服務連接穩定性與錯誤處理能力。
2025-10-29 23:16:38 +08:00
NkBe
c30f588b50
fix: extend service bind timeout and improve getPrefsPath
2025-10-29 23:16:38 +08:00
NkBe
094be621af
actions: runs on windows
...
使用 Windows 執行 Workfolws 能比 Linux 節省1倍的 Actions 份額
2025-10-29 23:16:38 +08:00
NkBe
307660038e
refactor: rename lspatch meta key to npatch
2025-10-29 21:38:58 +08:00
NkBe
d843faa515
fix: Forgot to add the inject DP option and Remove redundant intent-filter
...
.
2025-10-29 21:38:58 +08:00
NkBe
a2b9e529ca
feat: support inject MT Manager DocumentsProvider
...
Co-Authored-By: Hicores <me@hicore.cc>
2025-10-29 21:38:57 +08:00
NkBe
5d21b9c599
feat: Optimized kill signature verification feature
...
Added a public method, `replaceApplication`. This method uses Xposed to intercept `android.app.ApplicationPackageManager`'s `getApplicationInfo` and `getApplicationInfoAsUser`. It allows for dynamic changes to the application's `sourceDir` and `publicSourceDir` to redirect the location where the system loads APKs.
2025-10-08 15:47:17 +08:00
NkBe(HSSkyBoy)
d644c22ade
feat: support patching with new package name
...
feat: log APK patch paths in submitPatch
fix: improve temp APK file handling
feat: add newPackageName option
refactor: optimize patch install dialogs
feat: support rename packagename
Co-Authored-By: javaeryang <27242250+javaeryang@users.noreply.github.com>
2025-10-08 15:47:16 +08:00
NkBe
9a58d53314
Fix memory leak by releasing JNI global refs in legacy_callbacks
...
Co-Authored-By: Irena <140869597+re-zero001@users.noreply.github.com>
2025-10-08 15:47:15 +08:00
NkBe(HSSkyBoy)
07b100ea2f
refactor: rename lspatched to npatched
2025-10-08 15:47:15 +08:00
NkBe(HSSkyBoy)
c5952b6cbf
chore: simplify build cache config
2025-10-08 15:47:15 +08:00
NkBe(HSSkyBoy)
d1993bb739
feat: Introduced <unistd.h> and optimized logs and error messages
2025-10-06 23:27:30 +08:00
NkBe(HSSkyBoy)
ac95b91712
Modify part of lspatch to npatch
2025-10-06 23:27:30 +08:00
NkBe(HSSkyBoy)
7613e7de10
feat: add output log to media
...
底層實現了日誌檔案寫入。為管理器新增了 outputLog 選項,可以將日誌輸出到 Android/media 目錄。
2025-10-06 23:27:30 +08:00
NkBe
02c9d34f5a
Opti Actions
...
update clean.yml
auto ci build
Bumps the actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout ), [actions/setup-java](https://github.com/actions/setup-java ) and [gradle/actions](https://github.com/gradle/actions ).
Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
Updates `actions/setup-java` from 4 to 5
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v4...v5 )
Updates `gradle/actions` from 4 to 5
- [Release notes](https://github.com/gradle/actions/releases )
- [Commits](https://github.com/gradle/actions/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/setup-java
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: gradle/actions
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Update clean.yml
2025-10-06 23:27:29 +08:00
NkBe
dbacad9876
fix: improve service fallback and module loading
2025-10-01 17:56:01 +08:00
NkBe
9804125d1f
feat: Streamline application mode descriptions
2025-09-30 23:24:03 +08:00
NkBe
5bfa072960
manager: Fix English icon colors
2025-09-30 23:24:03 +08:00
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
4b8da5c255
chore: update core
...
然後將jar的默認簽名同步為manger的,並將構建出的文件名頭改爲NPatch
2025-09-11 22:49:55 +08:00
NkBe
43b01d9d28
Update core
2025-09-07 22:44:48 +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
326afc95ab
feat: add FileProvider and refactor install logic
...
新增 FileProvider 到 AndroidManifest,使其能检测到修补后的 apk;简化 NewPatchScreen 的安装按钮逻辑;修正 AppManagePage 的闭包结构。
2025-09-07 14:38:14 +08:00
NkBe
ed93e43f8c
feat: deleat old InstallActivity
2025-09-07 14:38:02 +08:00
NkBe
0d55e2e602
Enhance installation and cleanup processes
...
Co-Authored-By: xihan123 <srxqzxs@vip.qq.com>
2025-09-07 14:38:02 +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
fed6e4afcf
Lower minSdkVersion
2025-09-05 23:48:04 +08:00
NkBe
88fae63e30
Update dependencies and sort lspatch.versions.toml
2025-09-05 23:42:14 +08:00
NkBe
2f23001a8e
Adjust Workflows
2025-09-03 22:05:08 +08:00
NkBe
7142050894
Update README.md
2025-09-03 22:03:45 +08:00
NkBe
515f527cb2
微调
2025-08-18 15:44:20 +08:00
NkBe
e05f175be1
Update string-zh-rHK
...
Co-Authored-By: Hoshino_17 <124479472+bf2967252373@users.noreply.github.com>
2025-08-18 15:07:38 +08:00
NkBe
cddcedefa2
使用更稳定的NDK29
2025-08-18 14:00:32 +08:00
NkBe
25685bd4c6
Fix: Unresolved reference 'settings_storage_directory'
2025-08-18 13:47:31 +08:00
NkBe
624a786bad
fix: liblspatch.so not found by modifying include path
...
让不同的构建有独立的输出目录,防止文件冲突
2025-08-18 13:40:32 +08:00
NkBe
155a76a43e
fix: lspatch metadata decode crash
...
Co-Authored-By: o0kam1 <duzhaokun2@outlook.com>
2025-08-18 13:36:07 +08:00