Myzel394 / Alibi

Use your phone as a dashcam and save the last 30 minutes when you need them.
GNU General Public License v3.0
219 stars 10 forks source link

Export (and document) activities that could be easily invoked by Automation, Easer, Tasker and Termux #93

Open xandro0777 opened 3 months ago

xandro0777 commented 3 months ago

Thinking about

Since all scripted solutions should be able to call several activities consecutively it might be best to keep those activities as simple as possible, eg not combining export and stop.

This should help people deal with a wide array of situations like start recording at boot or when leaving home or entering car and many more.

Myzel394 commented 3 months ago

I was thinking about this, but just yesterday I got the idea of adding plugins instead (see my comment https://github.com/Myzel394/Alibi/issues/15#issuecomment-2002611208) - this would allow more granular control as the plugin can also react to audio events for example. What do you think about that?

xandro0777 commented 3 months ago

I have never done that but imagine that exporting the activities so that Easer etc can call them would be many times easier than plugins? If so it looks like a good strategy to do the low hanging fruits first.

Myzel394 commented 3 months ago
  • export(save) to file(s)
  • stop recording
  • delete internal recordings

Unfortunately,. it's pretty hard / impossible to record in background due to Android's security. As far as I know you cannot start recording from the background due to privacy reasons. Maybe there's some exception for those automation apps though, I'll take a look.

However, the other activities are fairly easy to implement, I'll work on that! :)

xandro0777 commented 3 months ago

I think those automation apps can invoke any activity, be it foreground or background?