forked from acreskeyMoz/browsertime_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgve.sh
More file actions
27 lines (23 loc) · 842 Bytes
/
gve.sh
File metadata and controls
27 lines (23 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
bash ./clear_apps.sh
if [[ -n $ANDROID_SERIAL ]] ; then
DEVICE_SERIAL_ARGS="--firefox.android.deviceSerial=$ANDROID_SERIAL --chrome.android.deviceSerial=$ANDROID_SERIAL"
else
DEVICE_SERIAL_ARGS=
fi
# N.B.: yargs doesn't parse `--firefox.android.intentArgument --ez`
# properly, so always use `=--ez`!
$BROWSERTIME_BIN \
--android \
--skipHar \
--firefox.geckodriverPath="$GECKODRIVER_PATH" \
--firefox.android.package "$PACKAGE" \
--firefox.android.activity "$PACKAGE.GeckoViewActivity" \
--firefox.android.intentArgument=-a \
--firefox.android.intentArgument=android.intent.action.VIEW \
--firefox.android.intentArgument=-d \
--firefox.android.intentArgument="data:," \
--browser firefox \
$DEVICE_SERIAL_ARGS \
"$@"
adb -s $ANDROID_SERIAL shell am force-stop $PACKAGE