[ROM][AOSP][4.4/6.0/7.1] Unlegacy Android Project

Search This thread

JucaTec

New member
Mar 2, 2015
4
0
Hi. I already tested some versions on my P5100. Finally, I put AOSP 7.1 2020, but I would like to know which version is lighter and does not crash?

Could it be for example 6.0 or 7.1, AOSP or LineageOS and its variations?

I just need it for internet, some light apps and PDF.

I know the hardware is old.

In the AOSP 7.1 2020 version, can I use Anykernel with overclocking? Which version is best in this case?

Thanks.
 

slybunda

Senior Member
May 6, 2010
793
73
anyone got a link to a version of youtube or vanced that actually works on this tablet?
shame livenettv is in same boat and doesnt work any more too.
 

slybunda

Senior Member
May 6, 2010
793
73
actually sorted this with youtube vanced v13.50
i thought this tablet ran stock kitkat 4.4.2 but double checked today and its running 4.2.2 jellybean. so thats lame.
need a version of livenettv now that runs on jellybean.
 

hamberthm

Member
Mar 19, 2018
14
3
Hi! I'll report a bug I hope somebody can fix. Bluetooth headsets in Call mode (with mic input) doesn't work. Any app using the BT headset in call mode will cause no audio output (it should be mono 8khz for call profile), nor mic input (also mono 8 khz i think).

Tested with many apps like Zoom, Google Duo, etc. This makes impossible to do videoconferencing or audio calls with connected BT Headphones, Earbuds, etc.

In these pandemic times, this is a dealbreaker for MANY people. I need the tablet to take online classes, so it would be awesome somebody can help.

Heres a Logcat when turning on BT Call Mode (headset profile) using the app "BTmono" to force it:

Code:
05-05 10:05:39.893   238 28015 I bt_a2dp_hw: start_audio_datapath: state 5
05-05 10:05:39.894   660  1003 W bt_btif : calculate_max_frames_per_packet Restricting AVDTP MTU size to 663
05-05 10:05:39.894   660   929 W bt_btif : bta_dm_rm_cback:3, status:7
05-05 10:05:39.919   540  1468 D BluetoothHeadset: startScoUsingVirtualVoiceCall()
05-05 10:05:39.921   660   929 I bt_hci_audio: set_audio_state handle:1 codec:0x1 state:3
05-05 10:05:39.922   660   929 D bt_hwcfg: hw_set_SCO_codec 0x1
05-05 10:05:39.948   660   909 I bt_hwcfg: SCO I2S interface change the sample rate to 8K
05-05 10:05:39.948   660   909 I bt_hwcfg: I2SPCM config {0x1, 0x1, 0x0, 0x1}
05-05 10:05:39.951   660   909 I bt_hwcfg: sco I2S/PCM config result 0 [0-Success, 1-Fail]
05-05 10:05:39.951   660   909 I bt_vendor: sco_audiostate_cb(status: 0)
05-05 10:05:40.646   660   994 D HeadsetStateMachine: Set NREC: 0 for device:00:02:3C:65:2E:F0
05-05 10:05:40.662   660   929 I bt_bta_av: bta_av_link_role_ok hndl:x41 role:0 conn_audio:x1 bits:1 features:x824b
05-05 10:05:40.662   660   929 W bt_btif : bta_dm_rm_cback:3, status:0
05-05 10:05:40.662   660   929 W bt_btif : bta_dm_rm_cback:3, status:7
05-05 10:05:40.662   238 28015 I bt_a2dp_hw: skt_connect: connect to /data/misc/bluedroid/.a2dp_data (sz 14336)
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: skt_connect: connected to stack fd = 14
05-05 10:05:40.663   238 28015 W AudioFlinger: write blocked for 770 msecs, 4 delayed writes, thread 0xb2d83dc0
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: out_set_parameters: state 1
05-05 10:05:40.663   238 28015 I hash_map_utils: key: 'a2dp_sink_address' value: '00:02:3C:65:2E:F0'
05-05 10:05:40.663   238 28015 I hash_map_utils: key: 'routing' value: '128'
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: suspend_audio_datapath: state 1
05-05 10:05:40.664   660  1003 W bt_btif : pcm bytes per tick 3528
05-05 10:05:40.664   238 28015 I bt_a2dp_hw: skt_disconnect: fd 14
05-05 10:05:40.664   238  2354 I bt_a2dp_hw: adev_set_parameters: state 5
05-05 10:05:40.664   238  2354 I bt_a2dp_hw: out_set_parameters: state 5
05-05 10:05:40.664   238  2354 I hash_map_utils: key: 'bt_headset_nrec' value: 'off'
05-05 10:05:40.666   660  1003 W bt_btif : calculate_max_frames_per_packet Restricting AVDTP MTU size to 663
05-05 10:05:40.664   660   758 I BluetoothA2dpServiceJni: bta2dp_audio_state_callback
05-05 10:05:40.668   660  1002 D A2dpStateMachine: Connected process message: 101
05-05 10:05:40.670   238   639 I bt_a2dp_hw: adev_set_parameters: state 5
05-05 10:05:40.670   238   639 I bt_a2dp_hw: out_set_parameters: state 5
05-05 10:05:40.670   238   639 I hash_map_utils: key: 'bt_headset_name' value: 'Sound Blaster JAM'
05-05 10:05:40.672   660  1002 D A2dpStateMachine: A2DP Playing state : device: 00:02:3C:65:2E:F0 State:11->10
05-05 10:05:40.674   238 28776 E audio_hw_primary: Leaving IN_CALL state, in_call=0, mode=3
05-05 10:05:40.685   660  1003 W bt_btif : poll : channel detached remotely
05-05 10:05:40.685   660  1004 E bt_btif : warning : no command pending, ignore ack
05-05 10:05:40.685   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.685   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.687   660   929 E bt_btif : bta_av_str_stopped:audio_open_cnt=1, p_data 9f47e988
05-05 10:05:40.687   660   929 W bt_btif : bta_dm_rm_cback:3, status:6
05-05 10:05:40.691   540   540 I Telecom : : mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION: [email protected]
05-05 10:05:40.691   540   540 I Telecom : : ==> new state: 12: [email protected]
05-05 10:05:40.700   540   891 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_BLUETOOTH=1002, arg1=0: BM.oR->[email protected]_0
05-05 10:05:40.704   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.704   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.704   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.704   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.704   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.704   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.724   660  1003 W bt_btif : btif_get_num_aa_frame_iteration() - Limiting frames to be sent from 20 to 14
05-05 10:05:40.724   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.724   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.724   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.724   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.724   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.724   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.735   540  4144 W AudioTrack: dead IAudioTrack, PCM, creating a new one from processAudioBuffer()
05-05 10:05:40.741   660   929 W bt_btif : bta_dm_rm_cback:3, status:6
05-05 10:05:40.742   660   758 I BluetoothA2dpServiceJni: bta2dp_audio_state_callback
05-05 10:05:40.743   660  1002 D A2dpStateMachine: Connected process message: 101
05-05 10:05:40.743   660  1003 E bt_btif : warning : no command pending, ignore ack
05-05 10:05:40.743   660  1003 W bt_btif : pcm bytes per tick 3528
05-05 10:05:40.746   660  1002 D A2dpStateMachine: A2DP Playing state : device: 00:02:3C:65:2E:F0 State:10->11
05-05 10:05:40.905   238   238 W AudioFlinger: createTrack_l(): mismatch between requested flags (00000004) and output flags (00000002)
05-05 10:05:40.914   540  4144 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 4146
05-05 10:05:40.914   540  4144 D AudioTrack: restoring track at end of static buffer
05-05 10:05:41.246   540  1624 W art     : Long monitor contention with owner Binder:540_11 (6132) at void com.android.server.audio.AudioService$VolumeStreamState.setAllIndexes(com.android.server.audio.AudioService$VolumeStreamState, java.lang.String)(AudioService.java:4106) waiters=0 in int com.android.server.audio.AudioService.getDevicesForStream(int, boolean) for 331ms
05-05 10:05:41.248   540   637 W art     : Long monitor contention with owner Binder:540_11 (6132) at void com.android.server.audio.AudioService$VolumeStreamState.setAllIndexes(com.android.server.audio.AudioService$VolumeStreamState, java.lang.String)(AudioService.java:4106) waiters=1 in void com.android.server.audio.AudioService$AudioHandler.setDeviceVolume(com.android.server.audio.AudioService$VolumeStreamState, int) for 329ms
05-05 10:05:41.251 28191 28191 I Choreographer: Skipped 80 frames!  The application may be doing too much work on its main thread.
05-05 10:05:41.254   681   781 I vol.Events: writeEvent level_changed STREAM_RING 5
05-05 10:05:41.260   681   781 I vol.Events: writeEvent level_changed STREAM_MUSIC 12
05-05 10:05:44.503  1244  1244 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.ads.service.CACHE pkg=com.google.android.gms }
05-05 10:05:46.681 28191 28203 I PlayCore: UID: [10084]  PID: [28191] PrewarmService : detach

I really hope somebody can help solve this! It´s present on all the 7 roms an even in 6 (tested also on RR 6).

Thanks!!
 
Hi! I'll report a bug I hope somebody can fix. Bluetooth headsets in Call mode (with mic input) doesn't work. Any app using the BT headset in call mode will cause no audio output (it should be mono 8khz for call profile), nor mic input (also mono 8 khz i think).

Tested with many apps like Zoom, Google Duo, etc. This makes impossible to do videoconferencing or audio calls with connected BT Headphones, Earbuds, etc.

In these pandemic times, this is a dealbreaker for MANY people. I need the tablet to take online classes, so it would be awesome somebody can help.

Heres a Logcat when turning on BT Call Mode (headset profile) using the app "BTmono" to force it:

Code:
05-05 10:05:39.893   238 28015 I bt_a2dp_hw: start_audio_datapath: state 5
05-05 10:05:39.894   660  1003 W bt_btif : calculate_max_frames_per_packet Restricting AVDTP MTU size to 663
05-05 10:05:39.894   660   929 W bt_btif : bta_dm_rm_cback:3, status:7
05-05 10:05:39.919   540  1468 D BluetoothHeadset: startScoUsingVirtualVoiceCall()
05-05 10:05:39.921   660   929 I bt_hci_audio: set_audio_state handle:1 codec:0x1 state:3
05-05 10:05:39.922   660   929 D bt_hwcfg: hw_set_SCO_codec 0x1
05-05 10:05:39.948   660   909 I bt_hwcfg: SCO I2S interface change the sample rate to 8K
05-05 10:05:39.948   660   909 I bt_hwcfg: I2SPCM config {0x1, 0x1, 0x0, 0x1}
05-05 10:05:39.951   660   909 I bt_hwcfg: sco I2S/PCM config result 0 [0-Success, 1-Fail]
05-05 10:05:39.951   660   909 I bt_vendor: sco_audiostate_cb(status: 0)
05-05 10:05:40.646   660   994 D HeadsetStateMachine: Set NREC: 0 for device:00:02:3C:65:2E:F0
05-05 10:05:40.662   660   929 I bt_bta_av: bta_av_link_role_ok hndl:x41 role:0 conn_audio:x1 bits:1 features:x824b
05-05 10:05:40.662   660   929 W bt_btif : bta_dm_rm_cback:3, status:0
05-05 10:05:40.662   660   929 W bt_btif : bta_dm_rm_cback:3, status:7
05-05 10:05:40.662   238 28015 I bt_a2dp_hw: skt_connect: connect to /data/misc/bluedroid/.a2dp_data (sz 14336)
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: skt_connect: connected to stack fd = 14
05-05 10:05:40.663   238 28015 W AudioFlinger: write blocked for 770 msecs, 4 delayed writes, thread 0xb2d83dc0
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: out_set_parameters: state 1
05-05 10:05:40.663   238 28015 I hash_map_utils: key: 'a2dp_sink_address' value: '00:02:3C:65:2E:F0'
05-05 10:05:40.663   238 28015 I hash_map_utils: key: 'routing' value: '128'
05-05 10:05:40.663   238 28015 I bt_a2dp_hw: suspend_audio_datapath: state 1
05-05 10:05:40.664   660  1003 W bt_btif : pcm bytes per tick 3528
05-05 10:05:40.664   238 28015 I bt_a2dp_hw: skt_disconnect: fd 14
05-05 10:05:40.664   238  2354 I bt_a2dp_hw: adev_set_parameters: state 5
05-05 10:05:40.664   238  2354 I bt_a2dp_hw: out_set_parameters: state 5
05-05 10:05:40.664   238  2354 I hash_map_utils: key: 'bt_headset_nrec' value: 'off'
05-05 10:05:40.666   660  1003 W bt_btif : calculate_max_frames_per_packet Restricting AVDTP MTU size to 663
05-05 10:05:40.664   660   758 I BluetoothA2dpServiceJni: bta2dp_audio_state_callback
05-05 10:05:40.668   660  1002 D A2dpStateMachine: Connected process message: 101
05-05 10:05:40.670   238   639 I bt_a2dp_hw: adev_set_parameters: state 5
05-05 10:05:40.670   238   639 I bt_a2dp_hw: out_set_parameters: state 5
05-05 10:05:40.670   238   639 I hash_map_utils: key: 'bt_headset_name' value: 'Sound Blaster JAM'
05-05 10:05:40.672   660  1002 D A2dpStateMachine: A2DP Playing state : device: 00:02:3C:65:2E:F0 State:11->10
05-05 10:05:40.674   238 28776 E audio_hw_primary: Leaving IN_CALL state, in_call=0, mode=3
05-05 10:05:40.685   660  1003 W bt_btif : poll : channel detached remotely
05-05 10:05:40.685   660  1004 E bt_btif : warning : no command pending, ignore ack
05-05 10:05:40.685   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.685   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.687   660   929 E bt_btif : bta_av_str_stopped:audio_open_cnt=1, p_data 9f47e988
05-05 10:05:40.687   660   929 W bt_btif : bta_dm_rm_cback:3, status:6
05-05 10:05:40.691   540   540 I Telecom : : mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION: [email protected]
05-05 10:05:40.691   540   540 I Telecom : : ==> new state: 12: [email protected]
05-05 10:05:40.700   540   891 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_BLUETOOTH=1002, arg1=0: BM.oR->[email protected]_0
05-05 10:05:40.704   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.704   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.704   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.704   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.704   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.704   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.724   660  1003 W bt_btif : btif_get_num_aa_frame_iteration() - Limiting frames to be sent from 20 to 14
05-05 10:05:40.724   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.724   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.724   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.724   660  1003 E bt_btif : UIPC_Read : channel 1 closed
05-05 10:05:40.724   660  1003 W bt_btif : ### UNDERFLOW :: ONLY READ 0 BYTES OUT OF 512 ###
05-05 10:05:40.724   660  1003 W bt_btif : btif_media_aa_prep_sbc_2_send underflow 5, 0
05-05 10:05:40.735   540  4144 W AudioTrack: dead IAudioTrack, PCM, creating a new one from processAudioBuffer()
05-05 10:05:40.741   660   929 W bt_btif : bta_dm_rm_cback:3, status:6
05-05 10:05:40.742   660   758 I BluetoothA2dpServiceJni: bta2dp_audio_state_callback
05-05 10:05:40.743   660  1002 D A2dpStateMachine: Connected process message: 101
05-05 10:05:40.743   660  1003 E bt_btif : warning : no command pending, ignore ack
05-05 10:05:40.743   660  1003 W bt_btif : pcm bytes per tick 3528
05-05 10:05:40.746   660  1002 D A2dpStateMachine: A2DP Playing state : device: 00:02:3C:65:2E:F0 State:10->11
05-05 10:05:40.905   238   238 W AudioFlinger: createTrack_l(): mismatch between requested flags (00000004) and output flags (00000002)
05-05 10:05:40.914   540  4144 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 4146
05-05 10:05:40.914   540  4144 D AudioTrack: restoring track at end of static buffer
05-05 10:05:41.246   540  1624 W art     : Long monitor contention with owner Binder:540_11 (6132) at void com.android.server.audio.AudioService$VolumeStreamState.setAllIndexes(com.android.server.audio.AudioService$VolumeStreamState, java.lang.String)(AudioService.java:4106) waiters=0 in int com.android.server.audio.AudioService.getDevicesForStream(int, boolean) for 331ms
05-05 10:05:41.248   540   637 W art     : Long monitor contention with owner Binder:540_11 (6132) at void com.android.server.audio.AudioService$VolumeStreamState.setAllIndexes(com.android.server.audio.AudioService$VolumeStreamState, java.lang.String)(AudioService.java:4106) waiters=1 in void com.android.server.audio.AudioService$AudioHandler.setDeviceVolume(com.android.server.audio.AudioService$VolumeStreamState, int) for 329ms
05-05 10:05:41.251 28191 28191 I Choreographer: Skipped 80 frames!  The application may be doing too much work on its main thread.
05-05 10:05:41.254   681   781 I vol.Events: writeEvent level_changed STREAM_RING 5
05-05 10:05:41.260   681   781 I vol.Events: writeEvent level_changed STREAM_MUSIC 12
05-05 10:05:44.503  1244  1244 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.ads.service.CACHE pkg=com.google.android.gms }
05-05 10:05:46.681 28191 28203 I PlayCore: UID: [10084]  PID: [28191] PrewarmService : detach

I really hope somebody can help solve this! It´s present on all the 7 roms an even in 6 (tested also on RR 6).

Thanks!!
Stop using 3rd party crap app than you can report again.
It's working, here normally (even on RR 5.8.4). Where did you find RR 6??
 

hamberthm

Member
Mar 19, 2018
14
3
Stop using 3rd party crap app than you can report again.
It's working, here normally (even on RR 5.8.4). Where did you find RR 6??

Well, sorry for the wrong terminology. I was referring to ResaurrectionRemix ROM on android 6 Marshmallow.

Sorry but for me it doesn't work. And I'm not the only one, the bug seems to be there since a long time. Check this post, it's exactly what's happening to me.

It's a Tab 2 model P5113TS 10.1".

What do you mean with "3rd party crap app"? Are you referring to btMono? I found it because it essentially forces Bluetooth call mode, and it saves me from filtering from a massive log from Zoom, Duo or any of the affected apps. Still, if you want me to do that, I can give it a go, I didn't try it yet. Audio after enabling btMono doesn't work so I think the problem is the same.
 

hamberthm

Member
Mar 19, 2018
14
3
Does the BT headset work fine with other devices?
Yup, they work normal with other devices. Also tried several, SounBlaster JAM, Galaxy Buds+, and JBL E25BT.


P5113TS?? Sorry ig im nitpicking or i dont know if there are more variants is it P5113 or is the TS there

That is correct, it is GT-P5113TS. Maybe a rare variant with hardware variations? I'll double check later just in case as I don't have it at reach at the moment, but I did a quick Google search and there's mention of it online with that model number.

EDIT: The TS is for the color, "Titanium Silver".

I really want to help solve this, so please I'll do any tests, logs, or whatever you ask me. It would be awesome to have this functionality, I really like the device, it is not dead for me yet, and I use it a lot!

THANKS!!
 
Last edited:
  • Like
Reactions: Mighty

Mighty

Senior Member
  • Mar 17, 2018
    346
    62
    Samsung Galaxy Tab 2
    You said you had to use an external app for force the bluetooth mode to call mode right, maybe the hardware doesnt support it properly hence it isnt available directly in the software settings. Also the 5113 model doesnt have sim card slot and thus no call mode?
     

    hamberthm

    Member
    Mar 19, 2018
    14
    3
    You said you had to use an external app for force the bluetooth mode to call mode right, maybe the hardware doesnt support it properly hence it isnt available directly in the software settings. Also the 5113 model doesnt have sim card slot and thus no call mode?

    I did use that app to make the logcat easier to obtain so I can post it in here, so I can flip a switch and copy the log instead of digging thru the Zoom log looking for the time the program switched Bluetooth codecs (or tried to switch). I thought it should force the same codecs Duo or Zoom use when in a videocall. I don't know why it is such a big deal. I can redo the log with Zoom anytime...

    I don't know what isn't clear really. I can't use bluetooth headsets and do videocalls with Skype/Duo/Zoom. It goes silent. That is the problem!!

    And no, it isn't the 3G model and doesn't have a SIM slot. But it does have bluetooth, so VoIP/Videocall apps should work with headsets...
     
    Last edited:

    Arc android

    Senior Member
  • I did use that app to make the logcat easier to obtain so I can post it in here, so I can flip a switch and copy the log instead of digging thru the Zoom log looking for the time the program switched Bluetooth codecs (or tried to switch). I thought it should force the same codecs Duo or Zoom use when in a videocall. I don't know why it is such a big deal. I can redo the log with Zoom anytime...

    I don't know what isn't clear really. I can't use bluetooth headsets and do videocalls with Skype/Duo/Zoom. It goes silent. That is the problem!!

    And no, it isn't the 3G model and doesn't have a SIM slot. But it does have bluetooth, so VoIP/Videocall apps should work with headsets...
    Well I told you actually that the roms we use today are no longer updated, so if this is a bug it can't be fixed. Do you have a normal headset ????
    I have a gt p3100 and many times I connect bluetooth speaker to it and it works well. Maybe that's a problem with espresso wifi roms ?????
     

    Mighty

    Senior Member
  • Mar 17, 2018
    346
    62
    Samsung Galaxy Tab 2
    I did use that app to make the logcat easier to obtain so I can post it in here, so I can flip a switch and copy the log instead of digging thru the Zoom log looking for the time the program switched Bluetooth codecs (or tried to switch). I thought it should force the same codecs Duo or Zoom use when in a videocall. I don't know why it is such a big deal. I can redo the log with Zoom anytime...

    I don't know what isn't clear really. I can't use bluetooth headsets and do videocalls with Skype/Duo/Zoom. It goes silent. That is the problem!!

    And no, it isn't the 3G model and doesn't have a SIM slot. But it does have bluetooth, so VoIP/Videocall apps should work with headsets...
    Well yeah those are valid points, no clues what is going wrong, sorry i cannot test it myself :(
    I understand that the problem is the bt headset isnt giving any audio. I dunno if this is a hacky fix, but maybe you can use the inbuilt mic of tab2 and the headset as a speaker, that way u can talk as well as get audio? Another option is to switch roms as said by Arc android.
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 1
      Moving on and getting more technical, I did a new logcat using the actual Zoom app as a test. This is the output:

      Code:
      05-18 12:01:10.825   537  3053 D BluetoothHeadset: startScoUsingVirtualVoiceCall()
      05-18 12:01:10.828   647   919 I bt_hci_audio: set_audio_state handle:1 codec:0x1 state:3
      05-18 12:01:10.828   647   919 D bt_hwcfg: hw_set_SCO_codec 0x1
      05-18 12:01:10.833   647   896 I bt_hwcfg: SCO I2S interface change the sample rate to 8K
      05-18 12:01:10.833   647   896 I bt_hwcfg: I2SPCM config {0x1, 0x1, 0x0, 0x1}
      05-18 12:01:10.841   647   896 I bt_hwcfg: sco I2S/PCM config result 0 [0-Success, 1-Fail]
      05-18 12:01:10.841   647   896 I bt_vendor: sco_audiostate_cb(status: 0)
      05-18 12:01:10.894   647   919 W bt_btm  : BTM Remote does not support 3-EDR eSCO
      05-18 12:01:10.916   647   930 D HeadsetStateMachine: Set NREC: 1 for device:00:11:67:BD:2B:8E
      05-18 12:01:10.917   238   634 I bt_a2dp_hw: adev_set_parameters: state 5
      05-18 12:01:10.917   238   634 I bt_a2dp_hw: out_set_parameters: state 5
      05-18 12:01:10.917   238   634 I hash_map_utils: key: 'bt_headset_nrec' value: 'on'
      05-18 12:01:10.921   238   238 I bt_a2dp_hw: adev_set_parameters: state 5
      05-18 12:01:10.921   238   238 I bt_a2dp_hw: out_set_parameters: state 5
      05-18 12:01:10.921   238   238 I hash_map_utils: key: 'bt_headset_name' value: 'JBL E25BT'
      05-18 12:01:10.925   537   537 I Telecom : : mReceiver: HEADSET_AUDIO_STATE_CHANGED_ACTION: [email protected]
      05-18 12:01:10.925   537   537 I Telecom : : ==> new state: 12: [email protected]
      05-18 12:01:10.930   537   877 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_BLUETOOTH=1002, arg1=0: BM.oR->[email protected]_0
      05-18 12:01:11.892   238   317 D audio_hw_primary: select_output_device: AUDIO_DEVICE_OUT_ALL
      05-18 12:01:12.065   238  4760 I audio_hw_primary: in_reconfigure_channels: config_changed 0 effect 0x0
      05-18 12:01:12.069   238  4760 D audio_hw_primary: select_input_device: AUDIO_DEVICE_IN_DEFAULT
      05-18 12:01:12.245   238  4760 D audio_hw_primary: select_input_device: AUDIO_DEVICE_IN_DEFAULT
      05-18 12:01:12.424   238   317 D AudioFlinger: mixer(0xacc83f40) throttle end: throttle time(11)
      05-18 12:01:12.506   238   317 D AudioFlinger: mixer(0xacc83f40) throttle end: throttle time(54)
      05-18 12:01:12.614   238   317 D AudioFlinger: mixer(0xacc83f40) throttle end: throttle time(52)
      05-18 12:01:17.955   647   919 E bt_btif : bta_dm_pm_btm_status hci_status=36

      It seems like the Bluetooth driver is correctly negotiating the codecs and SCO (voice) modes. The things that caught my attention are the device selections, after the device has been set up:

      05-18 12:01:11.892 238 317 D audio_hw_primary: select_output_device: AUDIO_DEVICE_OUT_ALL
      05-18 12:01:12.065 238 4760 I audio_hw_primary: in_reconfigure_channels: config_changed 0 effect 0x0
      05-18 12:01:12.069 238 4760 D audio_hw_primary: select_input_device: AUDIO_DEVICE_IN_DEFAULT

      Reading the code from audio_hw.c, it seems to me that the functions select_output_device and select_input_device are selecting AUDIO_DEVICE_OUT_ALL and AUDIO_DEVICE_IN_DEFAULT respectively when they should be selecting AUDIO_DEVICE_OUT_ALL_SCO and AUDIO_DEVICE_IN_ALL_SCO.

      I'll be posting updates as I move along. But please, if any dev can give me a hand it would be awesome, I'm a total noob on Android or anything besides knowing a little C++.

      Just a little update, I spent the last week and a half setting up a build enviroment and debugging the damn thing. Android is totally a first for me. The bug is not solved yet, but I did fix another one and identified even one more:

      - Debug messages from select_output_device and select_input_device turned out to be misleading but OK. Problem was the device being selected is defines as 0x20 (AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET) and it was not falling into the switch category for AUDIO_DEVICE_IN_ALL_SCO. This was no problem as it was simply giving out log messages, the device still is being correcly passed to select_devices.

      - The select_devices function is where most of the problems were:

      - In some point, function do_input_standby was modified to select device 0x0 (AUDIO_DEVICE_NONE). This causes problems in select_devices because some logic operations it performs where affected by the 0 value, causing it to select one or more wrong devices from the devices structs, making wrong and multiple audio routes.

      - Another bug is that, for some reason, OUT and IN devices having the same integer indentifiers where being selected at the same time. For example AUDIO_DEVICE_OUT_WIRED_HEADSET with identifier 0x4 was being selected in conjunction with it´s input cousin AUDIO_DEVICE_IN_BUILTIN_MIC, also 0x4 (but with the input bit turned on).

      --------------------------------------------

      After solving these issues (sorta, not finished yet), I managed to get the code to finally select the SCO-OUT and SCO-IN routes defined in the XML files for TinyHAL. Unfortunately, this didn't solve the issue as I can´t still hear or transmit anything in SCO mode.

      I'm currently checking the routes being used, wich requires me to read and understand how the WM1811 chip works and how it routes digital audio through it´s interfaces, that will take me a while. Any help will as always be appreciated.

      No errors from the CODEC driver are being recorded in the kernel log buffer.

      Will keep you updated.
    • 80
      The Unlegacy-Android Project​
      Introduction
      Unlegacy-Android started out as the OMAP4-AOSP Project. It was created in late 2015 in order to maintain a clean and organized place for pure AOSP support for various OMAP4 devices, such as the Galaxy Nexus and the Samsung Galaxy Tab 2 series. Over time this evolved to support more than just these devices, but still maintains its roots of supporting "legacy" devices that no longer receive "official" updates: hence Unlegacy-Android was born.

      Installation
      It's important that /system needs to be unmounted before installing the ROM - some recoveries tend to leave it mounted after performing operations on it.

      If you're planning to install GApps, be sure to read the second post!

      Aside from these, installation and upgrading is no different than on other ROMs. As usual, 'espresso' goes for all non-3g versions, 'espresso3g' goes for all 3g versions.

      Problems
      - Occasional sound stuttering in some games
      - No hwrotation (meaning the boot animation is landscape on p31xx). I don't consider this as a problem, as autorotation will take effect after bootup anyways... and most 7" tablets, like the Nexus 7 work this way as well.
      - The 7.1 builds are experimental! Means: modem not working perfectly yet.

      If you notice anything else, be sure to report it in this thread. While I'm kind of busy, I usually read the thread and acknowledge the bug reports, even if I don't reply directly to them.

      Downloads
      See: http://builds.unlegacy-android.org
      Always use the latest TWRP, to flash Android 7.x, you must use TWRP 3.0.3-0 or newer.

      Features?
      There isn't much to say here - this is AOSP, if you install GApps, you pretty much get the same thing that's running on the Nexus devices. The aim of this project is to create a fast and stable ROM - although, one could use Xposed to add extra features.

      As usual, feedback is appreciated :)

      Want to support development? You can consider donating, I spent countless of hours with this :)

      XDA:DevDB Information
      Unlegacy Android Project, ROM for the Samsung Galaxy Tab 2

      Contributors
      Ziyan, Android-Andi
      Source Code: https://github.com/Unlegacy-Android

      ROM OS Version: 7.x Nougat
      ROM Firmware Required: The latest bootloader for your device.

      Version Information
      Status: Beta
      Current Stable Version: 4.4, 6.0

      Created 2016-07-03
      Last Updated 2017-10-22
      29
      GApps
      If you want to install GApps, we recommend Open GApps Nano or BaNkS GApps.

      An important note: as this is a pure AOSP ROM, installing GApps tends to be problematic: in order to try to avoid installation issues, be sure to install GApps immediately after installing the ROM, before booting the system for the first time. After the initial bootup finished, be sure to go into Settings -> Apps, and grant every permission to every Google application - most importantly, Google Play services.
      In the case of an upgrade, be sure to re-install the GApps package, as upgrading wipes /system. You shouldn't need to re-set the permissions afterwards.

      One more note. DO NOT set up your Google account until you grant all permissions, otherwise you will be stuck on the initial setup.

      Rooting
      You can flash either the latest SuperSU or OpenSource SuperUser to get rooted.
      25
      Good news: Bluetooth is now fixed as well, the 0119 nightly will include both the Bluetooth and audio fixes :)
      22
      The audio on only one speaker/headphone issue is now fixed, the fix is included in tomorrow's nightly :) next is bluetooth.
      21
      I completely forgot to show this off!
      View attachment 3862027
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone