Advertisement
Underworld1337

Untitled

Aug 6th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.55 KB | None | 0 0
  1. syntax = "proto3";
  2.  
  3. message Signature {
  4.  
  5.     message LocationFix {
  6.         string provider = 1; // "network", "gps", "fused", possibly others
  7.         uint64 timestamp_since_start = 2; // in ms
  8.         float latitude = 13;
  9.         float longitude = 14;
  10.         float unk20 = 20; // iOS only, possibly horizontal accuracy? (range seems to be -1 to +1)
  11.         float altitude = 21;
  12.         float unk22 = 22; // iOS only, possibly vertical accuracy? (range seems to be ~10-12)
  13.         uint64 unk26 = 26; // Usually 3 (possibly GPS status: 1 = no fix, 2 = acquiring/inaccurate, 3 = fix acquired)
  14.                            // On iOS there are some LocationFixes with unk26=1 and everything else empty
  15.         uint64 unk28 = 28; // Always 1 (if there is data at all)
  16.     }
  17.  
  18.     message Unknown5 {
  19.         uint64 unk1 = 1;
  20.         bytes unk2 = 2;
  21.         repeated fixed32 unk3 = 3;
  22.         repeated fixed32 unk4 = 4;
  23.         repeated fixed32 unk5 = 5;
  24.         bytes unk6 = 6;
  25.         bytes unk7 = 7;
  26.         bytes unk8 = 8;
  27.     }
  28.  
  29.     message SensorInfo {
  30.         uint64 timestamp_snapshot = 1; // in ms
  31.         double magnetometer_x = 3;
  32.         double magnetometer_y = 4;
  33.         double magnetometer_z = 5;
  34.         double angle_normalized_x = 6;
  35.         double angle_normalized_y = 7;
  36.         double angle_normalized_z = 8;
  37.         double accel_raw_x = 10;
  38.         double accel_raw_y = 11;
  39.         double accel_raw_z = 12;
  40.         double gyroscope_raw_x = 13;
  41.         double gyroscope_raw_y = 14;
  42.         double gyroscope_raw_z = 15;
  43.         double accel_normalized_x = 16;
  44.         double accel_normalized_y = 17;
  45.         double accel_normalized_z = 18;
  46.         uint64 accelerometer_axes = 19; // Always 3
  47.     }
  48.  
  49.     message DeviceInfo {
  50.         string device_id = 1; // Hex string
  51.         string android_board_name = 2;
  52.         string android_bootloader = 3;
  53.         string device_brand = 4; // On Android: product.brand
  54.         string device_model = 5; // On Android: product.device
  55.         string device_model_identifier = 6; // Android only, build.display.id
  56.         string device_model_boot = 7;  // On Android: boot.hardware
  57.         string hardware_manufacturer = 8; // On Android: product.manufacturer
  58.         string hardware_model = 9;  // On Android: product.model
  59.         string firmware_brand = 10; // On Android: product.name, on iOS: "iPhone OS"
  60.         string firmware_tags = 12; // Android only, build.tags
  61.         string firmware_type = 13; // On Android: build.type, on iOS instead: iOS version
  62.         string firmware_fingerprint = 14; // Android only, build.fingerprint
  63.     }
  64.  
  65.     // Apparently iOS only
  66.     message Unknown9 {
  67.         // all of these had 1 as their value
  68.         uint64 unk3 = 3;
  69.         uint64 unk5 = 5;
  70.         uint64 unk6 = 6;
  71.     }
  72.  
  73.     uint64 timestamp_since_start = 2; // in ms
  74.     repeated LocationFix location_fix = 4;
  75.     Unknown5 unk5 = 5;
  76.     SensorInfo sensor_info = 7;
  77.     DeviceInfo device_info = 8;
  78.     Unknown9 unk9 = 9;
  79.     uint32 location_hash1 = 10; // Location1 hashed based on the auth_token - xxHash32
  80.     uint32 location_hash2 = 20; // Location2 hashed based on the auth_token - xxHash32
  81.     bytes unk22 = 22; // possibly replay check. Generation unknown but pointed to by 0001B8614
  82.     uint64 timestamp = 23; // epoch timestamp in ms
  83.     repeated uint64 request_hash = 24; // hashes of each request message in a hashArray - xxhash64
  84.  
  85.     // Addresses for the corresponding hash functions:
  86.     //    xxHash32              00054D28
  87.     //    xxhash64              000546C8 - Feeds into 00053D40
  88.  
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement