Work Mode - Prevent App from Loading

Post your questions and help other users.

Moderator: Martin

Post Reply
ar234948
Posts: 6
Joined: 01 Jun 2016 21:15

Work Mode - Prevent App from Loading

Post by ar234948 » 17 Jul 2016 18:49

For a work-mode setting, is there an effective method of preventing apps from loading?

All I can think of, is the following:

App Task Started: {App Name}
Time Range X to X
Kill App Process: KILL(9) OR TERM(15) // same result

I do not wish to use this method, because force killing/terminating an app seems to have undesirable effects. (The app may lose credentials, not load correctly on next load (possibly a caching/memory issue), etc.

The thread below is the closest solution that I could find off-hand, but isn't what I am looking for.
viewtopic.php?f=4&t=2951

Thank you for any suggestions.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Work Mode - Prevent App from Loading

Post by Martin » 17 Jul 2016 19:09

If your device is rooted, you could try to disable the undesired apps (Execute Root Command: pm disable <app>, it's listed in the example commands of the action behind the [...]-button and will also show an app selection to make it more comfortable). This will likely have some side effects like removing shortcuts on the home screen. You could mitigate this issue by using trigger Shortcut and action Start App to launch the app.
Alternatively you could use action Show Home Screen as soon as the undesired app is started.

Regards,
Martin

Post Reply