r/AutomateUser • • 3d ago

HyperOS killing flows

As title suggests, I'm getting frustrated by flows stopping. I've changed battery saver options, locked automate in the recent apps, given automate privileged start method of ADB... and I don't know what else to do.

I have Shizuku+ installed, but automate isn't recognised and the compat hub won't download for some reason. Maybe there's a shizuku app that keeps other apps' background processes from being killed?

Any suggestions?

2 Upvotes

5 comments sorted by

2

u/ballzak69 Automate developer 2d ago

For what i know, there's no specific ABD command to prevent app from being killed by non-standard "power save" feature, or other kind of system feature. To changes low-level system feature usually requires a rooted device.

1

u/13579ijustcanteven 2d ago

cheers for looking into it.
for now I've used canta to disable 'system daemon' and fingers crossed that helps. if hyperos doesn't kill background processes of different apps at the same time then there could be a watchdog app to restart it if stopped and vice versa, or maybe automate needs a shizuku+ mode or be able to be patched with lspatch?

1

u/ballzak69 Automate developer 2d ago

I doubt there a way to "patch" an app to avoid it being killed by the system. Simply restarting an app, e.g. by another "watchdog" app, often won't suffice since that will not reconnect accessibility and notification listener services, etc..

1

u/13579ijustcanteven 2d ago

you know more than me :) As a jack-of-all trades (master of some...) engineer I always try to bring possible solutions along with any problem! and yeah now i think about it, lspatch is to patch 'official' apps like whatsapp to modify them, not to give enhanced capabilities to an app you already have dev input to

1

u/aasswwddd 2d ago

Try this.

adb shell appops set com.llamalab.automate SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS allow

More details https://www.reddit.com/r/tasker/comments/1fv9ez4/how_to_enable_nondismissible_persistent/

And if it's still getting killed, Look up how to disable MIUI optimization.