tag:github.com,2008:https://github.com/7723mod/NPatch/releasesRelease notes from NPatch2026-02-10T10:37:13Ztag:github.com,2008:Repository/1039585556/v0.7.42026-02-12T09:56:14Zv0.7.4<h1>中文</h1>
<p><strong>統一介面風格並優化佈局</strong><br>
<strong>導入 ARM64 專用的 SVC/Seccomp 內核級簽名繞過 (Level 3),並全面強化檔案 I/O 重定向機制。</strong><br>
<strong>移除非 64位 架構的支持</strong><br>
<strong>优化 Manifest 权限与 authority 映射</strong></p>
<p><strong>修復 arsc 的正確壓縮和對齊</strong><br>
在 ZFileOptions 中為 .arsc 檔案添加 4 字節對齊規則,並在新增條目時將 resources.arsc 處理為原生程式庫。確保 resources.arsc 的正確對齊。</p>
<p><strong>修復本地模式沙盒限制</strong><br>
引入 ConfigProvider 機制: 用 <code>ConfigProvider</code>,繞過 Android 應用沙盒的數據隔離限制,確保被修補應用能即時獲取配置。</p>
<ul>
<li>重構加載邏輯: 將 <code>NeoLocalApplicationService</code> 的讀取方式從 <code>SharedPreferences</code> 改為動態查詢 <code>ConfigProvider</code>。</li>
<li>動態 APK 路徑解析: 透過 <code>PackageManager</code> 實作模組 APK 路徑的動態解析,取代原有的靜態路徑,並強化錯誤日誌以利偵錯。</li>
</ul>
<p><strong>更新內核與依賴項</strong></p>
<ul>
<li>同步 LSPosed 內核至 v1.11.0: 解決 Android 10 以及 OnePlus 裝置上的特定兼容問題。</li>
<li>重構 Dex2Oat 邏輯: 消除 Missing Symbols 錯誤,並顯著提升裝置運行穩定性與處理速度。</li>
</ul>
<p><strong>解決 x86_64 架構構建與 SVC 問題</strong></p>
<ul>
<li>修正編譯錯誤: 解決 <code>bypass_svc</code> 在 x86_64 環境下的編譯失敗問題,確保開發環境與模擬器的構建順暢。</li>
<li>架構隔離與 Stub 實現: 為非 ARM64 架構提供 Stub 空實現,防止連結階段出現未定義符號錯誤。</li>
<li>符號範圍優化: 將狀態變數 <code>g_is_hook_active</code> 移至全域作用域,解決跨架構編譯時的符號可見性問題。</li>
<li>強化架構守衛: 針對 ARM64 特有的 Syscall 邏輯加入精確的架構守衛標籤。</li>
</ul>
<p><strong>優化效能與啟動速</strong></p>
<ul>
<li>Gson 改為靜態單例,減少記憶體開銷。</li>
<li>配置保存改用異步 apply(),避免 I/O 阻塞主線程。</li>
<li>完善資源管理: 修復了 Provider Dex 注入流程中的文件檢查邏輯,並加強異常日誌輸出。</li>
<li>強化 NPE 防護: 針對模組列表、資源流讀取增加多處空指標檢查,杜絕啟動崩潰風險。</li>
</ul>
<hr>
<h1>English</h1>
<p><strong>Unified ui style and layout optimization</strong><br>
<strong>Introduce ARM64-specific SVC/Seccomp kernel-level signature bypass (Level 3), and comprehensively enhance file I/O redirection mechanism.</strong><br>
<strong>Remove support for non-64-bit architecture</strong><br>
<strong>Optimize Manifest permissions and authority mapping</strong></p>
<p><strong>Fixing arsc's correct compression and alignment</strong></p>
<p>Add a 4-byte alignment rule for .arsc files in ZFileOptions, and treat resources.arsc as a native library when adding entries. Ensure the correct alignment of resources.arsc.</p>
<p><strong>Update core and dependencies</strong></p>
<ul>
<li>Sync LSPosed kernel to v1.11.0: Resolve specific compatibility issues on Android 10 and OnePlus devices.</li>
<li>Refactor Dex2Oat logic: Eliminate Missing Symbols errors, and significantly improve device stability and processing speed.</li>
</ul>
<p><strong>Fix Local Mode Sandbox Restrictions</strong><br>
Introduce ConfigProvider mechanism: Use <code>ConfigProvider</code> to bypass Android app sandbox data isolation restrictions, ensuring the patched app can instantly access configurations.</p>
<ul>
<li>Refactor loading logic: Change the loading method of <code>NeoLocalApplicationService</code> from <code>SharedPreferences</code> to dynamically query <code>ConfigProvider</code>.</li>
<li>Dynamic APK path resolution: Implement dynamic resolution of module APK paths via <code>PackageManager</code>, replacing the original static paths, and enhance error logging for debugging.</li>
</ul>
<p><strong>Solving x86_64 Architecture Build and SVC Issues</strong></p>
<ul>
<li>Fix compilation errors: Resolve the compilation failure issue of <code>bypass_svc</code> in x86_64 environment, ensuring smooth build of development environment and simulator.</li>
<li>Architecture isolation and Stub implementation: Provide Stub empty implementations for non ARM64 architectures, preventing undefined symbol errors during linking stage.</li>
<li>Symbol scope optimization: Move the state variable <code>g_is_hook_active</code> to global scope, addressing symbol visibility issues during cross-architecture compilation.</li>
<li>Strengthen architecture guard: Add precise architecture guard labels for ARM64-specific instruction set logic (Syscall).</li>
</ul>
<p><strong>Optimize performance and startup speed</strong></p>
<ul>
<li>Gson changed to static singleton to reduce memory overhead.</li>
<li>Configuration saving switched to asynchronous apply(), avoiding I/O blocking the main thread.</li>
<li>Improved resource management: Fixed the document check logic in the Provider Dex injection process and enhanced exception log output.</li>
<li>Strengthened NPE protection: Added multiple null pointer checks for module lists and resource stream reading to eliminate startup crash risks.</li>
</ul>HSSkyBoytag:github.com,2008:Repository/1039585556/v0.7.32025-12-08T14:55:41Zv0.7.3<h1>中文</h1>
<p><strong>重命名部分組件</strong><br>
<strong>更新部分依賴</strong><br>
<strong>將所有 'lspatch' 轉為 'npatch' 以规避部分關鍵詞檢測</strong><br>
<strong>manager 新增簽名驗證防篡改(僅 java 讀取 hashCode )</strong><br>
<strong>支援手動重載列表</strong></p>
<ul>
<li>當卸載後重新整理程式清單</li>
<li>可手動下拉刷新應用列表與模組列表</li>
</ul>
<p><strong>優化應用列表取得</strong></p>
<ul>
<li>安裝及卸載應用後將重新獲取應用列表,應用本身會定期重新獲取應用列表(實驗性)</li>
</ul>
<p><strong>更嚴格的權限檢查</strong></p>
<ul>
<li>Android 11 以上:檢查 Environment.isExternalStorageManager(),如果沒有權限,則跳轉到「所有檔案存取權」設定頁面。</li>
<li>Android 10 及以下:檢查並請求 WRITE_EXTERNAL_STORAGE 和 READ_EXTERNAL_STORAGE 權限。</li>
</ul>
<p><strong>修復: 正確設定共享偏好設定鍵並提升加載穩定性</strong></p>
<ul>
<li>修正了 SharedPreferences 鍵配置錯誤,確保模組緩存能正確加載。</li>
<li>優化檔案注入器:減少 ZipFile 重複 I/O,提升啟動效率。</li>
<li>優化 profile 禁用:採用冪等性檢查和 Truncate 替代 Delete/Create 流程,增強對系統監控的穩定性,避免用戶配置意外清除。</li>
<li>代碼精簡:改進了變數命名和程式碼結構。</li>
</ul>
<p><strong>修復安裝完成提示(部分情況)</strong><br>
<strong>修正了某些裝置上注入載入器的 Crash 問題</strong></p>
<h1>English</h1>
<p><strong>Rename some components</strong><br>
<strong>Update some dependencies</strong><br>
<strong>Replace all 'lspatch' with 'npatch' to bypass some keyword detection</strong><br>
<strong>Manager adds signature verification to prevent tampering (only Java reads hashCode)</strong><br>
<strong>Support manual reload of list</strong></p>
<ul>
<li>Reload program list after unloading</li>
<li>Manually pull down to refresh the app list and module list</li>
</ul>
<p><strong>Optimize Application List Retrieval</strong></p>
<ul>
<li>After installing or uninstalling an application, the application list will be re-fetched. The application itself will periodically re-fetch the application list (experimental).</li>
</ul>
<p><strong>More Strict Permission Checks</strong></p>
<ul>
<li>Android 11 and above: Check Environment.isExternalStorageManager(). If no permission is granted, navigate to the "All File Access Permissions" settings page.</li>
<li>Android 10 and below: Check and request WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions.</li>
</ul>
<p><strong>Fix: Correctly set shared preference keys and improve loading stability</strong></p>
<ul>
<li>Corrected SharedPreferences key configuration error to ensure module caching can be loaded correctly.</li>
<li>Optimized file injector: Reduce repeated I/O of ZipFile, improve startup efficiency.</li>
<li>Optimize profile disabling: Adopted equivalence checks and Truncate as an alternative to Delete/Create processes, enhancing the stability of system monitoring and preventing accidental user configuration deletion.</li>
<li>Code Simplification: Improved variable naming and code structure.</li>
</ul>
<p><strong>Fix installation completion prompt (partial cases)</strong><br>
<strong>Fixed crash issues related to injection loaders on some devices</strong></p>HSSkyBoytag:github.com,2008:Repository/1039585556/v0.7.22025-11-21T13:54:52Zv0.7.2<p>中文日志见 <a href="https://t.me/NPatch/778" rel="nofollow">NPatch-Telegram</a></p>
<p><strong>✨New Features</strong><br>
New method to obtain the app list via Shizuku.<br>
Supports injection of MT Manager DocumentsProvider.<br>
Supports using a custom new package name for app patching.<br>
Optimized the core signature verification bypass mechanism.<br>
Improved log output and error messages, and supports logging to the Android/media directory.<br>
Automatically clean up profile files to prevent expired archives from interfering with operation.<br>
Streamlined the application mode description text, enhancing readability.</p>
<p><strong>🐛Fixes & Improvements</strong><br>
Enhanced compatibility with some A15 devices.<br>
Improve assets handling and error checks.<br>
Fix memory leak issue caused by JNI global references not being released.<br>
Optimize the service binding timeout logic, fallback mechanism, and module loading stability.<br>
Correct the getPrefsPath path acquisition logic.<br>
Special prompts added for MIUI desktop uninstall scenarios, improving user experience.</p>
<p><strong>⚙️Refactor & Core</strong><br>
All metadata and names related to LSPatch are fully migrated/renamed to NPatch.<br>
Refactor the RemoteService and APK signature parsing logic.<br>
Add null checks for some method parameters to prevent exceptions and crashes.<br>
Synchronize updates to the Core component.</p>
<p><strong>🛠️Build Workflows</strong><br>
Migrate the runtime environment to Ubuntu and simplify the build cache configuration.</p>
<p>Join our <a href="https://t.me/NPatch" rel="nofollow">Telegram</a></p>HSSkyBoytag:github.com,2008:Repository/1039585556/v0.7.12025-11-20T10:34:05Zv0.7.1<p>What's New:<br>
API 100 support (core only)<br>
<a href="https://github.com/JingMatrix/LSPosed/commit/5f20d7ab7562ecd1d892d86a99e1451158bc498d">Full support for Android 15</a><br>
<a href="https://github.com/JingMatrix/LSPosed/commit/6703b45350bd61c56b8a901274b867a4ca1c8bda">Full support for Android 16</a><br>
<a href="https://github.com/7723mod/NPatch/commit/336ad9ecf857eefcdaebde29bff7d90475b23893">Compatibility with special hardening</a><br>
<a href="https://github.com/7723mod/NPatch/commit/88561bd2bddd4b6cfe5e0a90c04a66b7ca5874b3">Modifiable output path</a><br>
<a href="https://github.com/7723mod/NPatch/commit/0d55e2e60265d34435e82109a650f28dd90235f8">Allows installation using system APIs</a><br>
<a href="https://www.google.com/search?q=https://github.com/7723mod/NPatch/commit/%3F" rel="nofollow">Minimizes file size of packaged files</a><br>
<a href="https://github.com/7723mod/NPatch/commit/9563fcc4d9ddfa0376e10228e5610735f10269b9">Explicit manager package name in the config file</a><br>
<a href="https://github.com/7723mod/NPatch/commit/b83152323adabb90153bf9180729079078f7b149">Allows users to select whether to inject loader dex</a><br>
<a href="https://github.com/7723mod/NPatch/commit/c2fdd4941d4dda51ddd738b8396c6d22f1d97df8">Optimized signature bypass (Hook) and patching logic</a></p>
<p>Join our <a href="https://t.me/NPatch" rel="nofollow">Telegram</a></p>HSSkyBoytag:github.com,2008:Repository/1039585556/v0.72025-08-21T06:46:30ZONPatch<p>非 Neo LSPatch, 详情请于 <a href="https://t.me/NPatch/127" rel="nofollow">频道</a> 自行查看, 安卓13及以下版本推荐使用, 但基本不再维护</p>HSSkyBoytag:github.com,2008:Repository/1039585556/0.62025-08-21T06:44:19Zv0.6<p>旧项目</p>HSSkyBoy