I need to deploy and update various enterprise applications to Android devices given to a limited number of users.
These applications are not supposed to be published on Google Play but must be distributed via a separate channel.
What I need to do is an “enterprise package manager” application to automatically check for new apps/updates and automatically trigger installation of new or updated APKs without asking user consent first.
I know that, by design, Android doesn’t allow 3rd party applications to interact with installed applications. I also know that rooted phones don’t have this problem because you can inject any APK into the device.
- If I cook a ROM (even based on CWM) with the “enterprise package manager” installed as system application, but without
subinary (it’s still an enterprise phone…), will that program be able to install new apps automatically? - How am I supposed to install an application without asking for consent? I mean, I need a basic code sample and permissions, if required
- Anyway, do system apps run as root user? I remember so
If you want to check for your application which is on somewhere on your server you have to check for Update in every 24 hour once, if there is any update available then it will navigate to the async task where your updated version build will get installed
now it will navigate to:
I am checking for update once in 24 hours, if there is any update available then it will show pop up to upgrade your application otherwise will save your last checking time in Preferences.
Now this will allow you to update and install your application and this will check for next update after 24 hours, you may need to work on conditions to check for update. Please change name of your .apk file and URL.
You will need following permissions:
Best of luck.