AndroidPatch cause app to crash (and broke some system functions)

Open
#1,558 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
android

Research direction

Start with the attached log.txt and the six-step reproduction sequence, comparing the release and CI debug builds on the listed Poco C40 and Android GSI configurations. The fix is complete when installing AndroidPatch no longer crashes or hangs APatch Manager and does not impair adb or general system responsiveness.

Written by the indexing model from the issue text.

Description

bug
Please check before submitting an issue | 在提交 Issue 前请检查
  • I searched the issues and didn't found anything relevant | 我已经搜索了 Issues 列表,没有发现于本问题相关内容
  • If the patch fails or the image cannot be booted after flashing the new boot.img, visit KernelPatch to clarify your doubts | 修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload the bug report file in APatch Manager > Settings > Send logs | 我会上传 Bug Report 文件从 APatch 管理器 > 设置 > 发送日志
  • I know how to reproduce the issue, which might not be specific to my device | 我知道如何重新复现这个问题
Version requirements | 版本要求
  • I'm using the latest CI version of APatch Manager | 我正在使用最新 CI 版本
Bug description | 描述 Bug

On lastest release version (11224), after apply androidpatch and reboot, app crashs with yr1: Unable to create a shell! , with side effect of malfunctioning adb (sometimes it cant detect device while in usb debugging, or detected but excute command return nothing), and slowly make device unresponsive as well

On ci debug build (APatch_11266_3c90784_main-debug-signed.apk), same behaviour as above, but open apps show its home menu then hang there until system show app has stop working popup, so cant retrieve log from there

Reproduce method | 复现方法
    1. install apatch app
    1. patch official boot.img (no error given)
    1. pull patched img to pc, reboot to fastbootd, flash patched img, reboot
    1. open apatch app, app show installed patched img
    1. reboot device
    1. app still normal, choose install AndroidPatch, reboot
    1. device boot normal, open apatch app, see error (crash log on release app, hang on ci build app, system error that mentioned above)
Expected behavior | 预期行为

it should worked like before (did installed apatch on my device before, everything works fine so i dont update it, cant remember which version)

Actual behavior | 实际行为

described above

Screenshots | 截图

No response

Logs | 日志

log from release, ci build hang so i cant retrieve log

Device name | 设备名称

Poco c40 global (frost)

OS version | 系统版本

11,12 aosp gsi build

APatch version | APatch 版本

APatch_11224_9a63e0f_HEAD-release-sig~.apk and APatch_11266_3c90784_main-debug-signed.apk

Kernel version | 内核版本

5.4.242-jgki-perfuser-android11-2-g0ba9b7fb7be1 #1 Tue Mar 5 21:48:55 CST 2024

KernelPatch version | KernelPatch 版本

will update later, did not notice this

Other information | 其他信息

use gsi rom from github com/TrebleDroid/treble_experimentations and github com/phhusson/treble_experimentations, android 11, 12 and 13 (vanilla, gapps and gapps-go) latest build
log from stable app
log.txt

Dominant language
Kotlin
Stars
8.2k
Forks
809
Avg merge
7d 17h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bmax121/APatch

All issues in bmax121/APatch

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.