Adb Enable Automator -
echo "Simulating double tap (Like)..." adb shell input tap 540 1300 sleep 0.1 adb shell input tap 540 1300
# To ENABLE an automator app: adb shell settings put secure enabled_accessibility_services com.example.app/.MyService adb shell settings put secure accessibility_enabled 1 adb shell input tap X Y adb enable automator
echo "Launching Instagram..." adb shell am start -n $PACKAGE/$ACTIVITY echo "Simulating double tap (Like)
adb devices If you see a device listed with "device" next to it, you are ready. Now, let's get to the meat of the article. How do you actually enable the automator? you are ready. Now
#!/bin/bash adb shell screenrecord /sdcard/bug_replay.mp4 --time-limit 10 & Clear previous logs adb logcat -c Perform automated actions adb shell input swipe 300 1000 300 300 # Swipe down sleep 2 adb shell input tap 540 500 # Tap a button sleep 1 adb shell input keyevent KEYCODE_BACK Stop recording and pull files sleep 12 adb pull /sdcard/bug_replay.mp4 adb logcat -d > bug_logs.txt