NkBe
f215471400
fix(patch): 优化Manifest权限与authority映射
...
重构了权限和authority的映射逻辑,统一使用targetPackage变量,支持com.google.android前缀不变。
修改部分參考 #37,主要用於修復 #25
Co-Authored-By: areteruhiro <108941410+areteruhiro@users.noreply.github.com>
2025-12-11 22:36:05 +08:00
NkBe
2245f35f61
Release 0.7.3
2025-12-08 22:19:57 +08:00
NkBe
efeb758845
fix(injectDex): Fixed the crash issue of the injection loader on some Android.
...
https://github.com/JingMatrix/LSPatch/pull/68
2025-12-08 22:19:44 +08:00
NkBe
5c8509e4f5
feat: 支持手動重載列表
...
- 當卸載後重新整理程式清單
- 可手動下拉刷新應用列表與模組列表
2025-12-07 23:47:43 +08:00
NkBe
5a90ed436e
fix: 正確設定共享偏好設定鍵並提升加載穩定性
...
- 修正了 SharedPreferences 鍵配置錯誤,確保模組緩存能正確加載。
- 優化 檔案注入器: 減少 ZipFile 重複 I/O,提升啟動效率。
- 優化 profile 禁用: 採用冪等性檢查和 Truncate 替代 Delete/Create 流程,增強對系統監控的穩定性,避免用戶配置意外清除。
- 代碼精簡: 改進了變數命名和程式碼結構。
fix: 正確設定共享偏好設定鍵並提升加載穩定性
- 修正了 SharedPreferences 鍵配置錯誤,確保模組緩存能正確加載。
- 優化 檔案注入器: 減少 ZipFile 重複 I/O,提升啟動效率。
- 優化 profile 禁用: 採用冪等性檢查和 Truncate 替代 Delete/Create 流程,增強對系統監控的穩定性,避免用戶配置意外清除。
- 改進 manager 構建檔案確保所有庫檔案不被壓縮。
- 代碼精簡: 改進了變數命名和程式碼結構。
2025-12-07 22:52:51 +08:00
NkBe
799bc1d022
feat: manager新增签名校验防篡改
...
HSSkyBoy
2025-12-07 21:31:27 +08:00
NkBe
f4b2513182
feat: 更严格的权限检查
...
Android 11 及以上: 檢查 Environment.isExternalStorageManager(),如果沒有權限,則跳轉到「所有檔案存取權」設定頁面 。
Android 10 及以下: 檢查並請求 WRITE_EXTERNAL_STORAGE 和 READ_EXTERNAL_STORAGE 權限 。
2025-12-06 14:58:39 +08:00
NkBe
2d86d32ff2
manager: 优化构建配置
2025-12-05 22:28:44 +08:00
NkBe
544eccfeef
Move org.lsposed.npatch.util to nkbe.util
2025-12-04 23:06:27 +08:00
NkBe
611d77f263
rename provider2mtprovider
2025-12-03 22:32:53 +08:00
NkBe
af548bb25d
feat: 增加已修補列表自動刷新 & 優化安裝完成後的跳轉邏輯
...
1. AppManageViewModel:
- 實現已修補應用列表的自動刷新機制(每 90 秒輪詢一次)。
- 引入 `silent` 參數區分自動刷新與手動刷新,避免自動刷新時 UI 出現加載轉圈,提升體驗。
2. NewPatchPage:
- 重構安裝成功的判定邏輯:不再僅依賴 PackageInstaller 的回調。
- 新增 `BroadcastReceiver` 監聽系統 `PACKAGE_ADDED` 和 `PACKAGE_REPLACED` 廣播。
- 確保系統真正註冊完新包後再執行導航返回 (navigateUp),解決安裝後立即返回導致列表尚未更新或狀態不同步的問題。
2025-12-03 00:33:21 +08:00
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