Action to close/restart an app and power off the device

cska133

Member
Hi,

I am searching for these 2 actons:
1. To close or restart an app. I can find "launch new app" but nothing to close. I found "kill background" but in my case it doent help.
2. Action to power off the device. Is there nothing like this?!

Thanks
 

Endercraft

Moderator (& bug finder :D)
Hi,

I am searching for these 2 actons:
1. To close or restart an app. I can find "launch new app" but nothing to close. I found "kill background" but in my case it doent help.
2. Action to power off the device. Is there nothing like this?!

Thanks
What you are asking for requires root to do with MacroDroid only but is possible.
In MacroDroid's settings, enable "Enable root features".
 

Dimlos

Well-known member
I think it is possible with the adb command.

App force stop adb shell am force-stop PACKAGE NAME
Turn off power adb shell reboot -p
 

cska133

Member
What you are asking for requires root to do with MacroDroid only but is possible.
In MacroDroid's settings, enable "Enable root features".
Well, i found it, but because i dont have root, killing app will not work, right?

I think it is possible with the adb command.

App force stop adb shell am force-stop PACKAGE NAME
Turn off power adb shell reboot -p
This is also interesting, but how and where to use these commands?
 

Dimlos

Well-known member
 

Qarboz

Well-known member
Hi,

I am searching for these 2 actons:
1. To close or restart an app. I can find "launch new app" but nothing to close. I found "kill background" but in my case it doent help.
2. Action to power off the device. Is there nothing like this?!

Thanks
2. To turn off the phone, without root and without adb, you can use Android Shortcuts -> Power Options and UI Interaction (XY) actions. It requires the screen on and unlocked
 

cska133

Member
It requires the screen on and unlocked
What is the sense of that? Why would i want to power off my device while my screen is on? My wish is to auto power-off the device when the screen stays switched-off for a long time, for example for mor than 3 hours
 

Dm114

Well-known member
Well, i found it, but because i dont have root, killing app will not work, right?


This is also interesting, but how and where to use these commands?
@Qarboz is quite right to power off on non rooted devices.

According to killing (I'd rather say closing) apps, there are no available commands on non rooted devices unless using UI Interaction actions.
 
Top