mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-07-19 16:51:35 -05:00
- Added asset session downloader - Added on off option logging request types - Updated proto files - Updated readme.md - Smoother setup process - Added various console commands - Added claim codename packet - Added encounter packet - Added *fixed* download url packet - Various changes, cant remember at all
100 lines
4.1 KiB
Protocol Buffer
Vendored
100 lines
4.1 KiB
Protocol Buffer
Vendored
syntax = "proto3";
|
|
package POGOProtos.Networking.Envelopes;
|
|
|
|
message Signature {
|
|
|
|
message LocationFix {
|
|
string provider = 1; // "network", "gps", "fused", possibly others
|
|
uint64 timestamp_snapshot = 2; // in ms since start
|
|
float latitude = 13;
|
|
float longitude = 14;
|
|
|
|
// ??? shows up in struct, dunno where these go
|
|
// float device_speed;
|
|
// float device_course;
|
|
float horizontal_accuracy = 20; // iOS only? (range seems to be -1 to +1)
|
|
float altitude = 21;
|
|
float vertical_accuracy = 22; // iOS only? (range seems to be ~10-12)
|
|
uint64 provider_status = 26; // Usually 3 (possibly GPS status: 1 = no fix, 2 = acquiring/inaccurate, 3 = fix acquired)
|
|
// On iOS there are some LocationFixes with unk26=1 and everything else empty
|
|
uint32 floor = 27; // No idea what this is, seems to be optional
|
|
uint64 location_type = 28; // Always 1 (if there is data at all)
|
|
}
|
|
|
|
// don't really care about this since we're not using it
|
|
message AndroidGpsInfo {
|
|
uint64 time_to_fix = 1;
|
|
repeated int32 satellites_prn = 2;
|
|
repeated float snr = 3;
|
|
repeated float azimuth = 4;
|
|
repeated float elevation = 5;
|
|
repeated bool has_almanac = 6;
|
|
repeated bool has_ephemeris = 7;
|
|
repeated bool used_in_fix = 8;
|
|
}
|
|
|
|
message SensorInfo {
|
|
uint64 timestamp_snapshot = 1; // in ms since start
|
|
double magnetometer_x = 3;
|
|
double magnetometer_y = 4;
|
|
double magnetometer_z = 5;
|
|
double angle_normalized_x = 6;
|
|
double angle_normalized_y = 7;
|
|
double angle_normalized_z = 8;
|
|
double accel_raw_x = 10;
|
|
double accel_raw_y = 11;
|
|
double accel_raw_z = 12;
|
|
double gyroscope_raw_x = 13;
|
|
double gyroscope_raw_y = 14;
|
|
double gyroscope_raw_z = 15;
|
|
double accel_normalized_x = 16;
|
|
double accel_normalized_y = 17;
|
|
double accel_normalized_z = 18;
|
|
uint64 accelerometer_axes = 19; // Always 3
|
|
}
|
|
|
|
message DeviceInfo {
|
|
string device_id = 1; // Hex string
|
|
string android_board_name = 2;
|
|
string android_bootloader = 3;
|
|
string device_brand = 4; // On Android: product.brand
|
|
string device_model = 5; // On Android: product.device
|
|
string device_model_identifier = 6; // Android only, build.display.id
|
|
string device_model_boot = 7; // On Android: boot.hardware
|
|
string hardware_manufacturer = 8; // On Android: product.manufacturer
|
|
string hardware_model = 9; // On Android: product.model
|
|
string firmware_brand = 10; // On Android: product.name, on iOS: "iPhone OS"
|
|
string firmware_tags = 12; // Android only, build.tags
|
|
string firmware_type = 13; // On Android: build.type, on iOS instead: iOS version
|
|
string firmware_fingerprint = 14; // Android only, build.fingerprint
|
|
}
|
|
|
|
// Only used in iOS - Android just sends an empty version
|
|
message ActivityStatus {
|
|
// all of these had 1 as their value
|
|
uint64 start_time_ms = 1;
|
|
bool unknown_status = 2;
|
|
bool walking = 3;
|
|
bool running = 4;
|
|
bool stationary = 5;
|
|
bool automotive = 6;
|
|
bool tilting = 7;
|
|
bool cycling = 8;
|
|
bytes status = 9;
|
|
}
|
|
|
|
uint64 timestamp_since_start = 2; // in ms
|
|
repeated LocationFix location_fix = 4;
|
|
AndroidGpsInfo gps_info = 5;
|
|
SensorInfo sensor_info = 7;
|
|
DeviceInfo device_info = 8;
|
|
ActivityStatus activity_status = 9;
|
|
uint64 location_hash1 = 10; // Location1 hashed signed based on the auth_token or auth_info - xxHash32
|
|
uint64 location_hash2 = 20; // Location2 hashed (unsigned) - xxHash32
|
|
bytes session_hash = 22; // 16 bytes, unique per session
|
|
uint64 timestamp = 23; // epoch timestamp in ms
|
|
repeated int64 request_hash = 24; // hashes of each request message in a hashArray signed based on the auth_token or auth_info - xxhash64
|
|
int64 unknown25 = 25; // for 0.33 its static -8537042734809897855 or 0x898654dd2753a481, generated via xxHash64("\"b8fa9757195897aae92c53dbcf8a60fb3d86d745\"".ToByteArray(), 0x88533787)
|
|
|
|
}
|