Skip to content

Commit 75b0d5c

Browse files
authored
Merge branch 'dev' into app-events
2 parents e178406 + bd104fe commit 75b0d5c

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

commons/passive/phone/phone_bluetooth_device_scanned.avsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{"name": "time", "type": "double", "doc": "Device timestamp in UTC (s)."},
88
{"name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)."},
99
{"name": "macAddressHash", "type": ["null", "bytes"], "default": null, "doc":"Hash of Nearby Bluetooth device MAC address."},
10-
{"name": "hashSaltReference", "type": ["null", "int"], "doc": "Random identifier associated with the device or installation of the app. If the app gets reinstalled or installed on another device, it's clear during analysis that the mac addresses between iterations are not comparable.", "default": null},
10+
{"name": "hashSaltReference", "type": ["null", "int"], "doc": "This field has been deprecated. Random identifier associated with the device or installation of the app. If the app gets reinstalled or installed on another device, it's clear during analysis that the mac addresses between iterations are not comparable.", "default": null},
1111
{"name": "isPaired", "type": ["null","boolean"], "doc": "Whether the bluetooth device is paired. This has been deprecated in favor of pairedState in newer versions.", "default": null},
1212
{"name": "pairedState", "type": ["null", {
1313
"name": "PairedState",

commons/passive/phone/phone_usage_event.avsc

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,32 @@
99
{ "name": "packageName", "type": "string", "doc": "Package name of the launched app." },
1010
{ "name": "categoryName", "type": ["null", "string"], "doc": "App category as given by the play store, null if a category is not listed or unable to be fetched.", "default": null },
1111
{ "name": "categoryNameFetchTime", "type": ["null", "double"], "doc": "Timestamp in UTC when the category was attempted to fetch from the play store (s), null if not fetched.", "default": null },
12-
{ "name": "eventType", "type": {
13-
"name": "UsageEventType",
14-
"type": "enum",
15-
"doc": "Android activity usage event type.",
16-
"symbols": ["FOREGROUND", "BACKGROUND", "CONFIG", "SHORTCUT", "INTERACTION", "FOREGROUND_SERVICE_START", "FOREGROUND_SERVICE_STOP", "STANDBY_BUCKET_CHANGED", "STOPPED", "OTHER", "UNKNOWN"]
17-
}, "doc": "Whether the event brought app to foreground or background or neither.", "default": "UNKNOWN" }
12+
{
13+
"name": "eventType",
14+
"type": {
15+
"name": "UsageEventType",
16+
"type": "enum",
17+
"doc": "Android activity and system usage event type. \nFOREGROUND: Activity moved to the foreground (onResume), app became visible and interactive to the user. \nBACKGROUND: Activity moved to the background (onPause), activity lost focus but may still be partially visible or resumable. \nSTOPPED: Activity became fully invisible (onStop), activity is no longer visible to the user. \nCONFIG: Configuration change (e.g., orientation or locale), activity may be recreated or resources updated. \nSHORTCUT: App launched via a launcher or pinned shortcut. \nINTERACTION: Direct user interaction with the app (tap, gesture, or other user action reported by the system). \nFOREGROUND_SERVICE_START: A foreground service was started by the package, long-running, user-visible work usually backed by a notification. \nFOREGROUND_SERVICE_STOP: A foreground service was stopped. \nSTANDBY_BUCKET_CHANGED: The system changed the app’s App Standby Bucket (ACTIVE, WORKING_SET, FREQUENT, RARE, RESTRICTED), affects background scheduling. \nKEYGUARD_SHOWN: The lock screen (keyguard) became visible, device entered locked UI. \nKEYGUARD_HIDDEN: The lock screen was dismissed or the device was unlocked, device became accessible. \nSCREEN_INTERACTIVE: Screen became interactive (turned on and ready for input), device ready for touch/input (may still be locked). \nSCREEN_NON_INTERACTIVE: Screen became non-interactive (turned off or in low-interaction mode), device not accepting input. \nOTHER: Any other unclassified event type; UNKNOWN: Fallback when the event type cannot be determined.",
18+
"symbols": [
19+
"FOREGROUND",
20+
"BACKGROUND",
21+
"CONFIG",
22+
"SHORTCUT",
23+
"INTERACTION",
24+
"FOREGROUND_SERVICE_START",
25+
"FOREGROUND_SERVICE_STOP",
26+
"STANDBY_BUCKET_CHANGED",
27+
"STOPPED",
28+
"KEYGUARD_SHOWN",
29+
"KEYGUARD_HIDDEN",
30+
"SCREEN_INTERACTIVE",
31+
"SCREEN_NON_INTERACTIVE",
32+
"OTHER",
33+
"UNKNOWN"
34+
]
35+
},
36+
"doc": "Android app usage event types where an event represents a state change for component/app.",
37+
"default": "UNKNOWN"
38+
}
1839
]
1940
}

0 commit comments

Comments
 (0)