5 309
Subscribers
+224 hours
+377 days
+16030 days
Posts Archive
5 302
We have launched a new theme system originating from COUI, featuring numerous details and optimizations. Please try it out.
21 Nov, 10:13
5 302
perf(loader): 減少內建模式冷啟動時的重複檔案 I/O
- metaloader 以 APK 指紋為檔名重用已解出的 libnpatch.so,避免每次啟動都重新寫檔並 fsync - AppComponentFactory 探測結果依 APK 指紋快取,避免每次都掃描全部 dex 找類別 - OriginApkHelper 同一進程內快取 origin.apk 條目的 CRC 與大小,避免重複開啟修補後的 APK - IntegrApplicationService 內建模組清單共用同一個 ZipFile,不再逐模組各開一次 - provider dex 內容未變時不再重寫 - metaloader 與 AppComponentFactory 探測快取改放到既有的 cache/code_cache,不再使用獨立的 cache/npatch;CacheCleaner 一併清理舊路徑殘留檔案
refactor(build): 重整根目錄建置腳本並適配 AGP 新 DSL
perf(manager): 以壓縮方式封裝 dex 縮減 APK 體積
18 Nov, 09:10
5 302
feat(manager): 頂欄支援進階漸進式模糊 (Progressive Blur) 與 2025 動態色彩規範(含 7 種 Monet 調色盤風格)
fix(manager): 重構全頁面頂欄模糊、二級頁面過渡與搜尋欄,修復子頁面空白、啟動崩潰及側滑返回攔截並優化設定頁效能
fix(manager): 強化權限與安全隔離,包含驗證呼叫者身分、限定模組自動核准範圍、停用匯出 InstallResultReceiver 並排除敏感設定備份
fix(manager): 修正安裝逾時無效問題
fix(cli): 參數驗證或修補失敗時回傳非零結束碼並清除殘留輸出
fix(loader): 修正崩潰提示 Toast 未顯示的問題
fix(shizuku): 安裝完成後自動還原套件驗證設定
chore(i18n): 補齊全語系翻譯並更新色彩規範與漸進式模糊文案
chore(i18n):優化香港粵語與貓娘語
17 Nov, 10:07
5 302
修復 .apks 封裝導致的簽名校驗失敗: 先前以 DEFLATED 方式打包 .apks 時,雖然資料未壓縮,但壓縮標識仍為 8,導致系統安裝器透過 mmap 驗證 V2/V3 Signature Block 時位置計算偏移,判定為未簽名。現已全面改用 STORED 模式直接封裝,徹底解決 split/base APK 安裝簽名失效問題。
免 Root 本地模式下的 Xposed 模組設定 App 專用 SDK 已正式發布 v1.0.1,並全面上線 JitPack,不再需要手動下載複製 AAR
新增 NPatchRemoteClient.probe(context),單次調用即可明確區分 READY、MANAGER_NOT_FOUND、MODULE_NOT_CONFIGURED、DENIED 等狀態,輕鬆為用戶給出引導提示。
即時清理:調用端傳入 clientToken,當模組進程退出時 Manager 端自動透過 DeathRecipient 釋放服務快取,杜絕記憶體滯留。
通知修復:修正自定義 applicationId 下 Provider 通知 URI 不匹配的隱蔽問題,偏好即時同步更穩健。
NPatch 主專案正式解除內部子模組綁定,Remote API 作為獨立開源專案維護。
30 Oct, 10:25
5 302
- When NPatch packages, it directly places mtprovider.dex into the main DEX sequence (classesN.dex), allowing the system's native MultiDex to load it.
- Removed the runtime copying of provider.dex and the reflection injection logic for DexPathList$Element(DexFile), which does not exist on Android 8+.
- In signature bypass mode, the installer's DEX is appended via the standard addDexPath method.
28 Oct, 13:07
5 302
fix(loader): give framework classloader an XResources super parent
The framework InMemoryDexClassLoader was built with stub_classloader as its parent, which does not define XResources' synthetic super (xposed.dummy.XResourcesSuperClass extending android.content.res.Resources). When a module uses XResources, ART resolves android.content.res.XResources with its super unreachable and records the class as erroneous for the whole process, so resource hooking hard-fails (seen on Android 16). Build the dummy super class loader (already provided by core's BuildDummySuperClassLoader) and install it as the framework loader's parent at construction, falling back to stub_classloader if it cannot be built. Mirrors JingMatrix/LSPatch.
24 Oct, 07:18
5 302
https://bbs.binmt.cc/thread-175114-1-1.html
大家可以測試一下去簽名校驗的實際效果。目前各個去簽方案的側重點各有不同,未來或許能找到更全面的繞過方式。不過就目前而言,即便是 LSPosed 在默認配置下,依然存在四個已知的檢測風險點
20 Oct, 12:35
5 302
Repost from NPatch
我们将签名绕过后端的 PLT/GOT Hook 方案由 爱奇艺的 xHook 全面迁移至 字节跳动的 bhook,同时剥离了 ShadowHook 依赖,使 bhook 得以独立轻量运作😈
这次重构旨在显著提升原生层签名绕过的效能与整体稳定性,我相信你们也能看到光是 apk 产物,即使是在压缩后发布的版本,它也小了约 0.5MB🦀
有趣的是,这两个开源库的作者都是 caikelun 🐾
由于涉及核心 Native 机制的调整,影响范围较广,特在此频道发布测试版,希望能收集大家的第一手反馈!遇到任何问题请随时回报 ❤️
18 Oct, 12:09
5 302
fix(manager): 修復 Shizuku 使用者服務無法啟動並強化斷線處理
ShizukuService 只以類別名稱交給 Shizuku,由 ServiceStarter 在另一個程序以 loadClass 加上無參建構子實例化;manager 本身從不實例化它,R8 因此把它併入抽象的 AIDL Stub,導致 InstantiationException、使用者服務永遠起不來,診斷匯出拿不到 logcat。加入 keep 規則保留其無參建構子。 dumpLogcat 改為擷取最近 10 分鐘的 logcat,過濾後只保留最新的 maxLines 行;原本取最後 5000 行原始日誌,在日誌密集的 ROM 上只涵蓋數秒。 performDexOptMode 與 isPackageInstalledWithoutPatch 在 Shizuku 於 UI 判斷可用後才斷線時會拋出例外並導致閃退,改為失敗時回傳 false。
fix(loader): 修復 execute-only (.text) 頁掃描在 MagicOS 等 ROM 上崩潰
等級 3 的 svc 重導掃描直接以 uint32_t 讀取每個可執行 PT_LOAD 段尋找 svc #0,在把 .text 對映成 execute-only (XOM) 的 ROM(如 Honor MagicOS 9)上,讀取會觸發 SEGV_ACCERR 並殺掉行程,修補後的 app 冷啟動約 1 秒即崩潰 (#156)。掃描前先以 mprotect 將涵蓋頁加上 PROT_READ 權限(保留可執行,一般 r-x 情況為 no-op),失敗則跳過該段不讀取。 一併修正 xhook SIGSEGV 保護的 act.sa_flags 未初始化問題:殘留的垃圾值可能帶有 SA_RESETHAND,使處理器在第一次接住後即失效,導致 Stealth 模式在 XOM 裝置上第二次 fault 時崩潰。
feat(ui): 首頁計數卡片並排重構、關於頁補齊構建資訊與官網連結
18 Oct, 04:40
5 302
fix(manager): warn when diagnostic export cannot see patched app logs
Without all files access the manager cannot see another app's log files under Android/media, so the export silently reported zero logs as if the app had never launched. Record the missing access and unlistable directories as collection warnings instead.
fix(loader): keep framework service binder local so modules load without
the manager When the manager bind timed out, RemoteApplicationService.asBinder() returned null, so VectorServiceClient never accepted the service and XposedInit loaded no modules even though the local cache had them. A manager binder that died later also made VectorServiceClient drop the service. Make RemoteApplicationService a local stub whose asBinder() is itself; every call already falls back to the local cache when the manager is unavailable. Fixes #154.
fix(manager): restrict patch input types and keep split APKs intact
Only accept .apk, .apks and .xapk when picking files to patch. Read the base signer from the signing block like its splits, so a v3.1 rotated key no longer fails the split signature check. Feed patched splits back as-is when updating the loader, since only the base embeds origin.apk, and carry installed splits over when re-patching an extracted original.
feat(manager): accept .apkm bundles and duplicate-download .apk.N files
Treat .apkm like the other split bundles, and read names such as app.apk.1 that browsers give repeated downloads as plain APKs.
17 Oct, 10:29
5 302
fix(manager): Fix the issue where storage permissions might not be obtained on Android 10
Enable requestLegacyExternalStorage and adjust the WRITE_EXTERNAL_STORAGE limit to API 29
build(deps): Update Vector core base to the latest version (core-837) and upgrade Gradle Wrapper to 9.8.0
17 Oct, 10:28
5 302
Some people say: Frequent updates actually cause more problems.
That's ridiculous. According to them, if something is working, we shouldn't update it at all.
14 Oct, 13:04
