From d646a8332f151b910e92d8b96483a3de945e8686 Mon Sep 17 00:00:00 2001 From: zobnin Date: Mon, 29 Aug 2022 12:27:01 +0300 Subject: [PATCH] Tasker/ADB docs --- Tasker-ADB-commands.md | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Tasker-ADB-commands.md diff --git a/Tasker-ADB-commands.md b/Tasker-ADB-commands.md new file mode 100644 index 0000000..d45d2d3 --- /dev/null +++ b/Tasker-ADB-commands.md @@ -0,0 +1,69 @@ +AIO Launcher 2.7.0 introduced support for controlling launcher from other applications (for example, Tasker) and ADB. To enable this feature, open the Tasker section in the AIO settings. + +It works like this: you send a broadcast intent with action `ru.execbit.aiolauncher.COMMAND` and the extra `cmd` var with command. For example, to open the application menu using ADB, do this: + +``` +adb shell am broadcast -a ru.execbit.aiolauncher.COMMAND --es cmd apps_menu +``` + +The same with Tasker (System - Send intent): + + + +The following commands are available: + +* `apps_menu` +* `screen_off` +* `screen_off_root` +* `refresh` +* `notify` +* `search` +* `dialer` +* `camera` +* `flashlight` +* `voice` +* `headers` +* `fold` +* `unfold` +* `scroll_up` +* `scroll_down` +* `scroll_up_or_search` +* `one_handed` +* `add_note` +* `add_note:TEXT` +* `add_task` +* `add_task:TEXT:YYYY-MM-DD-HH-MM` +* `private_mode` +* `settings` +* `quick_menu` +* `theme:NAME` +* `iconpack:PKG_NAME` +* `add_widget:NAME:[position]` +* `remove_widget:position` + +Also AIO Launcher 2.7.0 includes so-called custom widget. By itself, it does not show anything, but any text can be output to it by analogy with commands (instead of "cmd" you must write "widget"). Example: + +``` +adb shell am broadcast -a ru.execbit.aiolauncher.COMMAND --es widget 'Text' +``` + +In folded form, widget shows the first line of text. But you can specify your own text for the minimized state. Example: + +``` +adb shell am broadcast -a ru.execbit.aiolauncher.COMMAND --es widget_alt 'Text' +``` + +Widget supports many HTML tags: + +``` +First line
Second line +Bold Line
Oblique Line +Red text +Text on green background +``` + +To prevent third-party (malicious) applications from gaining the ability to control the launcher and write text to the widget, you can set a password to access the launcher. This password must be specified each time a command or text is sent: + +``` +adb shell am broadcast -a ru.execbit.aiolauncher.COMMAND --es cmd apps_menu --es password PASSWORD +```