phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 660 forks source link

Unisoc Devices headphones error #2526

Open Claravallac opened 1 year ago

Claravallac commented 1 year ago

Headphones are not recognized on Unisoc Chips in AOSP 12+

(Bluetooth headphones work normally)

Reyproject commented 1 year ago

Can confirm this as I also have the same chip (Unisoc T610). The Use Alternate nor the command doesn't fix it.

Claravallac commented 1 year ago

@Reyproject It looks like this is a general problem with unisoc ones, mine is a T700

Reyproject commented 1 year ago

@Claravallac Yeah, I've only tried LineageOS though. Will still try to install other GSIs since SafetyNet doesn't pass for me. If the problem persists on different GSIs then I'll try Android 11. If it's still there I'm going back to stock.

Reyproject commented 1 year ago

Still on Lineage 19.1. I noticed that even though the headset is plugged in, sound does not go there and remains on phone speakers. But using the audio controls (Play/Pause, Next, Back) works. Only needs to pass the audio it which I don't know how.

Reyproject commented 1 year ago

@Claravallac have you tried other GSIs as well?

Claravallac commented 1 year ago

@Reyproject I've used several different GSIs but never had any major problems with "safetynet"

Claravallac commented 1 year ago

call me on telegram "@ClaraVallac"

Reyproject commented 1 year ago

Sent you a message just now.

Reyproject commented 1 year ago

I tried Android 13 GSIs. They all make the camera and video playback green. Although when taking a photo everything is normal. Meanwhile video is the same anywhere whether it's on YouTube, MX Player or browsers

Reyproject commented 1 year ago

Also, on Android 12+, microphone isn't functioning properly. Either it's very low or no sound at all

CarlosCMD commented 1 year ago

Am also on lineage OS 20. Its wired headphones work but still the speaker work. Am on sc9832e. About the videos, mine shows up broken thumbnails.

phhusson commented 1 year ago

Hello

Please dump the result of adb exec-out dumpsys media.audio_policy and tinymix (to be run as root. Either over adb or termux or whatever app), in those 4 cases:

fanuelberhanukebe commented 1 year ago

Hello

Please dump the result of adb exec-out dumpsys media.audio_policy and tinymix (to be run as root. Either over adb or termux or whatever app), in those 4 cases:

  • A11, no headphone connected
  • A11 headphones connected
  • A12/A13/A14 (whichever you want), no headphone connected
  • A12/A13/A14 headphone connected

android 11 no headphone audio policy.txt android 11 with headphone audio policy.txt android 13 no headphone audio policy.txt android 13 with headphone audio policy.txt

fanuelberhanukebe commented 1 year ago

Hello

Please dump the result of adb exec-out dumpsys media.audio_policy and tinymix (to be run as root. Either over adb or termux or whatever app), in those 4 cases:

  • A11, no headphone connected
  • A11 headphones connected
  • A12/A13/A14 (whichever you want), no headphone connected
  • A12/A13/A14 headphone connected

android 11 no headphone tinymix.txt android 11 with headphone tinymix.txt android 13 no headphone tinymix.txt android 13 with headphone tinymix.txt

ivanmara555 commented 1 year ago

Same problem with wired headphones on Teclast p20hd (unisoc platform) on gsi 12+.

PMorty282 commented 9 months ago

Can confirm this as I also have the same chip (Unisoc T610). The Use Alternate nor the command doesn't fix it.

Same problem here, with the same chipset. Is there no fix to this?

sssunn commented 8 months ago

Using Corvus os 4.1 A12L Unisoc T610 Realme c25y A11 Wired Headphones are not being detected. All A13 and plus gsi is having video playback issues.

PMorty282 commented 8 months ago

I tried Android 13 GSIs. They all make the camera and video playback green. Although when taking a photo everything is normal. Meanwhile video is the same anywhere whether it's on YouTube, MX Player or browsers

Same here as well. Issue persists in Android 14 GSIs as well. Any camera, video playback, and if I can remember, GIF and image playback, has this issue. Also still without no audio. I really hope someone could fix this.