Commit Graph

515 Commits

Author SHA1 Message Date
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
NkBe b4d1726708
Fix: Enable install activit 2025-08-18 13:24:12 +08:00
NkBe 88561bd2bd
feat: add StorageDirectory Switch
076e0e4f3b
2025-08-18 00:20:43 +08:00
NkBe 6be5f6ed7c
feat: switch install package
Co-Authored-By: o0kam1 <duzhaokun2@outlook.com>
2025-08-18 00:10:30 +08:00
NkBe 7881387bb2
Opti the translation, corrected typos in the README.
Added new permissions and activity-aliases to AndroidManifest.xml, updated provider permissions, and adjusted service export settings. Improved the Chinese translation for storage selection. Fixed typos in the README project name.
2025-08-17 23:37:31 +08:00
NkBe 147d93c5dc
Update built-in hyperlinks 2025-08-17 23:15:29 +08:00
NkBe 9563fcc4d9
feat: check manager 2025-08-17 22:59:34 +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
NkBe 61cf11ee0e
Adjust workflows 2025-08-17 22:10:37 +08:00
NkBe 10b291bd61
NPatch 2025-08-17 22:09:10 +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 b98eaf8050
New translations strings.xml (French) (#32) 2025-03-15 14:40:20 +01: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 9703dc4b49 Update JingMatrix/LSPosed
Close #24 as fixed, which is explained in https://github.com/WindySha/ManifestEditor/pull/23.
2025-01-18 18:09:37 +01:00
JingMatrix d7a43c798a Release v0.7 2024-12-01 09:48:35 +01:00
JingMatrix 30f86dac8d Remove unnecessary translations in zh-HK 2024-12-01 09:48:35 +01:00
JingMatrix bab8bd2d4c Update JingMatrix/LSPosed 2024-12-01 09:48:30 +01:00
JingMatrix 671fe40074
[translation] Update translation from Crowdin (#21)
* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Arabic)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Finnish)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Italian)

* New translations strings.xml (Japanese)

* New translations strings.xml (Korean)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Ukrainian)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Chinese Traditional)

* New translations strings.xml (Vietnamese)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Chinese Traditional, Hong Kong)
2024-12-01 09:24:55 +01:00
JingMatrix 46b714f221 Update gradle for GitHub Action
1. Update gradle action version and disable cache cleanup
2. Update gradle wrapper
3. Add dependabot action
2024-11-21 10:09:38 +01:00
xihan123 b83152323a
Allow uers to chose if inject loader dex (#19)
If we always inject loader dex, then modules with third party libraries might fail to find library classes since the default class loader is alway used before the the loader of the module package.

Therefore, it is better to treat packages with isolated services as special cases.
2024-11-20 19:38:48 +01:00
JingMatrix 7c153f6491
[translation] Update translation from Crowdin (#18)
* New translations strings.xml (Arabic)

* New translations strings.xml (Russian)

* New translations strings.xml (Chinese Traditional, Hong Kong)
2024-10-31 20:50:48 +01:00
JingMatrix 19fe0f2b18
[translation] Update translation from Crowdin (#16)
* New translations strings.xml (Arabic)

* New translations strings.xml (Chinese Traditional, Hong Kong)

* New translations strings.xml (Russian)
2024-10-31 15:12:17 +01:00
JingMatrix 9b8e8ae507 Update JingMatrix/LSPosed 2024-10-31 15:06:04 +01:00
xihan123 8fb330fe8e
Update dependencies (#12) 2024-10-19 07:14:52 +02: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 a85a0fa578 Fix proguard rules 2024-09-16 19:22:21 +02:00
JingMatrix 90880f9bbe Update repo info 2024-07-27 10:41:40 +02:00
JingMatrix a393bcdcc6 [skip ci] Config crowdin
Close #2 as completed.
2024-07-24 10:45:10 +02:00