Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MT6739][AOSP 8.1]Audio related bootloop #2607

Open
sqhills opened this issue Jan 26, 2024 · 8 comments
Open

[MT6739][AOSP 8.1]Audio related bootloop #2607

sqhills opened this issue Jan 26, 2024 · 8 comments

Comments

@sqhills
Copy link

sqhills commented Jan 26, 2024

Current Behavior:

Device stuck in bootanimation, adbd works. logcat shows something about audio@2.0-servi getting a SIGSEGV.
Tried to disable audio effects in build.prop but to no avail.

Describe the bug

Some kind of audio service is preventing boot.

To Reproduce

  1. flash the image via fastboot
  2. fastboot -w
  3. reboot
  4. stuck on bootanimation

Smartphone (please complete the following information):

  • Device: YDD011
  • Build Flavor: system-arm64-aonly-vanilla-nosu.img.xz
  • Version V32

Additional context

So, I've actually tried several Android versions, and so far AOSP 8.1 is the closest to functional. AOSP 9.0 reboots directly to fastboot, while AOSP 10.0 stucks on boot logo. AOSP 11 does reach the ANDROID animation but adbd doesn't start so no way to grab logs.
My device is more of a PDA rather than a phone. No LTE model, so nothing to do with that.
It's shipped with a stock 8.1 rom very similar to AOSP except for minor annoying modifications. Treble Check shows that it's aonly with vndk v27 and non SAR.
I'm using magisk patched boot image to bypass dm-verity or else it bootloops at the boot logo.
logs attached:(after disabling audio effects)
logcat.log

Thanks in advance. :)

@phhusson
Copy link
Owner

My AOSP8.1 was really completely a work-in-progress. I'd rather look at logs on AOSP 10.

@sqhills
Copy link
Author

sqhills commented Jan 26, 2024

Last time I tired, AOSP 10 stucks at boot logo(the bootloader one). Perhaps I got something wrong. I will try again nevertheless.

@phhusson
Copy link
Owner

Even if it's stuck at boot logo I can look at logs.

@sqhills
Copy link
Author

sqhills commented Jan 26, 2024

It's literally the bootloader logo, so android wasn't loaded yet. I'm sure I must have botched the flashing or something. I'll try it again.

@sqhills
Copy link
Author

sqhills commented Jan 26, 2024

By the way, previously when I tired AOSP 11, the device booted into bootanimation, yet adbd didn't start. Am I still able to grab logs under this circumstance?

@sqhills
Copy link
Author

sqhills commented Jan 26, 2024

OK, so I tried AOSP 10 v222 again, and ended up with the same result. On boot, device only displays the boot logo (not ANDROID but the vendor one). However, I checked with twrp and found that files were generated in /data, which means android did start. I wasn't able to locate any logs, though. Is there any way to obtain logs in this situation? Thanks.

@phhusson
Copy link
Owner

From TWRP grab logs from /sys/fs/pstore or /proc/last_kmsg
If you have a /sys/fs/pstore folder but it's empty, open a terminal in twrp and do mount -t pstore none /sys/fs/pstore

@sqhills
Copy link
Author

sqhills commented Jan 27, 2024

Got it!
last_kmsg

pstore/
├─ console-ramoops
├─ console-ramoops-2
├─ pmsg-ramoops-0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants