-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Rep/fake airpods pro 2 USB-C battery incorrect #248
Comments
Your screenshot shows that the raw data from your device contains the identifier This is the official identifier for AirPods Pro 2 (non USB-C). The "fake" part is only detectable because the fake ones send data that is shorter than normal: capod/app-common/src/main/java/eu/darken/capod/pods/core/apple/misc/FakeAirPodsPro2.kt Lines 137 to 140 in 1ebb231
Hm, I don't think there is a solution here. Your pods are just sending the wrong identifier.
Technically possible, but just adding the raw hex data is not enough. You'd need to map all the values too. In the end it would be too complicated and too much work for a handful of people that would use it. And many more people would use that don't know how to use it, be confused and cause support work.
Copying another similar class is a good start. I usually then also copy the test for that class, add in the raw data that I got, and then adjust the test to see if the mapping makes sense or needs to be adjusted.
Hm should compile if you just download Android studio and open the project, what error did you get? |
Ah, kind of a bummer to not be able to see battery which is completely understandable
I'm not home right now but in my search history I have the error I got and I think it would be usefull to walk you through what I tried. |
I have to rephrase that. The identifier has no impact on the battery levels. Though if the battery levels are not changing, then this is also an issue with the fake pods. Or does the raw data ever change for the battery levels? In your screenshot the |
The raw data doesn't change at all, L and R pods are 100% with case stuck on 70% I am particularly confused because for some reason a secondary iOS device I have shows correct readings though. I can be sure because when my case is 20% or lower, I see an orange light on the case instead of green or white I have no clue how iPhones communicate with real or fake airpods though which is why I thought maybe capod would be the app to check battery levels since it has real and fake device selections in settings. Sorry for the inconvenience. |
This particular instance is confusing, my fake airpods pro usb-c model gets detected as a fake non usb-c (since there isn't an option for a fake pro 2 usbc) but reactions and battery levels don't work.
In this case, I don't really care about reactions but I feel like i can't live without a working widget for battery.
To try and solve this issue, I decided to download android studio and independently create a new class for kotlin to add my own raw hex data (since it wasn't the same as the hex in here) tried to get BLE data but failed (as i have no clue how), I still tried to compile but I got stuck there aswell as I have little experience with android development.
Now I'm not too sure how you can help me exactly so I'll add a screenshot below.
Screenshot_20250108-190058_CAPod
I also believe that if you manage to create a function in the app where people can add hex data to the function, they can add support for their devices without having you to recompile the app but, as I mentioned, I probably can't speak on the subject since I don't know what it takes to build such app.
Many thanks,
King.
The text was updated successfully, but these errors were encountered: