Pixel Fold A16 DP2 - Kernel panic when running Flutter app or receiving file with Quick Share
Please check before submitting an issue/在提交 issue 前请检查
- [X] I have searched the issues and haven't found anything relevant/我已经搜索了 issues 列表,没有发现于本问题相关内容
- [X] If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch/修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
- [X] I will upload bugreport file in APatch Manager - Settings - Report log/我会上传 bureport 文件从 APatch 管理器 - 设置 - 发送日志
- [X] I know how to reproduce the issue which may not be specific to my device/我知道如何重新复现这个问题
Version requirement/版本要求
- [X] I am using latest CI version of APatch/我正在使用最新 CI 版本
Describe the bug/描述 bug
Kernel panic occurs when launching Flutter app or receiving file with Quick Share.
It doesn't happen with Magisk.
Reproduce method/复现方法
- Install Revanced Manager (or another Flutter app)
- Open Revanced Manager
- Kernel panic
OR
- Receive files with Quick Share
- Kernel panic
Expected behavior/预期行为
App opens normally and receive the file normally
Actual behaviour /实际行为
Kernel panic
Screenshots/截图
No response
Logs/日志
No response
Device Name/设备名称
Google Pixel Fold (felix)
OS Version/系统版本
Android 16 DP2
APatch Version/APatch 版本
11023
Kernel Version/内核版本
6.1.112-android14-11-g887a7e86d86c-ab12609334
KernelPatch Version/KernelPatch 版本
0.11.1
Additional context/其他信息
Logs when launching Flutter app APatch_bugreport_2025-01-09_20_25.tar.gz
Logs when receiving file with Quick Share APatch_bugreport_2025-01-09_20_52.tar.gz
So I am able to reproduce the issue on a Pixel 7a (guess this is a Pixel issue then), LineageOS 22.2 (Android 15), as mentioned in my issue (which I had created before I came across yours).
Here is a list of applications that crash, with alternatives / workarounds if you still want to use APatch.
| Application | Alternative / workaround |
|---|---|
| Clash Royale | |
| Everywhere Is Queer | |
| Finch | |
| Firefox (and its forks) | DuckDuckGo |
| Guitar Tuna | Fender Guitar Tuner |
| QuickShare | |
| ReVanced Manager | Patch on another device |
| Shein | |
| SNCF Connect | Use the website |
| WiZ Connected | Not tested, but try riz |
It seems that all torrenting applications suffer from this bug. I have tested BiglyBT, Flud, LibreTorrent and uTorrent. On LibreTorrent, it happens only after having added a torrent. Other clients make it panic at start.
By looking at the console-ramoops-0 file you can see there is an issue with sock_ioctl (addresses are always PC:sock_ioctl+0x70/0x55c LR:sock_ioctl+0x430/0x55c on all affected apps):
RAMDUMP_MSG.txt:
reset message: KP: Oops: Fatal exception: comm:1.ui PC:sock_ioctl+0x70/0x55c LR:sock_ioctl+0x430/0x55c
UUID: d638112b-a39b-5d4e-805b-70306b7f99f8
last kernel version: 6.1.112-android14-11-g3cc78585b764-ab12609334
aosp kernel version: 6.1.112-android14-11-g887a7e86d86c-ab12609334
build: google/felix_beta/felix:Baklava/BP21.241121.009/12787338:user/release-keys
RST_STAT: 0x80 - SYSTEM_SWRESET_SYSTEM
GSA_RESET_STATUS: 0x10 - GSA_INTERMEDIATE_RESET
Reboot reason: 0xbaba - Kernel PANIC
Reboot mode: 0x0 - Normal Boot
I think the issue might be that somewhere up the call stack (see backtrace in the console ramoops) a NULL or bad socket is passed to sock_ioctl. But I might be mistaken since kernel development is beyond my understanding.
I haven't found any workaround nor hint towards a solution yet.
This issue is happening to me as well on a Pixel 7a with stock ROM and the latest version of APatch. I haven't found any solution yet
So I am able to reproduce the issue on a Pixel 7a (guess this is a Pixel issue then), LineageOS 22.2 (Android 15), as mentioned in my issue (which I had created before I came across yours).
Here is a list of applications that crash, with alternatives / workarounds if you still want to use APatch. Application Alternative / workaround Clash Royale Finch Firefox (and its forks) DuckDuckGo Guitar Tuna Fender Guitar Tuner QuickShare ReVanced Manager Patch on another device SNCF Connect Use the website WiZ Connected Not tested, but try riz
It seems that all torrenting applications suffer from this bug. I have tested BiglyBT, Flud, LibreTorrent and uTorrent. On LibreTorrent, it happens only after having added a torrent. Other clients make it panic at start.
By looking at the
console-ramoops-0file you can see there is an issue withsock_ioctl(addresses are alwaysPC:sock_ioctl+0x70/0x55c LR:sock_ioctl+0x430/0x55con all affected apps):RAMDUMP_MSG.txt: reset message: KP: Oops: Fatal exception: comm:1.ui PC:sock_ioctl+0x70/0x55c LR:sock_ioctl+0x430/0x55c UUID: d638112b-a39b-5d4e-805b-70306b7f99f8 last kernel version: 6.1.112-android14-11-g3cc78585b764-ab12609334 aosp kernel version: 6.1.112-android14-11-g887a7e86d86c-ab12609334 build: google/felix_beta/felix:Baklava/BP21.241121.009/12787338:user/release-keys RST_STAT: 0x80 - SYSTEM_SWRESET_SYSTEM GSA_RESET_STATUS: 0x10 - GSA_INTERMEDIATE_RESET Reboot reason: 0xbaba - Kernel PANIC Reboot mode: 0x0 - Normal BootI think the issue might be that somewhere up the call stack (see backtrace in the console ramoops) a NULL or bad socket is passed to
sock_ioctl. But I might be mistaken since kernel development is beyond my understanding.I haven't found any workaround nor hint towards a solution yet.
I have prob. same problem with Pixel 6a
- Lineage-22.2-20250802-nightly-bluejay-signed
- APatch v11107
For me, for example, other apps (besides the ones you mentioned, like Firefox, ReVanced Manager) cause my smartphone to crash.
- Octopus (learning app)
- TinyCam
- Obtanium
They're not really replaceable. However, Firefox, Revanced Manager isn't replaceable for me either.
Well, since I see that the problem seems to have existed since January and hasn't been fixed since then, I need to replace APatch rather than the apps.
Crazy that this has been reported in January and nothing happened yet
Well, since I see that the problem seems to have existed since January and hasn't been fixed since then, I need to replace APatch rather than the apps.
You're right about this. Unfortunately APatch is the only rooting method Revolut will work with on my phone (I've tried Magisk and KernelSU + hiding modules without success). And giving up either Revolut or rooting is not an option. So I am stuck with using APatch and keeping myself away from many apps.
I think the issue may come from a tech stack or library many apps shared above use. So here is how I think I'd try to debug it.
Put a sample of all the apps that crash and some apps that don't on a spreadsheet, apps as rows, and columns (name, does it crash, *libs). Libs are as many columns as potential culprits (React, Electron, Firebase, other stacks and libs), a given library is not worth including if not used by at least one crashing app.
Ideally, you'll find that all working apps don't use a certain lib and some or all crashing apps do, in that case there is probably the culprit. Or you won't, then keep adding columns with other potential culprits.
The fact that all torrenting apps crash is very helpful as well, a look at the torrent protocol could hint you towards the specific instruction (again seemingly socket-related operation) that makes everything crash.
LibreTorrent is a very good candidate for crash analysis. It is open source and only crashes when the torrents start downloading, not when the app starts, that makes it easy to pinpoint the line that makes it crash. You can do so by modifying the app to include a lot of logcat prints and see which ones get printed before it crashes.
The goal is to find the faulty operation and be able to make a minimal app that crashes the phone.
I currently don't have time to look at it myself but I might do in some months.