Does anyone know how to decompose the uniqueIdentifier in Toybox.System.DeviceSettings into the app's UUID and device ID? I only know that uniqueIdentifier is the combination of these two, but I have no idea about how they are composed.
Does anyone know how to decompose the uniqueIdentifier in Toybox.System.DeviceSettings into the app's UUID and device ID? I only know that uniqueIdentifier is the combination of these two, but I have no idea about how they are composed.
You can't, it's an UUID. It doesn't have information about either of it's "inputs"
It's likely encrypted with something like a private key so you can't do what you are trying to do. It's a security risk giving apps that detail They don't want apps to be able to collect device IDs for example.. If it wasn't the API would expose them directly. uniqueIdentifier was a way to ID an app and device without exposing anything
I don't think it has the info inside. It's some kind of hash. Think something like you create a string: id = deviceID + ":" + userId + ":" + appId, and then use it's md5 as uniqueIdentifier: md5(id).
It's not possible to "decrypt" it because it's not an encryption, just a hash function
Could be, but I doubt Garmin will ever say exactly how they do this. Again for the security aspect