AutoSilentUpdateKotlin
1.0.0
This sample shows how to update Android app silently without user confirmation with a device owner app. It works on Android 6.0 and higher.
For more information see https://sisik.eu/blog/android/dev-admin/update-app
adb install -r -t app.apk
adb shell dpm set-device-owner eu.sisik.devowner/.DevAdminReceiverFor Android 7.0 and higher you also need to set the
testOnlyflag in AndroidManifest.xml
On Android 7.0 and higher you might need to remove the
testOnlyflag from AndroidManifest.xml again for the updates
adb push app-update.apk /data/local/tmp