File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,27 @@ jobs:
564564 echo "DEVICE_LIST=$DEVICE_LIST" >> "$GITHUB_ENV"
565565 echo "DEVICE_COUNT=$DEVICE_COUNT" >> "$GITHUB_ENV"
566566
567+ - name : Relax package verification (best effort)
568+ run : |
569+ set -euo pipefail
570+
571+ : "${DEVICE_LIST:?DEVICE_LIST not set}"
572+ read -ra DEVICES <<< "${DEVICE_LIST}"
573+ for SERIAL in "${DEVICES[@]}"; do
574+ echo "Adjusting package verification on ${SERIAL}"
575+ ADB="adb -s ${SERIAL}"
576+ ${ADB} wait-for-device
577+
578+ ${ADB} shell settings put global verifier_verify_adb_installs 0 || true
579+ ${ADB} shell settings put global package_verifier_enable 0 || true
580+ ${ADB} shell settings put global package_verifier_user_consent -1 || true
581+ ${ADB} shell settings put secure install_non_market_apps 1 || true
582+ ${ADB} shell settings put global install_non_market_apps 1 || true
583+
584+ ${ADB} shell settings get global verifier_verify_adb_installs || true
585+ ${ADB} shell settings get global package_verifier_enable || true
586+ done
587+
567588 - name : Prepare device + install APK(s)
568589 run : |
569590 set -euo pipefail
@@ -679,6 +700,9 @@ jobs:
679700 fi
680701
681702 NUM_SHARDS="${DEVICE_COUNT}"
703+ if [[ -n "${RESOLVED_TESTCASE_ID}" ]]; then
704+ NUM_SHARDS="1"
705+ fi
682706 read -ra DEVICES <<< "${DEVICE_LIST}"
683707
684708 echo "Sharding across ${NUM_SHARDS} device(s): ${DEVICE_LIST}"
You can’t perform that action at this time.
0 commit comments