poll-poll134/android-blackbox-analysis-skill
android-app-blackbox-competitive-analysis
VerifiedUse when users request Android competitor research, systematic feature or interface mapping, evidence screenshots, interaction coverage, comparison-ready product dossiers, or Android system-boundary verification without APK decompilation.
scripts/scroll_sweep.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
serial=''
case_root=''
prefix='EV'
start='1'
slug='long-page'
count='3'
package_name=''
x1='540'
y1='1800'
x2='540'
y2='400'
duration='700'
wait_seconds='1'
while [[ $# -gt 0 ]]; do
case "$1" in
--serial) serial="${2:-}"; shift 2 ;;
--case-root) case_root="${2:-}"; shift 2 ;;
--prefix) prefix="${2:-}"; shift 2 ;;
--start) start="${2:-}"; shift 2 ;;
--slug) slug="${2:-}"; shift 2 ;;
--count) count="${2:-}"; shift 2 ;;
--package) package_name="${2:-}"; shift 2 ;;
--swipe) x1="${2:-}"; y1="${3:-}"; x2="${4:-}"; y2="${5:-}"; duration="${6:-}"; shift 6 ;;
--wait) wait_seconds="${2:-}"; shift 2 ;;
*) printf 'unknown argument: %s\n' "$1" >&2; exit 2 ;;
esac
done
if [[ -z "${serial}" || -z "${case_root}" ]]; then
printf 'usage: %s --serial SERIAL --case-root DIR [--prefix EV] [--start 1] [--slug NAME] [--count 3]\n' "${0##*/}" >&2
exit 2
fi
if [[ ! "${prefix}" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*$ || ! "${slug}" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*$ ]]; then
printf 'prefix and slug may contain only letters, numbers, dot, underscore, and hyphen\n' >&2
exit 2
fi
if [[ ! "${start}" =~ ^[0-9]{1,6}$ || ! "${count}" =~ ^[0-9]{1,3}$ || "${count}" -lt 1 || "${count}" -gt 100 ]]; then
printf 'start must be 0..999999 and count must be 1..100\n' >&2
exit 2
fi
for coordinate in "${x1}" "${y1}" "${x2}" "${y2}"; do
if [[ ! "${coordinate}" =~ ^[0-9]{1,6}$ ]]; then
printf 'swipe coordinates must be non-negative integers up to six digits\n' >&2
exit 2
fi
done
if [[ ! "${duration}" =~ ^[0-9]{1,5}$ || "${duration}" -lt 1 || "${duration}" -gt 60000 ]]; then
printf 'swipe duration must be 1..60000 milliseconds\n' >&2
exit 2
fi
if [[ ! "${wait_seconds}" =~ ^[0-9]{1,2}$ || "${wait_seconds}" -gt 60 ]]; then
printf 'wait must be an integer from 0 to 60 seconds\n' >&2
exit 2
fi
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
for ((index=0; index<count; index++)); do
number=$((start + index))
evidence_id="$(printf '%s-%04d' "${prefix}" "${number}")"
segment_slug="$(printf '%s_%02d' "${slug}" "$((index + 1))")"
args=(--serial "${serial}" --case-root "${case_root}" --id "${evidence_id}" --slug "${segment_slug}")
if [[ -n "${package_name}" ]]; then args+=(--package "${package_name}"); fi
"${script_dir}/capture_evidence.sh" "${args[@]}"
if (( index + 1 < count )); then
adb -s "${serial}" shell input swipe "${x1}" "${y1}" "${x2}" "${y2}" "${duration}"
sleep "${wait_seconds}"
fi
done
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |