-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can't detect headphones whose name has been changed #6
Comments
Ah damn. On my LineageOS, this changes the Your mac is
Wait, so you have huawei or havoc custom rom? |
Yes, that's my headphones' mac address
This is another device, not my huawei phone. (However my huawei phone is also unlocked and rooted on emui 9 though, ready to flash something into it, exploring now) |
So, when you changed their name on huawei device, they changed it permanently?? Interesting... maybe there's some hidden api for that that we could use too 😁 |
Yes, requires specified system version of huawei/honor device (requires Magic UI ?, I changed the name on KOZ-AL00 running on Magic UI 4,which is my friend's phone. But I tried EMUI 10 and Harmony OS, none of them changed the device name but only name displayed on the device), and the name change is permanent, you can see it on another device just like Apple Airpods. |
Can you tell me where is the code for detecting headphones? I 'll try to fork and build one using my custom name 🤔 I barely know anything about flutter, but thanks to your actions I can build apks for me. Also I've found that when I reset my headphones by long press the button for 30s(which resets the name), Freebuddy can detect my headphones. Then I changed the name again, I'm still able to use Freebuddy as I didn't delete my headphones from the list. But if I re-pair the headphones (deleting device first), then I'll be unable to use Freebuddy again. |
brave of you! bulding should be straightforward, so shouldn't be a problem - here are the lines: FreeBuddy/lib/headphones/cubit/headphones_connection_cubit.dart Lines 34 to 35 in a145ac6
FreeBuddy/lib/headphones/huawei/otter/otter_constants.dart Lines 8 to 9 in a145ac6
you can just change
(something like that) |
In general, i will need to write some nicer algo that would read UUID advertisiments - tho this will require some messing with bluetooth apis (nothing pleasant 🤮 ) |
The headphones' name can be changed via setting on a HUAWEI phone. After the change Freebuddy cannot detect the headphones.
Maybe you can try detect through MAC address that belongs to HUAWEI.
System:Havoc OS on Android Q
The text was updated successfully, but these errors were encountered: