Skip to content

Instantly share code, notes, and snippets.

@d3m3vilurr
Last active August 26, 2022 00:49
Show Gist options
  • Save d3m3vilurr/b0f4ed38b42d9a0c0eeca1453217b2f8 to your computer and use it in GitHub Desktop.
Save d3m3vilurr/b0f4ed38b42d9a0c0eeca1453217b2f8 to your computer and use it in GitHub Desktop.
Fix LineageOS ANT+ HAL of MSM8996 devices

Update.zip

Just install antfix.zip on your recovery.

Manual

Copy libbt-vendor.so file to /system/vendor/lib64/. Tested Xiaomi Mi5 (gemini)

adb push libbt-vendor.so /sdcard/
adb shell
su
mount -o rw,remount /system
cp /sdcard/libbt-vendor.so /system/vendor/lib64/
chmod +r /system/vendor/lib64/libbt-vendor.so
mount -o ro,remount /system

If you install library, ANT Tester will print right Built-in firmware version.

If you want actual patch, please check this review request.

@screwfox
Copy link

I've flashed this on my mi5 running Oreo.. Ant tester still reports no built in ant. Any ideas?

@d3m3vilurr
Copy link
Author

i'm not used oreo yet.
if you use official miui or unofficial los15, maybe you need rebuilt binary or fix something..

@rkantos
Copy link

rkantos commented Feb 11, 2022

What's the state of ANT+ with the Xiaomi Mi5 nowadays? I'm trying to get ANT+ to work with Oneplus 3T (MSM8996 Pro).. OnePlus didn't include the ANT+ in the Android 9 update from 2019 while it was working in the previous versions of Oxygen OS (5.x.x / Android 8 )

@d3m3vilurr
Copy link
Author

I don't use official firmware, but it wouldn't work samely as your case.
at least, ANT+ of MI5 works well on lineageos 18.1(android 11) without any extra job.
it's just highly related their build configure.
so, firmware maker just do building with right configuration, ACT+ will be works very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment