Android silently updating apk and then restart the app

前端 未结 1 1646
花落未央
花落未央 2021-01-27 22:44

Okay first of all I want to clear, I\'m not trying to achieve anything fishy. We have our own enterprise app that only goes with our own hardware (we are not using Google play s

相关标签:
1条回答
  • 2021-01-27 23:10

    Okay, that's silly though but I was not updating the versionCode of the update apk (Although I strongly believe that the broadcast receiver should trigger in case when pm install -r command is ran regardless of the versionCode, because the package is replaced). When I increased the versionCode from the current apk. The AppUpdateBroadcastReceiver did got triggered.

    0 讨论(0)
提交回复
热议问题