Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] fenix glean telemetry ping debug or exfiltration issues #3184

Closed
bdekoz opened this issue Jun 5, 2019 · 0 comments
Closed

[Bug] fenix glean telemetry ping debug or exfiltration issues #3184

bdekoz opened this issue Jun 5, 2019 · 0 comments
Labels
🐞 bug Crashes, Something isn't working, ..

Comments

@bdekoz
Copy link

bdekoz commented Jun 5, 2019

Steps to reproduce

checkout mozilla-mobile/fenix
build it
install fenix apk on android device
enable USB debugging, connect device to workstation

  1. on workstation: enter 'adb devices' in terminal
    (make sure connected, when device is continue...)
  2. on workstation, enter in terminal:
    adb shell am start W n org.mozilla.fenix.debug/org.mozilla.fenix.IntentReceiverActivity a android.intent.action.VIEW d https://www.theguardian.com/world/all
  3. on android device: wait for browser screen to come up
  4. set timer for 2 minutes, after it has elapsed, continue
  5. on workstation, enter in terminal Setup basic CI infrastructure #1:
    adb logcat -c;
    adb logcat
  6. on workstation, enter in terminal 🤖 Basic CI setup #2:
    adb shell am start n org.mozilla.fenix.debug/mozilla.components.service.glean.debug.GleanDebugActivity ez logPings true -es sendPing metrics

Expected behavior

in workstation terminal #2, expect logcat spew with contents of the metrics ping in JSON format
(note, have checked that settings/Data Choices/telemetry is on)

Actual behavior

variously:

            * beginning of system

06-05 12:28:08.909 1171 1171 I chatty : uid=1000 system_server expire 2 lines
06-05 12:28:14.658 1171 1171 V SettingsProvider: Notifying for 0: content://settings/system/screen_brightness
06-05 12:28:33.564 1171 5588 I ActivityManager: START u0 {flg=0x10000000 cmp=org.mozilla.fenix.debug/mozilla.components.service.glean.debug.GleanDebugActivity (has extras)} from uid 2000
06-05 12:28:33.568 774 774 D android.hardware.power@1.2-service.wahoo-libperfmgr: LAUNCH ON
06-05 12:28:33.579 8983 8983 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@b92910e
06-05 12:28:33.590 8983 8983 E glean/GleanDebugActivity: Glean is not initialized. It may be disabled by the application.

or:
06-04 15:51:56.688 20215 20247 D glean/PingMaker: Collecting metrics
06-04 15:51:56.688 20215 20247 D glean/Glean: No content for ping 'PingType(name=metrics, includeClientId=true).name', therefore no ping queued.
06-04 15:51:56.688 1171 3531 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.mozilla.fenix cmp=org.mozilla.fenix/.HomeActivity} from uid 10152
06-04 15:51:56.691 1171 3531 W ActivityManager: Duplicate finish request for ActivityRecord{32fe7e2 u0 org.mozilla.fenix/mozilla.components.service.glean.debug.GleanDebugActivity t479 f} (

note, the following ways to get at 'ye old school telemetry GV' on the same device during the same time:

  1. about:telemetry
  2. adb shell 'run-as ' "$mozpackage" ' cat gv_measurements.json' > gv_local_measurements.json
  3. privleged JS running and dumping histograms and scalars

Device information

  • Android device: Pixel 2
  • Fenix version: 2019-06-05

┆Issue is synchronized with this Jira Task

@bdekoz bdekoz added the 🐞 bug Crashes, Something isn't working, .. label Jun 5, 2019
@bdekoz bdekoz changed the title [Bug] fenix glean telemetry debug or exfiltration issues [Bug] fenix glean telemetry ping debug or exfiltration issues Jun 5, 2019
@bdekoz bdekoz closed this as completed Jun 5, 2019
@data-sync-user data-sync-user changed the title [Bug] fenix glean telemetry ping debug or exfiltration issues FNX3-16842 ⁃ [Bug] fenix glean telemetry ping debug or exfiltration issues Aug 11, 2020
@kbrosnan kbrosnan changed the title FNX3-16842 ⁃ [Bug] fenix glean telemetry ping debug or exfiltration issues [Bug] fenix glean telemetry ping debug or exfiltration issues Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, ..
Projects
None yet
Development

No branches or pull requests

3 participants