I\'m developing an app that runs as Device Owner, and I want to build an automatic updater inside it.
To do it I use the PackageInstaller, as I have the privileges t
Starting from about Android 5 (I don't know the exact API level), Android will send a broadcast Intent with ACTION="android.intent.action.MY_PACKAGE_REPLACED" after your app is updated. Just add
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
to your <receiver> declaration and you should be able to listen for this and restart your app in onReceive().