6.7.0 - Alpha10 - autojs.(restart/exit) 方法支持应用重启时自动运行其参数指定的脚本 (issue #460)

This commit is contained in:
SuperMonster003
2025-11-03 13:19:47 +08:00
parent 3439c0c224
commit bc2f580e1c
19 changed files with 279 additions and 87 deletions

View File

@@ -142,6 +142,7 @@
<string name="key_root_record_out_file_type" translatable="false">key_$_root_record_out_file_type</string>
<string name="key_root_record_out_file_type_binary" translatable="false">key_$_root_record_out_file_type_binary</string>
<string name="key_root_record_out_file_type_js" translatable="false">key_$_root_record_out_file_type_js</string>
<string name="key_scripts_after_app_restart" translatable="false">key_$_scripts_after_app_restart</string>
<string name="key_server_address" translatable="false">key_$_server_address</string>
<string name="key_server_socket_normally_closed" translatable="false">key_$_server_socket_normally_closed</string>
<string name="key_stable_mode" translatable="false">key_$_stable_mode</string>
@@ -1311,6 +1312,7 @@
<string name="description_timed_task_backend">Controls the underlying mechanism for triggering scripts on a schedule.\n\nAlarmManager: With the “Allow setting alarms and reminders” permission granted, scheduled tasks can fire closer to the exact time.\nWorkManager: System-friendly; suitable for non-critical tasks that can tolerate some delay.\nJobScheduler: Legacy implementation kept for compatibility; higher chance of delays.</string>
<string name="failed_to_go_to_access_settings">Failed to open the settings page</string>
<string name="text_allow_setting_alarms_and_reminders_is_recommended">Granting the “Allow setting alarms and reminders” permission is recommended to help tasks run as punctually as possible even when the screen is off or the device is idle</string>
<string name="description_timed_task_backend_more">Use cases and differences:\n\n1) AlarmManager\nBest for time-sensitive tasks, e.g., [reminders/strictly scheduled scripts/...].\nOn Android 12+ with the “Allow setting alarms and reminders” permission, tasks can run more on time even when the screen is off or the device is idle.\nWithout it, the system may degrade exactness or delay execution.\n\n2) WorkManager\nBest for tasks that dont require strict timing, e.g., [non-critical sync/cleanup/statistics/...].\nScheduling depends on [battery/network/charging/idle policies/...], so execution may be postponed when the screen is off or idle.\nWhile it cant guarantee exact timing, it excels at [reliable completion/retries/chaining/unique work de-duplication].\n\n3) JobScheduler\nHistorical implementation for compatibility.\nOn newer Android versions, tasks may be delayed more noticeably.\nGenerally not recommended unless required for compatibility.</string>
<string name="description_timed_task_backend_more" tools:ignore="TypographyEllipsis">Use cases and differences:\n\n1. AlarmManager\nBest for time-sensitive tasks, e.g., [reminders/strictly scheduled scripts/...].\nOn Android 12+ with the “Allow setting alarms and reminders” permission, tasks can run more on time even when the screen is off or the device is idle.\nWithout it, the system may degrade exactness or delay execution.\n\n2. WorkManager\nBest for tasks that dont require strict timing, e.g., [non-critical sync/cleanup/statistics/...].\nScheduling depends on [battery/network/charging/idle policies/...], so execution may be postponed when the screen is off or idle.\nWhile it cant guarantee exact timing, it excels at [reliable completion/retries/chaining/unique work de-duplication].\n\n3. JobScheduler\nHistorical implementation for compatibility.\nOn newer Android versions, tasks may be delayed more noticeably.\nGenerally not recommended unless required for compatibility.</string>
<string name="text_click_item_to_show_details">Click an item to view details</string>
</resources>