You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance emulator time management: add adb root command for clock control, log time state before and after setting, and improve deep link handling with escaped URLs.
if adb -s "$emulator_serial" shell am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "$url" -p "$BUNDLE_ID" </dev/null >"$tmpout" 2>&1; then
571
+
if adb -s "$emulator_serial" shell "am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d '$escaped_url' -p '$BUNDLE_ID'" </dev/null >"$tmpout" 2>&1; then
530
572
echo "Deep link opened successfully (method 1)"
531
573
rm -f "$tmpout"
532
574
return 0
533
575
fi
534
576
535
577
echo "Method 1 failed, output:"
536
578
cat "$tmpout" 2>/dev/null | head -10
579
+
if grep -Fq "Status: ok" "$tmpout"; then
580
+
echo "::warning::Method 1 returned non-zero but am start reported Status: ok. Treating as success."
581
+
rm -f "$tmpout"
582
+
return 0
583
+
fi
537
584
538
-
if adb -s "$emulator_serial" shell am start -S -W -a android.intent.action.VIEW -d "$url" -n "$BUNDLE_ID/$MAIN_ACTIVITY" </dev/null >"$tmpout" 2>&1; then
585
+
if adb -s "$emulator_serial" shell "am start -S -W -a android.intent.action.VIEW -d '$escaped_url' -n '$BUNDLE_ID/$MAIN_ACTIVITY'" </dev/null >"$tmpout" 2>&1; then
539
586
echo "Deep link opened successfully (method 2)"
540
587
rm -f "$tmpout"
541
588
return 0
542
589
fi
543
590
544
591
echo "Method 2 failed, output:"
545
592
cat "$tmpout" 2>/dev/null | head -10
593
+
if grep -Fq "Status: ok" "$tmpout"; then
594
+
echo "::warning::Method 2 returned non-zero but am start reported Status: ok. Treating as success."
0 commit comments