Is it possible to force an Android+ package to wait until a program is not running before installing?
We've had similar threads on this very topic before!
Unfortunately we don't have a great native solution available. I did recently think of a solution however that involves the following components that might be a suitable workaround. (assuming Android+)
- Use the SOTI Lockdown Utility
- Add a script to the SOTI Lockdown Utility, configured to run on launch/startup
- Configure that script to always install an APK in a given location (/sdcard/yourapp.apk)
- Distribute your updated app APK as just a file instead of an APK install to that location, maintaining the same apk name so that the script will always work(/sdcard/yourapp.apk)
The end result is a solution that would distribute the APK to the device but wouldn't install it until the device was rebooted (manual or scripted) which would guarantee that the app wasn't necessarily in use. The draw back is that the app would be re-installed every time that the device is rebooted.
Ultimately I'd want a "Package Name Not In Foreground" option as one of the Profile Application criteria.
That's a great idea. The other thing I noticed is that you can set it to install when the battery is at a minimum level that you specify. The phones are docked when not in use, so I can set the minimum battery to 100%; if the phone is at 100% i know the phone isn't in use.
I like the idea of rebooting to install though so will think about how I want to do this. Thanks for the reply!