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

  1. Download the AutoJS 6 APKautojs6.apk
  2. Transfer the APK to your phone and install it
📺 中文教程📺 English Guide
02

Step 2: Enable Accessibility Service

AutoJS 6 requires Accessibility permission to simulate touch actions. This is a one-time setup per phone.

  1. Open AutoJS 6 on the phone
  2. Tap the prompt to enable Accessibility Service
  3. In Android Settings → Accessibility, find AutoJS 6 and enable it
  4. 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

  1. In LaiCai, open Settings
  2. Find the AutoJS save path field
  3. 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

  1. On the phone view, click the Run AutoJS button in the control bar
  2. A file picker opens — select the .js script file you want to run
  3. LaiCai pushes the script to the phone and AutoJS 6 starts executing it
  4. The button icon turns red while the script is running
05

Step 5: Stop the Script

  1. Click the Stop AutoJS button (the red icon) in the control bar
  2. 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