📄️ Scripts and Modules
The supported script and module file extensions for XXTouch Elite are:
📄️ Paths and Permissions
The runtime root directory of XXTouch Elite is /usr/local/xxtouch, which contains all configuration files, daemon logs, built-in and third-party Lua extensions, etc.
📄️ Logging Facilities
XXTouch Elite provides three logging methods
📄️ Error Handling
XXTouch Elite follows Lua Error Handling and outputs error messages and stack trace information to the log file /var/mobile/Media/1ferver/log/script_error.log. You can view this file in X.X.T.E. Application → More → Error Logs. If the error is not caught, an error prompt will pop up.
📄️ Process Scheduling
Each script in XXTouch Elite runs as an independent process, referred to as a script process. To avoid conflicts and management difficulties caused by multiple script processes running simultaneously, script processes dispatched in the following ways can only have one instance at a time:
📄️ Daemon Mode
Daemon mode ensures that scripts can restart automatically when the device returns to a normal state after being interrupted by external factors (e.g., service crashes, power outages). Exceptions include the following situations:
📄️ Startup Script
Unlike the “currently selected script”, the selected “startup script” will automatically start after the device boots up.
📄️ Command Line Tools
In addition to script processes governed by global process scheduling, you can also use the Lua command-line interpreter to execute other scripts.
📄️ Prebuilt Libraries
XXTouch Elite fully supports the Lua programming interface. You can download and install extension libraries from LuaRocks and port them to XXTouch Elite for use.
📄️ Screen Coordinates
Please first turn off the screen orientation lock on your device, keep the earpiece at the top, and hold the device vertically. The coordinate system is shown in the following figure Hardware Coordinates:
📄️ Supported Keycodes
Letter Keys
📄️ Supported URL Schemes
This protocol specifies the actions and parameters supported by XXTouch Elite’s URL Scheme.
📄️ Cloud Control API
The XXTouch Elite Cloud Control API is developed using the WebSocket protocol, with a built-in cloud control client called elfclient.
📄️ Lua Cheatsheet
Pitfalls to Avoid When Learning Lua