Skip to content

Commit

Permalink
feat: set 'disableAnalytics true' (#452)
Browse files Browse the repository at this point in the history
* feat: set 'disableAnalytics true'

* fix syntax

* tweak the place
  • Loading branch information
KazuCocoa committed Apr 16, 2021
1 parent bcd2c53 commit 0c926d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/uiautomator2.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ class UiAutomator2Server {
if (_.isBoolean(this.disableSuppressAccessibilityService)) {
cmd.push('-e', 'DISABLE_SUPPRESS_ACCESSIBILITY_SERVICES', this.disableSuppressAccessibilityService);
}
// Disable Google analytics to prevent possible fatal exception
cmd.push('-e', 'disableAnalytics', true);
cmd.push(INSTRUMENTATION_TARGET);
const instrumentationProcess = this.adb.createSubProcess(['shell', ...cmd]);
instrumentationProcess.on('output', (stdout, stderr) => {
Expand Down

0 comments on commit 0c926d5

Please sign in to comment.