mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Pebble: when reading app fetch uuid, do not switch to little endian too early
This commit is contained in:
parent
0d0b3a87e1
commit
f0924716fc
@ -966,12 +966,12 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
}
|
||||
|
||||
private GBDeviceEventAppManagement decodeAppFetch(ByteBuffer buf) {
|
||||
buf.order(ByteOrder.LITTLE_ENDIAN);
|
||||
byte command = buf.get();
|
||||
if (command == 0x01) {
|
||||
long uuid_high = buf.getLong();
|
||||
long uuid_low = buf.getLong();
|
||||
UUID uuid = new UUID(uuid_high, uuid_low);
|
||||
buf.order(ByteOrder.LITTLE_ENDIAN);
|
||||
int app_id = buf.getInt();
|
||||
GBDeviceEventAppManagement fetchRequest = new GBDeviceEventAppManagement();
|
||||
fetchRequest.type = GBDeviceEventAppManagement.EventType.INSTALL;
|
||||
|
Loading…
Reference in New Issue
Block a user