-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth keeps stopping issue #5
Comments
pra-lx1 don't support android 13, pra is a-only. Can you confirm your phone model? |
sure. My phone is different but the behavior is quite similar. I have AGM
H3, it is MT6762V-based. I'm attaching my sysinfo.
[13eng.crossg.20221109.001316.json.txt](https://github.com/TrebleDroid/treble_experimentations/files/11638352/13eng.crossg.20221109.001316.json.txt)
|
BTW I trace Phh's changes and am going to test the new fixes soon.
Preferably when LOS-TD by Andy Yan is out.
|
@ildar latest fix for bluetooth crash literally has a if so it won't apply to you. |
The log is attached. I am sorry, the log contains some unrelated crashes. I decided to keep them all as I see two types of BT stack crashes.
Please note that I also suffer from phhusson#2413
Thanks a lot!!
[adb.logcat.txt](https://github.com/TrebleDroid/treble_experimentations/files/11642146/adb.logcat.txt)
|
is there anything useful in the log?
|
Can this help me?
TrebleDroid/platform_packages_modules_Bluetooth@44f470e
… I've just installed the latest TD based LOS by Andy and it still crashes.
|
I may have similar issues with Bluetooth and wireless earphones.
|
…chip declared but doesnt actually support
@ildar So, let's assume that sending "LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST" is the issue (I'm honestly not sure in this case), and let's tell Android that the chip doesn't actually support it. Looking for LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST in packages/modules/bluetooth, we end up with:
Looking at OP_CODE_MAPPING, we see it is referring to local_supported_commands_ So to tell Android this command is not supported, you should be able to do this: |
@phhusson ,
HUGE thank you for this detailed algorithm: it may help a lot to me or any other one willing to fix a broken BT stack.
I confirm I don't see LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST-related
crashes anymore.
But I still experience these:
05-21 20:15:44.685 21032 21032 F DEBUG : Abort message: 'assertion 'false' failed - Done waiting for debug information after HCI timeout (READ_RSSI)'
Any idea how to overcome this one?
|
@AndyCGYan ,
would you consider adding this patch
(0007-Add-properties-to-disable-some-features-commands-sta.patch) to your
LOS-light build? It seems effective and lightweight.
I couldn't quickly find its source, just see it in Releases (
https://github.com/TrebleDroid/treble_experimentations/releases/download/ci-20230718/patches-for-developers.zip
)
(I'm on LOS-TD now but having fp issues so want to get back to LOS-light).
|
LOS upstream merged a similar commit (albeit with less coverage), gated by a different property |
Indeed. Thanks a lot, I'll try that.
|
On Mon, Aug 21, 2023 at 1:58 PM Ildar Mulyukov wrote:
But I still experience these:
> 05-21 20:15:44.685 21032 21032 F DEBUG : Abort message: 'assertion 'false' failed - Done waiting for debug information after HCI timeout (READ_RSSI)'
Any idea how to overcome this one?
I am really sorry for this dump question. Actually READ_RSSI is just another command that needs to be masked and you already fully explained how to handle it.
So for anyone having similar situations, please use this to find the right codes:
https://github.com/TrebleDroid/platform_packages_modules_bluetooth/blob/android-13.0.0_r8-td/system/gd/hci/hci_packets.pdl
So in my case I need this:
# setprop persist.sys.bt.unsupported.commands 271,155
Or in LineageOS GSI:
# setprop bluetooth.hci.disabled_commands 271,155
Again, thank you so much, @phhusson !!
|
Though it's not 100% success story: I just got the SIGABRT again with
Abort message: 'assertion 'false' failed - Done waiting for debug
information after HCI timeout (READ_RSSI)'.
That's strange because I had `disabled_commands 271,155`
|
Could be because LOS's has less coverage - I'll note this and perhaps switch to PHH's commit in the next update. |
Andy, thanks a lot.
PHH's patch covers not just commands but features etc, true.
But that's doesn't matter in my case, I use just commands which are
supported equally. (I suspect the LOS guy simply picked the PHH's code and
put it in he's).
|
@ildar was this problem fixed in the end? |
unfortunately no,
#5 (comment)
|
Following up the phhusson#376
Current Behavior:
BT stack is crashing regularly.
To Reproduce
Smartphone (please complete the following information):
Additional context
To solve the problem there was the phhusson/platform_system_bt#1
But it changes nothing for my device.
The text was updated successfully, but these errors were encountered: