explaingit

clearw5/auto.js

12,868Audience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A JavaScript automation tool for Android devices that lets scripts tap buttons, fill forms, and interact with other apps using Android's accessibility services, no root required.

Mindmap

mindmap
  root((Auto.js))
    What it does
      Script Android apps
      Automate tap actions
      Fill text fields
    How it works
      Accessibility services
      No root required
      UIAutomator
    Use cases
      Repetitive workflows
      Learning JavaScript
      App interaction
    Versions
      v4.1 open source
      Pro closed source
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Automate repetitive app interactions on Android, like filling forms or tapping through menus.

USE CASE 2

Learn JavaScript programming on an Android phone without needing a computer.

USE CASE 3

Write scripts that read content from other installed apps and trigger actions inside them.

Tech stack

JavaScriptAndroidUIAutomator

Getting it running

Difficulty · moderate Time to first run · 1h+

Source code is no longer in this repo, the project moved to a paid Pro version, only older v4.1 release builds are available.

Based on Mozilla Public License 2.0 with an additional clause prohibiting commercial use of the code or any derivatives.

In plain English

Auto.js is a JavaScript development and automation environment that runs directly on Android devices. It lets users write and run JavaScript scripts on their phone or tablet to automate tasks and learn programming without a desktop computer. The description and documentation are in Chinese, targeting Chinese-speaking Android users, though an English README was available in the linked original project repository. This particular repository contains the open-source code for Auto.js version 4.1. After that release, the project moved to a closed-source paid edition called Auto.js Pro, available at pro.autojs.org, with its own documentation and blog. The author removed all source files from this repo to prevent the older open version from continuing to spread. What remains is the README pointing to the Pro product and licensing terms, but no browsable source code. The tool relies on Android accessibility services to let scripts interact with other installed apps without needing the device to be rooted. A script can tap buttons, fill in text fields, read content from the screen, and trigger actions inside other apps, which makes it useful for repetitive workflows that would otherwise require manual tapping through an app. The project topics mention UIAutomator, the Android testing framework that provides some of this device-interaction capability. The intended audience is people learning to write JavaScript on an Android phone and users who want to automate personal workflows. Official documentation and updates are hosted externally at the Pro product site. The license is based on Mozilla Public License 2.0 with an additional clause that prohibits commercial use of the code or any derivatives.

Copy-paste prompts

Prompt 1
Write an Auto.js script for Android that automatically taps the confirm button in an app every time it appears on screen.
Prompt 2
Using Auto.js v4.1, write a JavaScript script that reads displayed text from the screen and copies it to the clipboard.
Prompt 3
How do I set up Auto.js on my Android phone and write a script to fill in a login form automatically?
Prompt 4
Write an Auto.js script that monitors an app for a specific notification text and sends a reply automatically.
Open on GitHub → Explain another repo

← clearw5 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.