Commit Graph
10062 Commits
Author SHA1 Message Date
José Rebelo c47e830056 Xiaomi: Watchface upload (wip, does not work) 2023-11-25 21:16:53 +00:00
José Rebelo 82a264cd65 Xiaomi: Improve emoji mapping efficiency 2023-11-25 21:16:53 +00:00
José Rebelo b0d3fe6a51 Xiaomi: Set device language 2023-11-25 21:16:53 +00:00
José Rebelo 48e149aefe Xiaomi: Refactor XiaomiCharacteristic to improve logging and ordering
Fixes a potential race condition on initialization, since the chunked
commands were being scheduled on a separate transaction builder, which
would be scheduled to be written before the initialization.
2023-11-25 21:16:53 +00:00
José Rebelo 1acd3ac5fd Xiaomi: Remove usage of TransactionBuilders 2023-11-25 21:16:53 +00:00
José Rebelo e2d7798e36 Xiaomi: Refuse delete of active watchface 2023-11-25 21:16:53 +00:00
José Rebelo 1b645f44d7 Xiaomi: Keep only watchface tab in app management 2023-11-25 21:16:53 +00:00
José Rebelo a895a6aae7 Xiaomi: Set and delete watchfaces 2023-11-25 21:16:53 +00:00
José Rebelo 7fb81b6e0d Xiaomi: Fix edge cases in chunked math 2023-11-25 21:16:53 +00:00
José Rebelo fa72820e5a Mi Band 8: Map emoji (inefficient) 2023-11-25 21:16:53 +00:00
José Rebelo 81ca617601 Xiaomi: Prevent NPE when not yet connected 2023-11-25 21:16:53 +00:00
José Rebelo ce1d095074 Xiaomi: Add encrypted and plaintext coordinators 2023-11-25 21:16:53 +00:00
José Rebelo 4e680cfcce Mi Band 8: List watchface in app management 2023-11-25 21:16:53 +00:00
Andreas ShimokawaandJosé Rebelo 9ea7b48e0c Xiaomi: Add outdoor running subtype to enum. 2023-11-25 21:16:53 +00:00
Andreas ShimokawaandJosé Rebelo 7a3139fce0 Xiaomi: remove call notification if call has been taken on the phone or rejected, ended.
For in-call notification if those exist, it would not work.
2023-11-25 21:16:53 +00:00
José Rebelo acba91d3c5 Xiaomi: Refactor daily parser slightly 2023-11-25 21:16:53 +00:00
José Rebelo d3eb69fcf7 Mi Band 8: Send gps to watch (wip) 2023-11-25 21:16:53 +00:00
José Rebelo 0c27772bb5 Xiaomi: Map elliptical workout 2023-11-25 21:16:52 +00:00
José Rebelo 453ce5eedb Mi Band 8: Map some notification icon messages 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo fce2dfa0ca Xiaomi: fix incoming calls on Mi Watch lite (shoud not break Mi Band 8) 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo b09879dd31 Mi Watch Lite: disable some features that do not exist on the watch 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo 9e1a6ca76a Xiaomi: change order of enabling notifications 2023-11-25 21:16:52 +00:00
José Rebelo 04434f4a55 Mi Watch Lite: Attempt to fix activity parsing 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo cd2d7d144e Xiaomi: Fix unencrypted support again 2023-11-25 21:16:52 +00:00
José Rebelo 8333b8b8d8 Mi Band 8: Sleep details parser (very very wip) 2023-11-25 21:16:52 +00:00
José Rebelo aead518e05 Xiaomi: Implement daily activity parsing 2023-11-25 21:16:52 +00:00
José Rebelo 5dd746f2d6 Xiaomi: Ack activity before parsing for now 2023-11-25 21:16:52 +00:00
José Rebelo afaf0baa79 Xiaomi: Cache firmware version 2023-11-25 21:16:52 +00:00
José Rebelo db57072dd3 Xiaomi: Make activity file ID types readable 2023-11-25 21:16:52 +00:00
José Rebelo 5316a7dcf8 Xiaomi: Send device update intent on activity fetch start and finish 2023-11-25 21:16:52 +00:00
José Rebelo e40b703678 Xiaomi: Dump activity data to storage 2023-11-25 21:16:52 +00:00
José Rebelo bcefc39ad8 Mi Band 8: Restore setting of firmware version before initializing 2023-11-25 21:16:52 +00:00
José Rebelo 1b6bb20890 Xiaomi: Move initialization logic to base class 2023-11-25 21:16:52 +00:00
José Rebelo d35bcef406 Mi Band 8: Fix activity fetching 2023-11-25 21:16:52 +00:00
José Rebelo d66de2f94f Xiaomi: Fix activity file id encoding 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo 01a552e0f7 Mi Watch Lite: Do not set firmware version to ... during connect 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo 7de94432d0 Mi Watch Lite: authenticate via use XiaomiAuthService, handle subtype 5 send user id reply
This makes device info and battery status work since AuthService calls phase2Initialize()
2023-11-25 21:16:52 +00:00
José Rebelo f3d6be2f96 Xiaomi: Handle chunked nack 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo a19318c5bd Mi Watch Lite: more small fixes for non-encrypted path 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo b103b4f3e4 Mi Watch Lite: fix unencrypted support after refactoring common Xiaomi code 2023-11-25 21:16:52 +00:00
José Rebelo 1920968fba Mi Watch Lite: Attempt to fix plaintext support 2023-11-25 21:16:52 +00:00
José Rebelo d953fd5b5b Mi Watch Lite: Refactor to use XiaomiCharacteristic 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo 84dff5b8df fix initialization 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo cdef620700 Mi Watch Lite: use xiaomi protobuf for sending user id 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo d3fa3e2c05 Xiaomi Protocol: Add userId auth command 2023-11-25 21:16:52 +00:00
Andreas ShimokawaandJosé Rebelo 7803581922 Mi Watch Lite test based on miband 8 branch
very much wip
2023-11-25 21:16:52 +00:00
José Rebelo b5a1846e49 Mi Band 8: Fix chunked encryption 2023-11-25 21:16:52 +00:00
José Rebelo 544909a970 Mi Band 8: Activity fetching basics 2023-11-25 21:16:52 +00:00
José Rebelo 4662da3b82 Mi Band 8: Fix chunked receive decryption 2023-11-25 21:16:52 +00:00
José Rebelo 57c7a083aa Mi Band 8: Set display items (wip, chunked is broken) 2023-11-25 21:16:52 +00:00