Ask HN: What's the best app for Android device automation?

29 points · martin_a · 10 days ago

Hey! I'd like to automate my Android device (Pixel 7a) some more_ Open an app at a specific time, set volume based on location or time or Wifi, maybe react to more triggers from Apps, set display to monochrome after one hour of daily usage, stuff like that.

Which app would you use for things like these? Do I need to root my phone for that?


10 comments
TeMPOraL · 7 days ago
Tasker.

It's probably the most well-known app for this, definitely most full-featured one. It's messy, and carries a bit of baggage of questionable design decisions, but that's a given for a program that's been in high-paced development for 15 years now. There are alternatives like Automate or MacroDroid, but they're simpler, less feature-full.

(EDIT: it may look like that some of the newer apps have similar feature sets, but the devil is in the details - Tasker tends to expose more parameters, give you more fine-grained control over any feature.)

(FWIW, Tasker has recently gained a sister project, Tasky, that tries to expose the same functionality using a much dumber^Wsimpler UI, geared towards more common scenarios and more casual users.)

> Open an app at a specific time, set volume based on location or time or Wifi, maybe react to more triggers from Apps, set display to monochrome after one hour of daily usage, stuff like that.

Most of those you can do without root. Recently, "Wireless Debugging" aka. ADB WiFi became a way to do some privileged activities without full root, and Tasker can use that too (caveat being, as I understand it, that technique only works when you're connected to a WiFi network).

Tasker may be a bit rough around the edges wrt. the UI, and the low-code model/language it exposes feels a lot like ol' PHP 4 in terms of stringly-typed data, but it works, and is well-established. Importantly, you can easily pair it with Termux, so if you prefer writing code over "GUI programming" with list views, you can use Tasker as an easy "event listener" layer, and just have your tasks fire Termux scripts.

madduci · 7 days ago
Your best bet is Tasker. It is probably the most known automation system, you can define scenarios and different kind of events
average_r_user · 10 days ago
You could try MacroDroid, it's free with a premium one-time purchase if you want. You don't need root for most of the automation/routine; only a bunch of those require special permissions or workarounds. Its UI is not that bad.

You could also try Tasker

Show replies

leros · 6 days ago
I use Sleep as Android and Tasker. When I go to sleep, I set my alarm with Sleep as Android. Tasker uses that event as a trigger and makes an http request to my home automation hub. That http request is pushing a virtual button. That button puts my house into sleep mode. So the end effect is that I turn on my alarm and my house goes to sleep. I can also push a physical button on the wall to enable sleep mode, so I don't have to use this automation, but I like the way this works.

I also use Tasker to enable Do Not Disturb when using a set of applications: Kindle for ebooks, my meditation app, etc.

gloflo · 7 days ago