Tasker/ADB docs

zobnin
2022-08-29 12:27:01 +03:00
commit d646a8332f

69
Tasker-ADB-commands.md Normal file

@@ -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):
<img src="https://aiolauncher.app/tasker2.png" height="400"/>
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<br/>Second line
<b>Bold Line</b><br/><i>Oblique Line</i>
<font color="red">Red text</font>
<span style="background-color: #00FF00">Text on green background</span>
```
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
```