Skip to content

Instantly share code, notes, and snippets.

@stephendonner
Last active April 10, 2019 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephendonner/9c611a3dfc6d26c4f203bd06b38f688b to your computer and use it in GitHub Desktop.
Save stephendonner/9c611a3dfc6d26c4f203bd06b38f688b to your computer and use it in GitHub Desktop.
./scripts/whitebg-test.sh

Running Android Pre/Post test. Running white background color test.

Make sure you have no extra apps running in the background. Make sure that there is a wakelock app running(if going passed 30 minutes of testing). Charging is disabled before the test starts. It is enabled automatically when we reach the end of the test. Getting Phone Model... Is the model Moto_G__5 correct? Disabling charging... Old screen timeout: 12000000

On trial 0

Installing app... Attempting to start white test... Starting: Intent { act=android.intent.action.VIEW dat=data:text/html;base64,PGJvZHkgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6d2hpdGUiPjwvYm9keT4= cmp=org.mozilla.reference.browser/.IntentReceiverActivity (has extras) }

Waiting for a charge counter drop...

Time elapsed waiting for drop: 35.473793029785156 seconds Drop detected, starting test Start time: 2019-04-10 23:06:34.454324 Starting values: AC powered: false USB powered: false Wireless powered: false MOD powered: false Max charging current: 0 Max charging voltage: 0 Charge counter: 2627234 status: 3 health: 2 present: true level: 94 scale: 100 voltage: 4242 temperature: 297 technology: Li-ion mod level: -1 mod status: 1 mod flag: 0 mod type: 0 timestamp: 1554937594.504281 Elapsed time (seconds): 1200.3231749534607 End time: 2019-04-10 23:26:34.919007 Final values: AC powered: false USB powered: false Wireless powered: false MOD powered: false Max charging current: 0 Max charging voltage: 0 Charge counter: 2549718 status: 3 health: 2 present: true level: 93 scale: 100 voltage: 4220 temperature: 315 technology: Li-ion mod level: -1 mod status: 1 mod flag: 0 mod type: 0 timestamp: 1554938794.918973

Charge counter used: 77516 Percent used: 1

On trial 1

Installing app... Attempting to start white test... Warning: Activity not started, its current task has been brought to the front Starting: Intent { act=android.intent.action.VIEW dat=data:text/html;base64,PGJvZHkgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6d2hpdGUiPjwvYm9keT4= cmp=org.mozilla.reference.browser/.IntentReceiverActivity (has extras) }

Waiting for a charge counter drop...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment