How to Use AutoJS Automation Scripts
AutoJS 6 is an open-source JavaScript automation app for Android. Once installed and configured on your phone, you can push and run .js scripts directly from LaiCai with one click.
📋
Before You Begin
- You need to download and install AutoJS 6 yourself — it is not bundled with LaiCai
- Each phone that will run scripts must have AutoJS 6 installed and configured
- A basic understanding of JavaScript helps when writing your own scripts
Part 1: Install AutoJS 6
Download and install AutoJS 6 on your phone, then enable its Accessibility Service so it can simulate touch actions.
01
Step 1: Download and Install
- Download the AutoJS 6 APK — autojs6.apk
- Transfer the APK to your phone and install it
02
Step 2: Enable Accessibility Service
AutoJS 6 requires Accessibility permission to simulate touch actions. This is a one-time setup per phone.
- Open AutoJS 6 on the phone
- Tap the prompt to enable Accessibility Service
- In Android Settings → Accessibility, find AutoJS 6 and enable it
- Return to AutoJS 6 — the status bar should show it is active
💡 On some phones (MIUI, ColorOS, etc.) you may also need to grant background run permission and disable battery optimization for AutoJS 6.
Part 2: Configure LaiCai
Tell LaiCai where to find your scripts so the file picker opens in the right place.
03
Step 3: Set AutoJS Script Path
- In LaiCai, open Settings
- Find the AutoJS save path field
- Set the folder path where your .js script files are saved on your computer
💡 The default path is Desktop/LC/AutoJS. You can change it to any folder where your scripts are saved.
Part 3: Run and Stop Scripts
Use the control buttons on the phone screen to run or stop a script on that phone.
04
Step 4: Run a Script
- On the phone view, click the Run AutoJS button in the control bar
- A file picker opens — select the .js script file you want to run
- LaiCai pushes the script to the phone and AutoJS 6 starts executing it
- The button icon turns red while the script is running
05
Step 5: Stop the Script
- Click the Stop AutoJS button (the red icon) in the control bar
- AutoJS 6 stops the running script immediately
💡
Tips
- Name your scripts clearly — e.g. farming.js, daily_quest.js — to find them quickly
- If a script fails to start, check that Accessibility Service is enabled on that phone
- Set the AutoJS save path in Settings to skip navigating folders every time
- Scripts run fully on the phone — LaiCai only pushes and triggers them