Now, connect your phone to your computer via USB. On your phone, when the "Allow USB debugging?" pop-up appears, check "Always allow from this computer" and tap .

# Start a script by file path on device adb shell am broadcast -a org.autojs.autojs.action.START_SCRIPT --es "script_path" "/sdcard/script.js"

This creates a .xml file (usually in /sdcard/view.xml ) that identifies all on-screen elements for your automation scripts.

Open a Command Prompt (Windows) or Terminal (Mac/Linux) on your computer.