bmax121/APatch

Mi Note 10 Lite (toco) reboot on lock screen

Opened this issue · 5 comments

Please check before submitting an issue/在提交 issue 前请检查

  • I have searched the issues and haven't found anything relevant/我已经搜索了 issues 列表,没有发现于本问题相关内容
  • If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch/修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload bugreport file in APatch Manager - Settings - Report log/我会上传 bureport 文件从 APatch 管理器 - 设置 - 发送日志
  • I know how to reproduce the issue which may not be specific to my device/我知道如何重新复现这个问题

Version requirement/版本要求

  • I am using latest CI version of APatch/我正在使用最新 CI 版本

Describe the bug/描述 bug

After flashing the patched boot.img and rebooting the device unexpectedly reboots when it reaches the lockscreen.

Reproduce method/复现方法

  1. Download PixelOS.
  2. Extract the boot.img: (zip with just the boot.img: boot.img.zip)
  3. Patch it with APatch.
  4. Reboot to recovery.
  5. Flash the patched boot image: apatch_patched_10815_0.10.7_nhbj.img.
  6. Reboot.
  7. Reach the lockscreen.
  8. Input your lockscreen unlock key.
    • If you're fast enough you will see the home page.
    • Otherwise it will reboot while you are in the middle of typing your lockscreen unlock key.

Expected behavior/预期行为

I can use the device normally.

Actual behaviour /实际行为

Forced reboot.

Screenshots/截图

Screenshot_20240608_211611

Screenshot_20240608_214109

Logs/日志

The bug report from current CI is empty:
APatch_bugreport_2024-06-08_21_21.tar.gz.zip

Here is the bug report when I tried with the latest release though:
APatch_bugreport_2024-06-08_21_08.tar.gz

Device Name/设备名称

Mi Note 10 Lite (toco)

OS Version/系统版本

PixelOS_toco-14.0-20240531-2001 (Android 14)

APatch Version/APatch 版本

c79b4f0

Kernel Version/内核版本

4.14.345

Kernel source: https://github.com/PixelOS-Devices/kernel_xiaomi_sm6150

KernelPatch Version/KernelPatch 版本

0.10.7

Additional context/其他信息

~ $ neofetch
         -o          o-            u0_a320@localhost
          +hydNNNNdyh+             -----------------
        +mMMMMMMMMMMMMm+           OS: Android 14 aarch64
      `dMMm:NMMMMMMN:mMMd`         Host: Xiaomi Mi Note 10 Lite
      hMMMMMMMMMMMMMMMMMMh         Kernel: 4.14.345-openela-VantomKernel
  ..  yyyyyyyyyyyyyyyyyyyy  ..     Uptime: 16 mins
.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm.   Packages: 80 (dpkg), 1 (pkg)
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   Shell: bash 5.2.26
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   CPU: Qualcomm SDMMAGPIE (8) @ 1.804GHz
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   Memory: 3594MiB / 5506MiB
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:
-MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM-
 +yy+ MMMMMMMMMMMMMMMMMMMM +yy+
      mMMMMMMMMMMMMMMMMMMm
      `/++MMMMh++hMMMM++/`
          MMMMo  oMMMM
          MMMMo  oMMMM
          oNMm-  -mMNs

That rom you're using, is not a GSI, right?

No it's not. Unfortunately the kernel is too old for that and it would be a considerable amount of effort to upgrade it without manufacturer support.

I'm no developer, but my guess is that, this is an issue with the ROM not supporting APatch and not the other way around, I'd say that the boot.img you're trying to patch is already modified. Maybe my suggestion is a little dumb, but, have you tried using other rom? IMO, for Xiaomi devices, we should stick to MIUI (stock or custom by xiaomi.eu)

https://xiaomi.eu/community/threads/miui-12-0-12-1-12-2-12-5-stable-release.56191/

I'm sorry, as I already stated, this might be dumb and you REALLY want to use PixelOS, but I had a Redmi9T, used that same 12.5 rom, and it's heaven, man. Plus, never had problems with APatch on that rom.

@gyrorayo KernelSU works without issues though. MIUI is bloated spyware, my phone is way snappier since I switched to an AOSP ROM.

Edit: I was using the MIUI from xiaomi.eu before I switched. Less bloatware/spyware, but not everything is removed. For example at some point I caught the Gallery app uploading all the images I delete to show me a “you can restore this file within 30 days” without any of my consent. All the privacy switches were turned off.

Edit 2: They silently backpedaled a long time ago on the automatic cloud upload on deletion even without an account logged in.

I know, dude, xiaomi.eu is a heavily modified ver of MIUI, removes most of spyware/bloatware. Really nice rom, extends battery life, and stuff.

EDIT: As far as I know, those deleted photos are stored locally, a feature of Gallery app. My device doesn't have a xiaomi account in settings, and have deleted photos completely off-line. Photos go to deleted album.

Sorry for not being helpful here. Just thought it'd be an issue with boot.img already patched/modified by pixelos devs