APatch Manager Crash Report Analysis

Pre-Submission Checklist | 提交前检查清单

  • [x] Searched existing issues and found no relevant information | 已搜索现有问题,未发现相关信息
  • [x] If the patch fails or the image fails to boot after flashing, visit KernelPatch for assistance | 修复失败或刷入新boot.img后无法启动,请前往KernelPatch寻求帮助
  • [x] Will upload the bug report file via APatch Manager > Settings > Send logs | 将通过APatch Manager > 设置 > 发送日志上传错误报告文件
  • [x] Know how to reproduce the issue, which may not be specific to my device | 知道如何复现问题,这可能不特定于我的设备

Version Requirements | 版本要求

  • [x] Using the latest CI version of APatch Manager | 正在使用最新CI版本的APatch Manager

Bug Description | 错误描述

当APatch Manager (版本11107)获得root权限后,进行任意文件选择操作都会导致APatch Manager崩溃。

Reproduce Steps | 复现步骤

  1. Flash the patched kernel with APatch
  2. Reboot and change kp command to su command via kernel patch
  3. Click the Install button
  4. Click the Select the boot image to patch button
  5. System file selector appears
  6. Select a file
  7. Application crashes

Expected Behavior | 预期行为

Expected to be able to patch an updated kernel.

Actual Behavior | 实际行为

The manager crashes immediately after selecting a file, without giving the opportunity to patch the kernel.

Screenshots | 截图

Screenshot 1
Screenshot 2

Logs | 日志

APatch version: 11107 (11107)
Brand: realme
Model: RMX6688
SDK Level: 35
Time: 2025-09-15 22:07:47

Thread: DefaultDispatcher-worker-2
Crash Info:
java.lang.SecurityException: Permission Denial: reading com.android.externalstorage.ExternalStorageProvider uri content://com.android.externalstorage.documents/document/primary%3ADocuments%2Fadvanced%2FImage%2Fboot_a.img from pid=24122, uid=10369 requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.os.Parcel.createExceptionOrNull(Parcel.java:3272)
...
Suppressed: tm: [Fl{Cancelling}@a3fcfbd, <a href="http://dispatchers.io/">Dispatchers.IO</a>]

Device Information | 设备信息

  • Device Name: 真我GT7
  • OS Version: Android 15
  • APatch Version: 11107
  • Kernel Version: 11107
  • KernelPatch Version: 0.12.0

Additional Information | 其他信息

Unable to access internal storage to export logs, analysis also shows the file does not exist.