[ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post Reply
User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

[ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

Call for alpha test : LineageOS-20.0 Android 13 for Odroid-N2/N2L

Tested only on EMMC so avoid sdcards

android-13.png
android-13.png (67.64 KiB) Viewed 558 times

Selfinstall Images for ODROID-N2
64bit You can find latest version here

Selfinstall Images for ODROID-N2L
64bit You can find latest version here

Image flashing guide.
https://wiki.odroid.com/troubleshooting ... hing_tools

Both variants supports removing GAPPS on install/update process.
For selfinstall: after writing image on SD/EMMC don't disconnect it from PC and create empty "nogapps" file on root of FAT partition.
For update: create and keep empty "nogapps" file on root of FAT partition (/odm/nogapps)



For Google apps please read this.
https://www.google.com/android/uncertified/
Also after you register your Android framework ID, please wait some time (30-60 minutes) then reboot Odroid and try to add Google Account.

Extra:
  • tvheadend
  • androidvnc server
  • aptX aptXHD ldac Bluetooth codecs
Changelog:

Code: Select all

20221124 Alpha-v0.4
* First alpha
Last edited by voodik on Thu Nov 24, 2022 11:51 pm, edited 1 time in total.
These users thanked the author voodik for the post (total 6):
sigmich (Fri Nov 25, 2022 2:58 am) • istanbulls (Fri Nov 25, 2022 5:02 pm) • zyssai (Fri Nov 25, 2022 6:53 pm) • odroid (Fri Nov 25, 2022 7:04 pm) • joerg (Sun Nov 27, 2022 4:02 am) • profixit (Tue Nov 29, 2022 5:18 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

*reserved
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

Thanks for the new version, nice work.

I can't add Extra Strage, other than that I haven't encountered any problems. Thanks again...

User avatar
zyssai
Posts: 566
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 225 times
Been thanked: 94 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by zyssai »

None of all my phones have Android 13.

You're amazing :twisted:
Will test it soon ;)

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Fri Nov 25, 2022 5:06 pm
Thanks for the new version, nice work.

I can't add Extra Strage, other than that I haven't encountered any problems. Thanks again...
Edit /vendor/etc/fstab.odroidn2 add encryptable=true for sd and usb items

Code: Select all

# Android fstab file.
#<src>                                                  <mnt_point>         <type>    <mnt_flags and options>                       <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/misc       /misc               emmc      defaults      defaults
/dev/block/data       /data               ext4      noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic    wait,check,quota,formattable,reservedsize=32M
/dev/block/cache      /cache              ext4      noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic    wait,check,formattable
/devices/*.sd/mmc_host/sd*  auto          auto       defaults     voldmanaged=sdcard1:auto,encryptable=true
/devices/*dwc3/xhci-hcd.0.auto/usb?/*/host*/target*/block/sd*  auto             auto      defaults                       voldmanaged=usb:auto,encryptable=true
/devices/*dwc3/xhci-hcd.0.auto/usb?/*/host*/target*/block/sr*  auto             auto      defaults                       voldmanaged=sr0:auto,encryptable=true
/dev/block/loop     auto                loop      defaults                                  voldmanaged=loop:auto
#/dev/block/param    /mnt/vendor/param                ext4      noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic    wait,check,encryptable=footer,quota,formattable
# Add for zram. zramsize can be in numeric (byte) , in percent
/dev/block/zram0     /mnt/vendor/swap_zram0             swap      defaults                             wait,zramsize=268435456
Then reboot and check
fstab.odroidn2.txt
(1.59 KiB) Downloaded 4 times
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

I tried it now with the N2L and a VU7C. Backlight is working but touch screen not.
Is there any special setting needed to enable touch screen? I have already display_vu7c in overlays.
These users thanked the author joerg for the post:
zyssai (Sun Nov 27, 2022 6:03 am)

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

joerg wrote:
Sun Nov 27, 2022 4:02 am
I tried it now with the N2L and a VU7C. Backlight is working but touch screen not.
Is there any special setting needed to enable touch screen? I have already display_vu7c in overlays.
I will check, i did not merge latest kernel changes.
These users thanked the author voodik for the post:
joerg (Sun Nov 27, 2022 4:48 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

I can confirm that my app GpioShutdownService works, but need to install Magisk and edit the /vendor/etc/public.libraries.txt and put libwiringPi.so.
@voodik, would you please be so kind and add this in next releases of all your LOS17...20?
These users thanked the author joerg for the post:
zyssai (Sun Nov 27, 2022 5:30 pm)

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

Another thing: With the VU7C I need to rotate the screen for 180°, there is a setting for that in OdroidSettings. But when I use screenshot it rotates back to 0° and I have to go again into OdroidSettings to rotate it back to 180°.
Is there not an option to rotate it during u-boot process? Like it is on the M1 with VU8M?

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

N2P, Kodi does not have multi-channel audio, FYI!

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Sun Nov 27, 2022 11:01 pm
N2P, Kodi does not have multi-channel audio, FYI!
Connect device to your TV and post output of

Code: Select all

cat /sys/class/amhdmitx/amhdmitx0/aud_cap

Code: Select all

dumpsys media.audio_policy
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

joerg wrote:
Sun Nov 27, 2022 7:04 pm
Another thing: With the VU7C I need to rotate the screen for 180°, there is a setting for that in OdroidSettings. But when I use screenshot it rotates back to 0° and I have to go again into OdroidSettings to rotate it back to 180°.
Is there not an option to rotate it during u-boot process? Like it is on the M1 with VU8M?
Edit /odm/etc/build.prop change
ro.surface_flinger.primary_display_orientation=ORIENTATION_180
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

joerg wrote:
Sun Nov 27, 2022 4:02 am
I tried it now with the N2L and a VU7C. Backlight is working but touch screen not.
Is there any special setting needed to enable touch screen? I have already display_vu7c in overlays.
How you connect vu7c to N2L ? J6 pin on vu7c don't allow connect my display to N2L
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

joerg wrote:
Sun Nov 27, 2022 4:53 pm
I can confirm that my app GpioShutdownService works, but need to install Magisk and edit the /vendor/etc/public.libraries.txt and put libwiringPi.so.
@voodik, would you please be so kind and add this in next releases of all your LOS17...20?
I will add it to versions which will updated, 16,17 version development suspended now because out of space on my drives.
BTW adb shell have root access, you don't need install Magisk to modify something.
These users thanked the author voodik for the post (total 2):
joerg (Sun Nov 27, 2022 11:47 pm) • profixit (Tue Nov 29, 2022 5:18 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

voodik wrote:
Sun Nov 27, 2022 11:32 pm
How you connect vu7c to N2L ? J6 pin on vu7c don't allow connect my display to N2L
I use a 2x20 pin header with extra large pins to extend the distance.
photo_2022-11-27_15-46-00.jpg
photo_2022-11-27_15-46-00.jpg (154.25 KiB) Viewed 376 times

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

I got it! Need to remove uart0 from dtb overlay settings. Now touch works.
Pins 29 and 31 are used by ttyS1 when uart0 is set. But this pins are used also for touch screen.
These users thanked the author joerg for the post (total 2):
voodik (Mon Nov 28, 2022 12:22 am) • zyssai (Mon Nov 28, 2022 5:12 am)

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

joerg wrote:
Mon Nov 28, 2022 12:12 am
I got it! Need to remove uart0 from dtb overlay settings. Now touch works.
Pins 29 and 31 are used by ttyS1 when uart0 is set. But this pins are used also for touch screen.
Glad to hear it problem solved.
Here is a build for N2L with BSP latest kernel changes and libwiringPi.so in public.libraries.txt
https://drive.google.com/file/d/1oz_b4A ... sp=sharing
These users thanked the author voodik for the post:
joerg (Mon Nov 28, 2022 12:54 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
joerg
Posts: 1729
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 155 times
Been thanked: 332 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by joerg »

voodik wrote:
Sun Nov 27, 2022 11:31 pm
Edit /odm/etc/build.prop change
ro.surface_flinger.primary_display_orientation=ORIENTATION_180
This works better than rotation over OdroidSettings. Thank you. Now also boot animation is turned right.

User avatar
zyssai
Posts: 566
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 225 times
Been thanked: 94 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by zyssai »

Hi voodik.

In order to use keymatrix functionality, I need KeyMapper app to access Accessibility settings. But I have force close in settings/accessibility.

Do you know what can I do?

Thanks for your work ;)

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

zyssai wrote:
Tue Nov 29, 2022 3:15 am
Hi voodik.

In order to use keymatrix functionality, I need KeyMapper app to access Accessibility settings. But I have force close in settings/accessibility.

Do you know what can I do?

Thanks for your work ;)
Because you don't have Bluetooth ))
Fixed Settings app
https://drive.google.com/file/d/159kAT1 ... share_link

Code: Select all

adb remount
adb push Settings.apk /system/system_ext/priv-app/Settings/
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

voodik wrote:
Sun Nov 27, 2022 11:30 pm
istanbulls wrote:
Sun Nov 27, 2022 11:01 pm
N2P, Kodi does not have multi-channel audio, FYI!
Connect device to your TV and post output of

Code: Select all

cat /sys/class/amhdmitx/amhdmitx0/aud_cap

Code: Select all

dumpsys media.audio_policy
hi @voodik, sorry for the late reply.
first i learned to use adb shell, i am very newbie to android.
It's too bad there isn't a tutorial on the forum or I couldn't find it.

Code: Select all

odroidn2:/ # cat /sys/class/amhdmitx/amhdmitx0/aud_cap
CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48 kHz, 16 bit
odroidn2:/ # dumpsys media.audio_policy
Supported System Usages:
  AUDIO_USAGE_CALL_ASSISTANT
UID Policy:
        mObserverRegistered=True
        Assistants UIDs:
                No UIDs present.
        Active Assistants UIDs:
                No UIDs present.
        Accessibility UIDs:
                No UIDs present.
        Input Method Service UID=10078
        Is RTT Enabled: False
AudioCommandThread: 0x7864f48180
- Commands:
   Command Time        Wait pParam
  Last Command
   01      000762.929  0    0x7864fb5880
OutputCommandThread: 0x7864f482c0
- Commands:
   Command Time        Wait pParam
  Last Command
   09      000769.622  0    0x78650234a0

AudioPolicyManager Dump: 0x7864f51600
 Primary Output I/O handle: 13
 Phone state: AUDIO_MODE_NORMAL
 Force use for communications: 0
 Force use for media: 0
 Force use for record: 0
 Force use for dock: 8
 Force use for system: 0
 Force use for HDMI system audio: 0
 Force use for encoded surround output: 0
 Force use for vibrate ringing: 0
 TTS output not available
 Master mono: off
 Communication Strategy id: 14
 Config source: /vendor/etc/audio_policy_configuration.xml

 Available output devices (1):
  1. Port ID: 2; "Speaker"; {AUDIO_DEVICE_OUT_SPEAKER, @:}
     Encapsulation modes: 0, metadata types: 0
   - Profiles (1):
      1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
         AUDIO_ENCAPSULATION_TYPE_NONE
     - gains:
       Gain 1:
       - mode: 00000001
       - channel_mask: 00000000
       - min_value: -8400 mB
       - max_value: 4000 mB
       - default_value: 0 mB
       - step_value: 100 mB
       - min_ramp_ms: 0 ms
       - max_ramp_ms: 0 ms

 Available input devices (1):
  1. Port ID: 5; "Remote Submix In"; {AUDIO_DEVICE_IN_REMOTE_SUBMIX, @:0}
     Encapsulation modes: 0, metadata types: 0
   - Profiles (1):
      1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
         sampling rates: 48000
         channel masks: 0x000c
         AUDIO_ENCAPSULATION_TYPE_NONE

 Hardware modules (5):
  1. Handle: 10; "primary"
   - Output MixPorts (3):
      1. "primary output"; 0x0002 (AUDIO_OUTPUT_FLAG_PRIMARY)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 48000
             channel masks: 0x0003
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (6):
        1. Port ID: 2; "Speaker"; {AUDIO_DEVICE_OUT_SPEAKER, @:}
           Encapsulation modes: 0, metadata types: 0
        2. "Wired Headset"; {AUDIO_DEVICE_OUT_WIRED_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
        3. "Wired Headphones"; {AUDIO_DEVICE_OUT_WIRED_HEADPHONE, @:}
           Encapsulation modes: 0, metadata types: 0
        4. "BT SCO"; {AUDIO_DEVICE_OUT_BLUETOOTH_SCO, @:}
           Encapsulation modes: 0, metadata types: 0
        5. "BT SCO Headset"; {AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
        6. "HDMI Out"; {AUDIO_DEVICE_OUT_HDMI, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 1
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
      2. "tunnel pcm"; 0x0041 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_HW_AV_SYNC)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 32000, 44100, 48000
             channel masks: 0x0003
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "HDMI Out"; {AUDIO_DEVICE_OUT_HDMI, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
      3. "multichannel output"; 0x0001 (AUDIO_OUTPUT_FLAG_DIRECT)
       - Profiles (1):
          1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "HDMI Out"; {AUDIO_DEVICE_OUT_HDMI, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Input MixPorts (1):
      1. "primary input"; 0x0000 (AUDIO_INPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
             channel masks: 0x000c, 0x0010
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (4):
        1. "Built-In Mic"; {AUDIO_DEVICE_IN_BUILTIN_MIC, @:}
           Encapsulation modes: 0, metadata types: 0
        2. "BT SCO Headset Mic"; {AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
        3. "Wired Headset Mic"; {AUDIO_DEVICE_IN_WIRED_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
        4. "Built-In Back Mic"; {AUDIO_DEVICE_IN_BACK_MIC, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Declared devices (10):
    1. Port ID: 2; "Speaker"; {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
       - gains:
         Gain 1:
         - mode: 00000001
         - channel_mask: 00000000
         - min_value: -8400 mB
         - max_value: 4000 mB
         - default_value: 0 mB
         - step_value: 100 mB
         - min_ramp_ms: 0 ms
         - max_ramp_ms: 0 ms
    2. "Wired Headset"; {AUDIO_DEVICE_OUT_WIRED_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 48000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    3. "Wired Headphones"; {AUDIO_DEVICE_OUT_WIRED_HEADPHONE, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 48000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    4. "BT SCO"; {AUDIO_DEVICE_OUT_BLUETOOTH_SCO, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 8000, 16000
           channel masks: 0x0001
           AUDIO_ENCAPSULATION_TYPE_NONE
    5. "BT SCO Headset"; {AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 8000, 16000
           channel masks: 0x0001
           AUDIO_ENCAPSULATION_TYPE_NONE
    6. "HDMI Out"; {AUDIO_DEVICE_OUT_HDMI, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 48000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    7. "Built-In Mic"; {AUDIO_DEVICE_IN_BUILTIN_MIC, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
           channel masks: 0x000c, 0x0010, 0x0030
           AUDIO_ENCAPSULATION_TYPE_NONE
    8. "BT SCO Headset Mic"; {AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 8000, 16000
           channel masks: 0x0010
           AUDIO_ENCAPSULATION_TYPE_NONE
    9. "Wired Headset Mic"; {AUDIO_DEVICE_IN_WIRED_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
           channel masks: 0x000c, 0x0010, 0x0030
           AUDIO_ENCAPSULATION_TYPE_NONE
    10. "Built-In Back Mic"; {AUDIO_DEVICE_IN_BACK_MIC, @:}
        Encapsulation modes: 0, metadata types: 0
      - Profiles (1):
         1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
            sampling rates: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            channel masks: 0x000c, 0x0010, 0x0030
            AUDIO_ENCAPSULATION_TYPE_NONE
   - Audio Routes (7):
      1. Mix; Sink: "HDMI Out"
         Sources: "primary output", "tunnel pcm", "multichannel output"
      2. Mix; Sink: "Speaker"
         Sources: "primary output", "BT SCO Headset Mic"
      3. Mix; Sink: "BT SCO"
         Sources: "primary output", "BT SCO Headset Mic"
      4. Mix; Sink: "BT SCO Headset"
         Sources: "primary output", "BT SCO Headset Mic"
      5. Mix; Sink: "Wired Headset"
         Sources: "primary output", "BT SCO Headset Mic"
      6. Mix; Sink: "Wired Headphones"
         Sources: "primary output", "BT SCO Headset Mic"
      7. Mix; Sink: "primary input"
         Sources: "Built-In Mic", "Built-In Back Mic", "Wired Headset Mic", "BT SCO Headset Mic"
  2. Handle: 0; "a2dp"
   - Input MixPorts (1):
      1. "a2dp input"; 0x0000 (AUDIO_INPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 44100, 48000
             channel masks: 0x000c, 0x0010
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "BT A2DP In"; {AUDIO_DEVICE_IN_BLUETOOTH_A2DP, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Declared devices (1):
    1. "BT A2DP In"; {AUDIO_DEVICE_IN_BLUETOOTH_A2DP, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 44100, 48000
           channel masks: 0x000c, 0x0010
           AUDIO_ENCAPSULATION_TYPE_NONE
   - Audio Routes (1):
      1. Mix; Sink: "a2dp input"
         Sources: "BT A2DP In"
  3. Handle: 18; "usb"
   - Output MixPorts (2):
      1. "usb_accessory output"; 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 44100
             channel masks: 0x0003
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "USB Host Out"; {AUDIO_DEVICE_OUT_USB_ACCESSORY, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
      2. "usb_device output"; 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (2):
        1. "USB Device Out"; {AUDIO_DEVICE_OUT_USB_DEVICE, @:}
           Encapsulation modes: 0, metadata types: 0
        2. "USB Headset Out"; {AUDIO_DEVICE_OUT_USB_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Input MixPorts (1):
      1. "usb_device input"; 0x0000 (AUDIO_INPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (2):
        1. "USB Device In"; {AUDIO_DEVICE_IN_USB_DEVICE, @:}
           Encapsulation modes: 0, metadata types: 0
        2. "USB Headset In"; {AUDIO_DEVICE_IN_USB_HEADSET, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Declared devices (5):
    1. "USB Host Out"; {AUDIO_DEVICE_OUT_USB_ACCESSORY, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 44100
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    2. "USB Device Out"; {AUDIO_DEVICE_OUT_USB_DEVICE, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
    3. "USB Headset Out"; {AUDIO_DEVICE_OUT_USB_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
    4. "USB Device In"; {AUDIO_DEVICE_IN_USB_DEVICE, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
    5. "USB Headset In"; {AUDIO_DEVICE_IN_USB_HEADSET, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
   - Audio Routes (4):
      1. Mix; Sink: "USB Host Out"
         Sources: "usb_accessory output"
      2. Mix; Sink: "USB Device Out"
         Sources: "usb_device output"
      3. Mix; Sink: "USB Headset Out"
         Sources: "usb_device output"
      4. Mix; Sink: "usb_device input"
         Sources: "USB Device In", "USB Headset In"
  4. Handle: 26; "r_submix"
   - Output MixPorts (1):
      1. "r_submix output"; 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 48000
             channel masks: 0x0003
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "Remote Submix Out"; {AUDIO_DEVICE_OUT_REMOTE_SUBMIX, @:0}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Input MixPorts (1):
      1. "r_submix input"; 0x0000 (AUDIO_INPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 48000
             channel masks: 0x000c
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. Port ID: 5; "Remote Submix In"; {AUDIO_DEVICE_IN_REMOTE_SUBMIX, @:0}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Declared devices (2):
    1. "Remote Submix Out"; {AUDIO_DEVICE_OUT_REMOTE_SUBMIX, @:0}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 48000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    2. Port ID: 5; "Remote Submix In"; {AUDIO_DEVICE_IN_REMOTE_SUBMIX, @:0}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 48000
           channel masks: 0x000c
           AUDIO_ENCAPSULATION_TYPE_NONE
   - Audio Routes (2):
      1. Mix; Sink: "Remote Submix Out"
         Sources: "r_submix output"
      2. Mix; Sink: "r_submix input"
         Sources: "Remote Submix In"
  5. Handle: 34; "bluetooth"
   - Output MixPorts (2):
      1. "a2dp output"; 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (3):
        1. "BT A2DP Out"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, @:}
           Encapsulation modes: 0, metadata types: 0
        2. "BT A2DP Headphones"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, @:}
           Encapsulation modes: 0, metadata types: 0
        3. "BT A2DP Speaker"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
      2. "hearing aid output"; 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
       - Profiles (1):
          1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
             sampling rates: 16000, 24000
             channel masks: 0x0003
             AUDIO_ENCAPSULATION_TYPE_NONE
       - Supported devices (1):
        1. "BT Hearing Aid Out"; {AUDIO_DEVICE_OUT_HEARING_AID, @:}
           Encapsulation modes: 0, metadata types: 0
       - maxOpenCount: 1; curOpenCount: 0
       - maxActiveCount: 1; curActiveCount: 0
       - recommendedMuteDurationMs: 0 ms
   - Declared devices (4):
    1. "BT A2DP Out"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 44100, 48000, 88200, 96000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    2. "BT A2DP Headphones"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 44100, 48000, 88200, 96000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    3. "BT A2DP Speaker"; {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; AUDIO_FORMAT_PCM_16_BIT (0x1)
           sampling rates: 44100, 48000, 88200, 96000
           channel masks: 0x0003
           AUDIO_ENCAPSULATION_TYPE_NONE
    4. "BT Hearing Aid Out"; {AUDIO_DEVICE_OUT_HEARING_AID, @:}
       Encapsulation modes: 0, metadata types: 0
     - Profiles (1):
        1. ""; [dynamic format][dynamic channels][dynamic rates]; AUDIO_FORMAT_DEFAULT (0x0)
           AUDIO_ENCAPSULATION_TYPE_NONE
   - Audio Routes (4):
      1. Mix; Sink: "BT A2DP Out"
         Sources: "a2dp output"
      2. Mix; Sink: "BT A2DP Headphones"
         Sources: "a2dp output"
      3. Mix; Sink: "BT A2DP Speaker"
         Sources: "a2dp output"
      4. Mix; Sink: "BT Hearing Aid Out"
         Sources: "hearing aid output"

 Outputs (1):
  1. Port ID: 1; I/O handle: 13; Latency: 42; 0x0002 (AUDIO_OUTPUT_FLAG_PRIMARY)
     AUDIO_FORMAT_PCM_16_BIT; 48000; Channel mask: 0x3
     Devices: {AUDIO_DEVICE_OUT_SPEAKER, @:}
     Global active count: 0
   - Product Strategies (2):
      id 18: - ActivityCount: 0, StopTime: 759245486902,
      id 19: - ActivityCount: 0, StopTime: 82791411913,
   - Volume Activities (14):
      id 1: - ActivityCount: 0, StopTime: 0, , Volume: -30.800, MuteCount: 00
      id 2: - ActivityCount: 0, StopTime: 0, , Volume: -4.800, MuteCount: 00
      id 4: - ActivityCount: 0, StopTime: 0, , Volume: -18.000, MuteCount: 00
      id 5: - ActivityCount: 0, StopTime: 0, , Volume: -11.118, MuteCount: 00
      id 6: - ActivityCount: 0, StopTime: 0, , Volume: -33.100, MuteCount: 00
      id 7: - ActivityCount: 0, StopTime: 759245486902, , Volume: -8.700, MuteCount: 00
      id 8: - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
      id 9: - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
      id 10: - ActivityCount: 0, StopTime: 0, , Volume: -8.700, MuteCount: 00
      id 11: - ActivityCount: 0, StopTime: 82791411913, , Volume: -11.118, MuteCount: 00
      id 12: - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 01
      id 13: - ActivityCount: 0, StopTime: 0, , Volume: -11.879, MuteCount: 00
      id 20: - ActivityCount: 0, StopTime: 0, , Volume: -32.525, MuteCount: 00
      id 23: - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
   - AudioTrack clients (1):
      1. Port ID: 16; Session ID: 65; uid 1000; State: Inactive
         AUDIO_FORMAT_PCM_16_BIT; 44100; Channel mask: 0x3
         Attributes: { Content type: AUDIO_CONTENT_TYPE_SONIFICATION Usage: AUDIO_USAGE_ASSISTANCE_SONIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0xc00 Tags:  }
         Stream: 1; Flags: 00000004; Refcount: 0
         DAP Primary Mix: 0x0

 Inputs (0):

 Total Effects CPU: 0.000000 MIPS, Total Effects memory: 0 KB, Max memory used: 1 KB

 Audio Patches (1):
  1. owner uid 1041; handle 23; af handle 28
     [src  1] Mix Port ID: 1; I/O handle: 13;
     [sink 1] Device Port ID: 2; {AUDIO_DEVICE_OUT_SPEAKER, @:}

 Audio Policy Mix:

 Audio sources (0):
 AllowedCapturePolicies:

Policy Engine dump:
  Product Strategies dump:
    -STRATEGY_PHONE (id: 14)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 13 stream: AUDIO_STREAM_VOICE_CALL
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 3 stream: AUDIO_STREAM_BLUETOOTH_SCO
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x4 Tags:  }

    -STRATEGY_SONIFICATION (id: 15)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 10 stream: AUDIO_STREAM_RING
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 2 stream: AUDIO_STREAM_ALARM
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ALARM Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_ENFORCED_AUDIBLE (id: 16)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 5 stream: AUDIO_STREAM_ENFORCED_AUDIBLE
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x1 Tags:  }

    -STRATEGY_ACCESSIBILITY (id: 17)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 1 stream: AUDIO_STREAM_ACCESSIBILITY
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_SONIFICATION_RESPECTFUL (id: 18)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_EVENT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_MEDIA (id: 19)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 20 stream: AUDIO_STREAM_ASSISTANT
        Attributes: { Content type: AUDIO_CONTENT_TYPE_SPEECH Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_MEDIA Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_GAME Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Any }
       Group: 11 stream: AUDIO_STREAM_SYSTEM
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_SONIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_DTMF (id: 21)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 4 stream: AUDIO_STREAM_DTMF
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_CALL_ASSISTANT (id: 22)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 23 stream: AUDIO_STREAM_CALL_ASSISTANT
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_CALL_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -STRATEGY_TRANSMITTED_THROUGH_SPEAKER (id: 24)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 12 stream: AUDIO_STREAM_TTS
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x8 Tags:  }
       Group: 12 stream: AUDIO_STREAM_TTS
        Attributes: { Content type: AUDIO_CONTENT_TYPE_ULTRASOUND Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -rerouting (id: 25)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 9 stream: AUDIO_STREAM_REROUTING
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VIRTUAL_SOURCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }

    -patch (id: 26)
      Selected Device: {AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 8 stream: AUDIO_STREAM_PATCH
        Attributes: { Any }

  Device role per product strategy dump:

  Device role per capture preset dump:

  Volume Groups dump:
    -AUDIO_STREAM_ACCESSIBILITY (id: 1)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ACCESSIBILITY(10)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          01         15         0002 : 06, 0400 : 07, 40000000 : 06,


    -AUDIO_STREAM_ALARM (id: 2)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ALARM(4)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ALARM Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          01         07         0002 : 06, 40000000 : 06,


    -AUDIO_STREAM_BLUETOOTH_SCO (id: 3)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_BLUETOOTH_SCO(6)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x4 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -4200),  ( 33, -2800),  ( 66, -1400),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -4200),  ( 33, -2800),  ( 66, -1400),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 07, 40000000 : 07,


    -AUDIO_STREAM_DTMF (id: 4)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_DTMF(8)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 05, 0400 : 07, 40000000 : 05,


    -AUDIO_STREAM_ENFORCED_AUDIBLE (id: 5)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ENFORCED_AUDIBLE(7)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x1 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 05, 40000000 : 05,


    -AUDIO_STREAM_MUSIC (id: 6)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_MUSIC(3)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_MEDIA Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_GAME Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Any }
       DEVICE_CATEGORY_HEADSET : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         25         0002 : 08, 0400 : 11, 40000000 : 08,


    -AUDIO_STREAM_NOTIFICATION (id: 7)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_NOTIFICATION(5)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_EVENT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 05, 40000000 : 05,


    -AUDIO_STREAM_PATCH (id: 8)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_PATCH(13)
       Attributes: { Any }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 00,


    -AUDIO_STREAM_REROUTING (id: 9)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_REROUTING(12)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VIRTUAL_SOURCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 08,


    -AUDIO_STREAM_RING (id: 10)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_RING(2)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 05, 40000000 : 05,


    -AUDIO_STREAM_SYSTEM (id: 11)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_SYSTEM(1)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_SONIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 05, 40000000 : 05,


    -AUDIO_STREAM_TTS (id: 12)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_TTS(9)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x8 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_ULTRASOUND Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -9600),  (100, -9600) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -9600),  (100, -9600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -9600),  (100, -9600) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 05, 0400 : 07, 40000000 : 05,


    -AUDIO_STREAM_VOICE_CALL (id: 13)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_VOICE_CALL(0)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -4200),  ( 33, -2800),  ( 66, -1400),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          01         05         0002 : 03, 40000000 : 03,


    -AUDIO_STREAM_ASSISTANT (id: 20)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ASSISTANT(11)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_SPEECH Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 05, 0400 : 07, 40000000 : 05,


    -AUDIO_STREAM_CALL_ASSISTANT (id: 23)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_CALL_ASSISTANT(14)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_CALL_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 08,

Allow playback capture log:
  Package manager errors: 0
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.location.fused
  - uid= 1000, allowPlaybackCapture=true , packageName=android
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.localtransport
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.inputdevices
  - uid= 1000, allowPlaybackCapture=false, packageName=org.lineageos.lineageparts
  - uid= 1000, allowPlaybackCapture=true , packageName=com.voodik.bgservices
  - uid= 1000, allowPlaybackCapture=true , packageName=com.hardkernel.odroid.settings
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.dynsystem
  - uid= 1000, allowPlaybackCapture=true , packageName=com.voodik.vmiracast
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.providers.settings
  - uid= 1000, allowPlaybackCapture=true , packageName=org.lineageos.lineagesettings
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.server.telecom
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.keychain
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.settings
  - uid= 1000, allowPlaybackCapture=true , packageName=lineageos.platform
  - uid= 1000, allowPlaybackCapture=true , packageName=com.android.wallpaperbackup
  - uid=10092, allowPlaybackCapture=true , packageName=com.android.systemui

IAudioPolicyService binder call profile
2 setDeviceConnectionState n=8 ave=26.0537 std=22.2313 min=2.551 max=54.579
3 getDeviceConnectionState n=48 ave=0.283062 std=0.702831 min=0.03 max=4.632
6 setForceUse n=10 ave=1.1846 std=2.17883 min=0.014 max=7.075
8 getOutput n=8 ave=0.209625 std=0.0491323 min=0.114 max=0.263
17 initStreamVolume n=12 ave=0.0679167 std=0.0193412 min=0.046 max=0.108
18 setStreamVolumeIndex n=407 ave=0.686548 std=2.71156 min=0.165 max=54.034
20 setVolumeIndexForAttributes n=4 ave=0.42425 std=0.0246357 min=0.404 max=0.454
22 getMaxVolumeIndexForAttributes n=17 ave=0.0237647 std=0.013636 min=0.014 max=0.06
23 getMinVolumeIndexForAttributes n=17 ave=0.0188824 std=0.00537218 min=0.013 max=0.033
25 getDevicesForAttributes n=224 ave=0.148272 std=0.181928 min=0.04 max=2.515
31 isStreamActive n=4 ave=0.04925 std=0.0129196 min=0.032 max=0.063
32 isStreamActiveRemotely n=4 ave=0.07875 std=0.0191898 min=0.065 max=0.107
39 setSupportedSystemUsages n=1 ave=0.083 min=0.083 max=0.083
41 getOffloadSupport n=8 ave=0.201875 std=0.293619 min=0.059 max=0.918
43 listAudioPorts n=76 ave=0.451303 std=0.616014 min=0.011 max=3.62
47 listAudioPatches n=56 ave=0.148321 std=0.318636 min=0.014 max=1.963
49 registerClient n=7 ave=0.232143 std=0.372772 min=0.073 max=1.077
50 setAudioPortCallbacksEnabled n=11 ave=0.023 std=0.0106207 min=0.01 max=0.041
51 setAudioVolumeGroupCallbacksEnabled n=7 ave=0.0234286 std=0.0149984 min=0.012 max=0.05
62 setMasterMono n=3 ave=0.585667 std=0.947831 min=0.024 max=1.68
64 getStreamVolumeDB n=16 ave=0.048625 std=0.024977 min=0.018 max=0.097
70 setActiveAssistantServicesUids n=2 ave=0.109 std=0.127279 min=0.019 max=0.199
71 setA11yServicesUids n=2 ave=0.044 std=0.00424264 min=0.041 max=0.047
72 setCurrentImeUid n=1 ave=0.042 min=0.042 max=0.042
73 isHapticPlaybackSupported n=1 ave=0.068 min=0.068 max=0.068
75 listAudioProductStrategies n=13 ave=0.355538 std=0.424946 min=0.169 max=1.719
76 getProductStrategyFromAudioAttributes n=11 ave=0.0674545 std=0.0169845 min=0.034 max=0.098
77 listAudioVolumeGroups n=1 ave=0.277 min=0.277 max=0.277
79 setRttEnabled n=2 ave=0.0155 std=0.000707108 min=0.015 max=0.016
80 isCallScreenModeSupported n=1 ave=0.025 min=0.025 max=0.025
82 removeDevicesRoleForStrategy n=4 ave=0.0585 std=0.0242418 min=0.026 max=0.084
89 registerSoundTriggerCaptureStateListener n=1 ave=0.126 min=0.126 max=0.126
1599295570 SYSPROPS_TRANSACTION n=1 ave=0.247 min=0.247 max=0.247
odroidn2:/ #
----
Also, I found /vendor/etc/fstab.odroidn2 but could not replace it with nano. I am getting this error message.
[ File '/vendor/etc/fstab.odroidn2' is unwritable ]

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Tue Nov 29, 2022 4:12 am
voodik wrote:
Sun Nov 27, 2022 11:30 pm
istanbulls wrote:
Sun Nov 27, 2022 11:01 pm
N2P, Kodi does not have multi-channel audio, FYI!
Connect device to your TV and post output of

Code: Select all

cat /sys/class/amhdmitx/amhdmitx0/aud_cap

Code: Select all

dumpsys media.audio_policy
hi @voodik, sorry for the late reply.
first i learned to use adb shell, i am very newbie to android.
It's too bad there isn't a tutorial on the forum or I couldn't find it.

Code: Select all

odroidn2:/ # cat /sys/class/amhdmitx/amhdmitx0/aud_cap
CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48 kHz, 16 bit
Your device(TV) reporting it isn't capable to use HDMI audio passthrough, only 2ch PCM is available.
Also, I found /vendor/etc/fstab.odroidn2 but could not replace it with nano. I am getting this error message.
[ File '/vendor/etc/fstab.odroidn2' is unwritable ]
run

Code: Select all

adb shell
remount
nano /vendor/etc/fstab.odroidn2
reboot
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

thanks for your answer,

"nano /vendor/etc/fstab.odroidn2" OK.

Same N2P, same TV, same AVR, other Android versions don't have this problem. (lineageos 16-17-18-19;ATV etc.)

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Tue Nov 29, 2022 5:04 am
thanks for your answer,

"nano /vendor/etc/fstab.odroidn2" OK.

Same N2P, same TV, same AVR, other Android versions don't have this problem. (lineageos 16-17-18-19;ATV etc.)
So your AVR reporting wrong capabilities. Android 13 depending right capabilities report.
Use older version because I think I not find solution to fast.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Tue Nov 29, 2022 5:04 am
thanks for your answer,

"nano /vendor/etc/fstab.odroidn2" OK.

Same N2P, same TV, same AVR, other Android versions don't have this problem. (lineageos 16-17-18-19;ATV etc.)
BTW from Android TV I found settings which manually enable surround formats, there is no UI in non ATV settings, so you need set it via adb shell.

Code: Select all

settings put global encoded_surround_output 3
settings put global encoded_surround_output_enabled_formats 18,5,6,7,8,14
Formats integer values
https://github.com/LineageOS/android_fr ... .java#L280
These users thanked the author voodik for the post:
odroid (Tue Nov 29, 2022 9:56 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

Thanks @voodik for all the info and help
Extra Storage issue fixed. 16gb eMMC is not enough after a while. I don't have bigger emmc and such material is very difficult and very expensive to get in my country.
I advertise SSD as extra storage it works fine.
To solve this problem, I installed android on the SSd. It works fine for a few weeks and then slows down, I couldn't figure out why it happened. Now I'm showing the SSD as extra storage, I'm satisfied.
-------
As for multi-channel audio, 7.1, 5.1 audio.
I shot two videos, LineageOS 19.1 and LineageOS 19.1 ATV.
True-HD and DTS-HD MA work perfectly, but on LineageOS 20 I have to turn off True-HD and DTS-HD MA, it makes no sound. When I turn this option off, I can get 5.1 DD or 5.1 DTS sound.
I made the last addition you suggested, nothing changed.
They announced that there will be no CoreElec support for Odroid-N2L. If LineageOS 20 runs smoothly as it did in version 19.1, it could be a very good or even more CoreElec alternative.

Last edited by istanbulls on Wed Nov 30, 2022 4:49 am, edited 4 times in total.

Slaminger
Posts: 348
Joined: Tue Jul 16, 2019 12:30 am
languages_spoken: English, French
ODROIDs: XU4, N2, N2+, C2, C4, OGA, OGA-BE, H2+, OGS, OGST
Location: Canada
Has thanked: 30 times
Been thanked: 120 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by Slaminger »

I just downloaded the image, will test it out later today! looking forward to it. thanks for this :)

User avatar
zyssai
Posts: 566
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 225 times
Been thanked: 94 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by zyssai »

voodik wrote:
Tue Nov 29, 2022 3:54 am
zyssai wrote:
Tue Nov 29, 2022 3:15 am
Hi voodik.

In order to use keymatrix functionality, I need KeyMapper app to access Accessibility settings. But I have force close in settings/accessibility.

Do you know what can I do?

Thanks for your work ;)
Because you don't have Bluetooth ))
Fixed Settings app
https://drive.google.com/file/d/159kAT1 ... share_link

Code: Select all

adb remount
adb push Settings.apk /system/system_ext/priv-app/Settings/
Thanks, I have successfully updated settings.apk
Unfortunately, the app is disabled in accessibility settings and I have a security lock.
Do you think it's app related?

Image

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Tue Nov 29, 2022 9:50 pm
Thanks @voodik for all the info and help
Extra Storage issue fixed. 16gb eMMC is not enough after a while. I don't have bigger emmc and such material is very difficult and very expensive to get in my country.
I advertise SSD as extra storage it works fine.
To solve this problem, I installed android on the SSd. It works fine for a few weeks and then slows down, I couldn't figure out why it happened. Now I'm showing the SSD as extra storage, I'm satisfied.
-------
As for multi-channel audio, 7.1, 5.1 audio.
I shot two videos, LineageOS 19.1 and LineageOS 19.1 ATV.
True-HD and DTS-HD MA work perfectly, but on LineageOS 20 I have to turn off True-HD and DTS-HD MA, it makes no sound. When I turn this option off, I can get 5.1 DD or 5.1 DTS sound.
I made the last addition you suggested, nothing changed.
They announced that there will be no CoreElec support for Odroid-N2L. If LineageOS 20 runs smoothly as it did in version 19.1, it could be a very good or even more CoreElec alternative.

Did you gate same result on Odroid N2? Please check it and let me know.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
istanbulls
Posts: 815
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 481 times
Been thanked: 150 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by istanbulls »

voodik wrote:
Wed Nov 30, 2022 4:34 am
istanbulls wrote:
Tue Nov 29, 2022 9:50 pm
Thanks @voodik for all the info and help
Extra Storage issue fixed. 16gb eMMC is not enough after a while. I don't have bigger emmc and such material is very difficult and very expensive to get in my country.
I advertise SSD as extra storage it works fine.
To solve this problem, I installed android on the SSd. It works fine for a few weeks and then slows down, I couldn't figure out why it happened. Now I'm showing the SSD as extra storage, I'm satisfied.
-------
As for multi-channel audio, 7.1, 5.1 audio.
I shot two videos, LineageOS 19.1 and LineageOS 19.1 ATV.
True-HD and DTS-HD MA work perfectly, but on LineageOS 20 I have to turn off True-HD and DTS-HD MA, it makes no sound. When I turn this option off, I can get 5.1 DD or 5.1 DTS sound.
I made the last addition you suggested, nothing changed.
They announced that there will be no CoreElec support for Odroid-N2L. If LineageOS 20 runs smoothly as it did in version 19.1, it could be a very good or even more CoreElec alternative.

Did you gate same result on Odroid N2? Please check it and let me know.
All of my tests are on N2p. I don't have Odroid-N2L.

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

zyssai wrote:
Wed Nov 30, 2022 2:30 am
voodik wrote:
Tue Nov 29, 2022 3:54 am
zyssai wrote:
Tue Nov 29, 2022 3:15 am
Hi voodik.

In order to use keymatrix functionality, I need KeyMapper app to access Accessibility settings. But I have force close in settings/accessibility.

Do you know what can I do?

Thanks for your work ;)
Because you don't have Bluetooth ))
Fixed Settings app
https://drive.google.com/file/d/159kAT1 ... share_link

Code: Select all

adb remount
adb push Settings.apk /system/system_ext/priv-app/Settings/
Thanks, I have successfully updated settings.apk
Unfortunately, the app is disabled in accessibility settings and I have a security lock.
Do you think it's app related?

Image
Its strange.
acc_mdr.png
acc_mdr.png (117.39 KiB) Viewed 130 times
I don't know why you get restricted settings, try wipe and install from scratch.
Here is updated version with fixed Settings
https://drive.google.com/file/d/11kd8RS ... sp=sharing
These users thanked the author voodik for the post:
zyssai (Wed Nov 30, 2022 5:44 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2291
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 74 times
Been thanked: 555 times
Contact:

Re: [ROM][LineageOS 20.0][Android 13][voodik] for the ODROID-N2/N2L

Post by voodik »

istanbulls wrote:
Wed Nov 30, 2022 4:40 am
voodik wrote:
Wed Nov 30, 2022 4:34 am
istanbulls wrote:
Tue Nov 29, 2022 9:50 pm
Thanks @voodik for all the info and help
Extra Storage issue fixed. 16gb eMMC is not enough after a while. I don't have bigger emmc and such material is very difficult and very expensive to get in my country.
I advertise SSD as extra storage it works fine.
To solve this problem, I installed android on the SSd. It works fine for a few weeks and then slows down, I couldn't figure out why it happened. Now I'm showing the SSD as extra storage, I'm satisfied.
-------
As for multi-channel audio, 7.1, 5.1 audio.
I shot two videos, LineageOS 19.1 and LineageOS 19.1 ATV.
True-HD and DTS-HD MA work perfectly, but on LineageOS 20 I have to turn off True-HD and DTS-HD MA, it makes no sound. When I turn this option off, I can get 5.1 DD or 5.1 DTS sound.
I made the last addition you suggested, nothing changed.
They announced that there will be no CoreElec support for Odroid-N2L. If LineageOS 20 runs smoothly as it did in version 19.1, it could be a very good or even more CoreElec alternative.

Did you gate same result on Odroid N2? Please check it and let me know.
All of my tests are on N2p. I don't have Odroid-N2L.
So lets test some fix.
Download and push this lib to Odroid
https://drive.google.com/file/d/11l_ehF ... sp=sharing

Code: Select all

adb remount
adb push audio.primary.odroidn2.so /vendor/lib/hw/
adb reboot
Restore manual surround settings

Code: Select all

adb shell
settings put global encoded_surround_output 3
settings put global encoded_surround_output_enabled_formats 18,5,6,7,8,14
Open Kodi, go to Passthrough section, reset Passthrough settings and check for right Passthrough output device after reset (AudioTrack (IEC), Kodi IEC packer) as on screenshot
Inkedpassthr.jpg
Inkedpassthr.jpg (111.39 KiB) Viewed 42 times
Now in Kodi Passthrough format list True-HD and DTS-HD will be available, enable them then check.
And let me know is it working.
These users thanked the author voodik for the post:
odroid (Wed Nov 30, 2022 5:28 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 6 guests