microsoft / appcenter-sdk-android

Development repository for the App Center SDK for Android
Other
276 stars 134 forks source link

Failed to install app update #1674

Closed arunprasath218 closed 1 year ago

arunprasath218 commented 1 year ago

Description

Hi, In App Update is not working. After click download button on the dialog. The APK will get downloaded but it wont update the app. Instead an error toast will be displayed "Failed to install app update". This issue is very similar to #1550. Its working properly on my OnePlus Nord but not working on my Android Kiosk Device.

Confirmation to install a new release dialog was not asked in my Kiosk but it was asked for my OnePlus Nord.

Video Link - https://drive.google.com/file/d/1FkxWAgDhB_VicMPsldm1Iwy1BGjb1pa9/view?usp=sharing

Logs

2023-02-13 14:44:05.375 7730-7730/com.aarun.myapplication I/AppCenter: App Center SDK configured successfully. 2023-02-13 14:44:05.377 7730-7730/com.aarun.myapplication D/AppCenter: Cannot read instrumentation variables in a non-test environment. 2023-02-13 14:44:05.381 7730-7730/com.aarun.myapplication D/AppCenter: Cannot read instrumentation variables in a non-test environment. 2023-02-13 14:44:05.398 7730-7756/com.aarun.myapplication D/AppCenter: Loaded stored sessions: {1676270580688=1676270580688//1676270580688, 1676270580890=1676270580890/4f13ff87-a1f4-4da5-8119-517b01611581/1676270580688, 1676270600068=1676270600068//1676270600058, 1676270600377=1676270600377/731c2eba-c69b-4321-ab30-45f86555569d/1676270600058} 2023-02-13 14:44:05.511 7730-7761/com.aarun.myapplication D/AppCenter: Network 100 is available. 2023-02-13 14:44:05.511 7730-7761/com.aarun.myapplication D/AppCenter: Network has been connected. 2023-02-13 14:44:05.547 7730-7756/com.aarun.myapplication I/AppCenter: Changed maximum database size to 10485760 bytes. 2023-02-13 14:44:05.548 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_core) 2023-02-13 14:44:05.557 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.559 7730-7756/com.aarun.myapplication D/AppCenter: App Center initialized. 2023-02-13 14:44:05.569 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(group_distribute) 2023-02-13 14:44:05.569 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(group_distribute/one) 2023-02-13 14:44:05.569 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_distribute) 2023-02-13 14:44:05.580 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_distribute) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.580 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_distribute/one) 2023-02-13 14:44:05.581 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_distribute/one) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.595 7730-7756/com.aarun.myapplication I/AppCenter: Distribute service started from application. 2023-02-13 14:44:05.596 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(group_analytics) 2023-02-13 14:44:05.596 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(group_analytics/one) 2023-02-13 14:44:05.596 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_analytics) 2023-02-13 14:44:05.598 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics) pendingLogCount=0 batchTimeInterval=6000 2023-02-13 14:44:05.598 7730-7756/com.aarun.myapplication D/AppCenter: The timer for group_analytics channel finished. 2023-02-13 14:44:05.599 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_analytics/one) 2023-02-13 14:44:05.607 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics/one) pendingLogCount=0 batchTimeInterval=6000 2023-02-13 14:44:05.622 7730-7756/com.aarun.myapplication D/AppCenter: The timer for group_analytics/one channel finished. 2023-02-13 14:44:05.626 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_analytics_critical) 2023-02-13 14:44:05.628 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics_critical) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.628 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(group_analytics_critical/one) 2023-02-13 14:44:05.629 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics_critical/one) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.630 7730-7756/com.aarun.myapplication I/AppCenter: Analytics service started from application. 2023-02-13 14:44:05.631 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(groupErrors) 2023-02-13 14:44:05.631 7730-7756/com.aarun.myapplication D/AppCenter: removeGroup(groupErrors/one) 2023-02-13 14:44:05.631 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(groupErrors) 2023-02-13 14:44:05.633 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(groupErrors) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.633 7730-7756/com.aarun.myapplication D/AppCenter: addGroup(groupErrors/one) 2023-02-13 14:44:05.635 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(groupErrors/one) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:05.647 7730-7756/com.aarun.myapplication D/AppCenterCrashes: No previous minidump sub-folders. 2023-02-13 14:44:05.648 7730-7756/com.aarun.myapplication I/AppCenter: Crashes service started from application. 2023-02-13 14:44:05.687 7730-7756/com.aarun.myapplication D/AppCenter: Storing a log to the Persistence database for log type startService with flags=1 2023-02-13 14:44:05.734 7730-7730/com.aarun.myapplication D/AppCenterDistribute: InstallerPackageName=null 2023-02-13 14:44:05.734 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Resume distribute workflow... 2023-02-13 14:44:05.734 7730-7730/com.aarun.myapplication I/AppCenterDistribute: Get latest release details... 2023-02-13 14:44:05.734 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Check if we need to report release installation.. 2023-02-13 14:44:05.735 7730-7730/com.aarun.myapplication D/AppCenterDistribute: New release was downloaded but not installed yet, skip reporting. 2023-02-13 14:44:05.748 7730-7756/com.aarun.myapplication D/AppCenter: Stored a log to the Persistence database for log type startService with databaseId=6 2023-02-13 14:44:05.749 7730-7756/com.aarun.myapplication D/AppCenter: enqueue(group_core) pendingLogCount=1 2023-02-13 14:44:05.749 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_core) pendingLogCount=1 batchTimeInterval=3000 2023-02-13 14:44:05.749 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityResumed 2023-02-13 14:44:05.756 7730-7756/com.aarun.myapplication D/AppCenter: Storing a log to the Persistence database for log type startSession with flags=1 2023-02-13 14:44:05.766 7730-7773/com.aarun.myapplication V/AppCenterDistribute: Calling https://api.appcenter.ms/v0.1/public/sdk/apps/****************************2cfaf51f/releases/latest?release_hash=3e886bb6647d96dc6a4b950ac6ab79246453cc5ebc2335cc0eca51427c167299... 2023-02-13 14:44:05.766 7730-7773/com.aarun.myapplication V/AppCenterDistribute: Headers: {} 2023-02-13 14:44:05.801 7730-7756/com.aarun.myapplication D/AppCenter: Stored a log to the Persistence database for log type startSession with databaseId=7 2023-02-13 14:44:05.803 7730-7756/com.aarun.myapplication D/AppCenter: enqueue(group_analytics) pendingLogCount=1 2023-02-13 14:44:05.804 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics) pendingLogCount=1 batchTimeInterval=6000 2023-02-13 14:44:05.804 7730-7756/com.aarun.myapplication D/AppCenter: The timer value for group_analytics has been saved. 2023-02-13 14:44:07.564 7730-7773/com.aarun.myapplication V/AppCenter: HTTP response status=200 payload={"app_name":"kiosk","app_display_name":"kiosk","app_os":"Android","release_notes_url":"https://install.appcenter.ms/users/queuemed.developer-gmail.com/apps/kiosk/distribution_groups/SGGSGGS","owner":{"name":"queuemed.developer-gmail.com","display_name":"QueueMed Healthtech"},"is_external_build":false,"origin":"appcenter","id":9,"version":"60","short_version":"1.9","size":4700110,"min_os":"5.0","android_min_api_level":"21","device_family":null,"bundle_identifier":"com.aarun.myapplication","fingerprint":"464245b872500b47d9d5916906023915","uploaded_at":"2023-02-13T06:37:48.473Z","download_url":"https://appcenter-filemanagement-distrib4ede6f06e.azureedge.net/2c6af370-d2e4-4a80-b166-40c66cdc29c5/app-release.apk?sv=2019-02-02&sr=c&sig=nHQxu6uqCRPMpEkzmbyQo3gM3GpwInMLPbaTJPb%2FNTM%3D&se=2023-02-14T06%3A44%3A08Z&sp=r","install_url":"https://appcenter-filemanagement-distrib4ede6f06e.azureedge.net/2c6af370-d2e4-4a80-b166-40c66cdc29c5/app-release.apk?sv=2019-02-02&sr=c&sig=nHQxu6uqCRPMpEkzmbyQo3gM3GpwInMLPbaTJPb%2FNTM%3D&se=2023-02-14T06%3A44%3A08Z&sp=r","mandatory_update":true,"enabled":true,"fileExtension":"apk","is_latest":true,"release_notes":"","can_resign":null,"package_hashes":["c46504dc1744b0fffb6954fe09135d4d65ec2cd7ea29941ef746e4a7ab34edbc"],"destination_type":"group","status":"available","distribution_group_id":"50f183f6-9da9-442c-82a8-c5dd1f107414","distribution_groups":[{"id":"50f183f6-9da9-442c-82a8-c5dd1f107414","name":"SGGSGGS","origin":"appcenter","display_name":"SGGSGGS","is_public":true}]} 2023-02-13 14:44:07.567 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Stored release hash doesn't match current installation, probably downloaded but not installed yet, keep in store 2023-02-13 14:44:07.567 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Check if latest release is more recent. 2023-02-13 14:44:07.567 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Latest release more recent=true 2023-02-13 14:44:07.567 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Release is mandatory, ignoring any postpone action. 2023-02-13 14:44:07.567 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Removing download and notification id=36 2023-02-13 14:44:07.568 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Latest release is more recent. 2023-02-13 14:44:07.568 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Show default update dialog. 2023-02-13 14:44:08.753 7730-7756/com.aarun.myapplication D/AppCenter: triggerIngestion(group_core) pendingLogCount=1 2023-02-13 14:44:08.753 7730-7756/com.aarun.myapplication D/AppCenter: Trying to get 1 logs from the Persistence database for group_core 2023-02-13 14:44:08.757 7730-7756/com.aarun.myapplication D/AppCenter: Returning 1 log(s) with an ID, 813d88ed-8a12-439d-9abe-a0fb2559946d 2023-02-13 14:44:08.757 7730-7756/com.aarun.myapplication D/AppCenter: The SID/ID pairs for returning log(s) is/are: 2023-02-13 14:44:08.757 7730-7756/com.aarun.myapplication D/AppCenter: null / 6 2023-02-13 14:44:08.757 7730-7756/com.aarun.myapplication D/AppCenter: ingestLogs(group_core,813d88ed-8a12-439d-9abe-a0fb2559946d) pendingLogCount=0 2023-02-13 14:44:08.758 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:08.759 7730-7773/com.aarun.myapplication V/AppCenter: Calling https://in.appcenter.ms/logs?api-version=1.0.0... 2023-02-13 14:44:08.760 7730-7773/com.aarun.myapplication V/AppCenter: Headers: {Install-ID=71bb2335-5cec-410c-bade-6dcbe69251a1, App-Secret=****2cfaf51f, Content-Type=application/json} 2023-02-13 14:44:08.760 7730-7773/com.aarun.myapplication V/AppCenter: { "logs": [ { "type": "startService", "timestamp": "2023-02-13T06:44:05.686Z", "distributionGroupId": "50f183f6-9da9-442c-82a8-c5dd1f107414", "device": { "sdkName": "appcenter.android", "sdkVersion": "5.0.0", "model": "rk3568_r", "oemName": "rockchip", "osName": "Android", "osVersion": "11", "osBuild": "RQ3A.210705.001", "osApiLevel": 30, "locale": "en_US", "timeZoneOffset": 480, "screenSize": "1080x1864", "appVersion": "1.8", "appBuild": "59", "appNamespace": "com.aarun.myapplication" }, "services": [ "Distribute", "Analytics", "Crashes" ], "isOneCollectorEnabled": false } ] } 2023-02-13 14:44:11.805 7730-7756/com.aarun.myapplication D/AppCenter: triggerIngestion(group_analytics) pendingLogCount=1 2023-02-13 14:44:11.805 7730-7756/com.aarun.myapplication D/AppCenter: Trying to get 1 logs from the Persistence database for group_analytics 2023-02-13 14:44:11.809 7730-7756/com.aarun.myapplication D/AppCenter: Returning 1 log(s) with an ID, b2e95f42-b9d2-41ee-a402-cf5704e86595 2023-02-13 14:44:11.809 7730-7756/com.aarun.myapplication D/AppCenter: The SID/ID pairs for returning log(s) is/are: 2023-02-13 14:44:11.809 7730-7756/com.aarun.myapplication D/AppCenter: c8926065-34e0-434b-92b0-cf51e593b5cc / 7 2023-02-13 14:44:11.809 7730-7756/com.aarun.myapplication D/AppCenter: ingestLogs(group_analytics,b2e95f42-b9d2-41ee-a402-cf5704e86595) pendingLogCount=0 2023-02-13 14:44:11.810 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics) pendingLogCount=0 batchTimeInterval=6000 2023-02-13 14:44:11.810 7730-7756/com.aarun.myapplication D/AppCenter: The timer for group_analytics channel finished. 2023-02-13 14:44:11.811 7730-7791/com.aarun.myapplication V/AppCenter: Calling https://in.appcenter.ms/logs?api-version=1.0.0... 2023-02-13 14:44:11.811 7730-7791/com.aarun.myapplication V/AppCenter: Headers: {Install-ID=71bb2335-5cec-410c-bade-6dcbe69251a1, App-Secret=****2cfaf51f, Content-Type=application/json} 2023-02-13 14:44:11.812 7730-7791/com.aarun.myapplication V/AppCenter: { "logs": [ { "type": "startSession", "timestamp": "2023-02-13T06:44:05.756Z", "sid": "c8926065-34e0-434b-92b0-cf51e593b5cc", "distributionGroupId": "50f183f6-9da9-442c-82a8-c5dd1f107414", "device": { "sdkName": "appcenter.android", "sdkVersion": "5.0.0", "model": "rk3568_r", "oemName": "rockchip", "osName": "Android", "osVersion": "11", "osBuild": "RQ3A.210705.001", "osApiLevel": 30, "locale": "en_US", "timeZoneOffset": 480, "screenSize": "1080x1864", "appVersion": "1.8", "appBuild": "59", "appNamespace": "com.aarun.myapplication" } } ] } 2023-02-13 14:44:14.973 7730-7730/com.aarun.myapplication D/AppCenterDistribute: There is no need to request permissions in runtime on Android earlier than 6.0. 2023-02-13 14:44:14.973 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Schedule download... 2023-02-13 14:44:14.977 7730-7794/com.aarun.myapplication D/AppCenterDistribute: Start downloading new release from https://appcenter-filemanagement-distrib4ede6f06e.azureedge.net/2c6af370-d2e4-4a80-b166-40c66cdc29c5/app-release.apk?sv=2019-02-02&sr=c&sig=nHQxu6uqCRPMpEkzmbyQo3gM3GpwInMLPbaTJPb%2FNTM%3D&se=2023-02-14T06%3A44%3A08Z&sp=r 2023-02-13 14:44:15.075 7730-7794/com.aarun.myapplication D/AppCenterDistribute: Start download 1.9 (60) update. 2023-02-13 14:44:15.097 7730-7793/com.aarun.myapplication V/AppCenterDistribute: Downloading 1.9 (60) update: 0 KiB / 0 KiB 2023-02-13 14:44:15.612 7730-7793/com.aarun.myapplication V/AppCenterDistribute: Downloading 1.9 (60) update: 0 KiB / 0 KiB 2023-02-13 14:44:16.126 7730-7793/com.aarun.myapplication V/AppCenterDistribute: Downloading 1.9 (60) update: 71 KiB / 4589 KiB 2023-02-13 14:44:17.661 7730-7793/com.aarun.myapplication V/AppCenterDistribute: Downloading 1.9 (60) update: 71 KiB / 4589 KiB 2023-02-13 14:44:18.167 7730-7793/com.aarun.myapplication V/AppCenterDistribute: Downloading 1.9 (60) update: 3686 KiB / 4589 KiB 2023-02-13 14:44:18.527 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Receive broadcast action: android.intent.action.DOWNLOAD_COMPLETE 2023-02-13 14:44:18.528 7730-7793/com.aarun.myapplication D/AppCenterDistribute: Check download id=37 2023-02-13 14:44:18.548 7730-7801/com.aarun.myapplication D/AppCenterDistribute: Download was successful for id=37 2023-02-13 14:44:18.555 7730-7730/com.aarun.myapplication I/AppCenterDistribute: Start installing new release... 2023-02-13 14:44:18.555 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Stored release details: group id=50f183f6-9da9-442c-82a8-c5dd1f107414 release hash=c46504dc1744b0fffb6954fe09135d4d65ec2cd7ea29941ef746e4a7ab34edbc release id=9 2023-02-13 14:44:18.557 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Trying to install update via PackageInstaller. 2023-02-13 14:44:18.558 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Register receiver for installing a new release. 2023-02-13 14:44:18.571 7730-7730/com.aarun.myapplication V/AppCenterDistribute: The install session was created. sessionId=1410086122 2023-02-13 14:44:18.709 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Installation progress: 80%. sessionId=1410086122 2023-02-13 14:44:18.711 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Receive broadcast action: com.microsoft.appcenter.action.INSTALL_STATUS 2023-02-13 14:44:18.711 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.STATUS: -1 2023-02-13 14:44:18.711 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.SESSION_ID: 1410086122 2023-02-13 14:44:18.711 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.intent.extra.INTENT: Intent { act=android.content.pm.action.CONFIRM_INSTALL pkg=com.android.packageinstaller (has extras) } 2023-02-13 14:44:18.711 7730-7730/com.aarun.myapplication I/AppCenterDistribute: Ask confirmation to install a new release. 2023-02-13 14:44:18.737 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityPaused 2023-02-13 14:44:18.768 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityResumed 2023-02-13 14:44:18.768 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: noLogSentForLong=false wasBackgroundForLong=false 2023-02-13 14:44:18.773 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityPaused 2023-02-13 14:44:18.944 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Installation progress: 90%. sessionId=1410086122 2023-02-13 14:44:18.964 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Receive broadcast action: com.microsoft.appcenter.action.INSTALL_STATUS 2023-02-13 14:44:18.964 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.STATUS: 1 2023-02-13 14:44:18.966 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.PACKAGE_NAME: com.aarun.myapplication 2023-02-13 14:44:18.966 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.SESSION_ID: 1410086122 2023-02-13 14:44:18.966 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.LEGACY_STATUS: -110 2023-02-13 14:44:18.966 7730-7730/com.aarun.myapplication V/AppCenterDistribute: android.content.pm.extra.STATUS_MESSAGE: INSTALL_FAILED_INTERNAL_ERROR: Session relinquished 2023-02-13 14:44:18.966 7730-7730/com.aarun.myapplication E/AppCenterDistribute: Failed to install a new release: INSTALL_FAILED_INTERNAL_ERROR: Session relinquished 2023-02-13 14:44:18.991 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Complete current updating process. 2023-02-13 14:44:19.000 7730-7730/com.aarun.myapplication D/AppCenterDistribute: Unregister receiver for installing a new release. 2023-02-13 14:44:19.019 7730-7730/com.aarun.myapplication V/AppCenterDistribute: The installation has been finished. sessionId=1410086122, success=false 2023-02-13 14:44:19.019 7730-7730/com.aarun.myapplication V/AppCenterDistribute: Release installer activity result=0 2023-02-13 14:44:19.101 7730-7773/com.aarun.myapplication V/AppCenter: HTTP response status=200 payload={"status":"Success","validDiagnosticsIds":[],"throttledDiagnosticsIds":[],"correlationId":"292a019b-5517-4a78-b2de-883745ab87b4"} 2023-02-13 14:44:19.119 7730-7756/com.aarun.myapplication D/AppCenter: Deleting logs from the Persistence database for group_core with 813d88ed-8a12-439d-9abe-a0fb2559946d 2023-02-13 14:44:19.119 7730-7756/com.aarun.myapplication D/AppCenter: The IDs for deleting log(s) is/are: 2023-02-13 14:44:19.119 7730-7756/com.aarun.myapplication D/AppCenter: 6 2023-02-13 14:44:19.158 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000 2023-02-13 14:44:19.158 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityResumed 2023-02-13 14:44:19.159 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: noLogSentForLong=false wasBackgroundForLong=false 2023-02-13 14:44:19.674 7730-7791/com.aarun.myapplication V/AppCenter: HTTP response status=200 payload={"status":"Success","validDiagnosticsIds":[],"throttledDiagnosticsIds":[],"correlationId":"e4f4bfcd-99ce-495f-8232-8de57e2a3910"} 2023-02-13 14:44:19.675 7730-7756/com.aarun.myapplication D/AppCenter: Deleting logs from the Persistence database for group_analytics with b2e95f42-b9d2-41ee-a402-cf5704e86595 2023-02-13 14:44:19.675 7730-7756/com.aarun.myapplication D/AppCenter: The IDs for deleting log(s) is/are: 2023-02-13 14:44:19.675 7730-7756/com.aarun.myapplication D/AppCenter: 7 2023-02-13 14:44:19.690 7730-7756/com.aarun.myapplication D/AppCenter: checkPendingLogs(group_analytics) pendingLogCount=0 batchTimeInterval=6000 2023-02-13 14:44:19.690 7730-7756/com.aarun.myapplication D/AppCenter: The timer for group_analytics channel finished. 2023-02-13 14:49:35.708 7730-7756/com.aarun.myapplication D/AppCenterAnalytics: onActivityPaused 2023-02-13 14:49:36.071 7730-7730/com.aarun.myapplication D/AppCenterCrashes: The memory running level (20) was saved.

Repro Steps

  1. New Project with Empty Activity. Integrate AppCenter SDK
  2. Add 2 APK in AppCenter
  3. Install First Apk, after install will get dialog to install the latest APK

Details

  1. Which SDK version are you using?
    • 5.0.0
  2. Which OS version did you experience the issue on?
    • e.g. Android 11
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    • e.g. Custom Made Android Device (Kiosk)
arunprasath218 commented 1 year ago

Hi, I just want to ask is there any update regarding this ticket?

shadyabarada commented 1 year ago

Hi @arunprasath218 thank you for your patience, may I please ask you to check the following in your Kiosk device:

  1. Make sure the device has enough storage to install the update.
  2. Is the app installed on the device's system partition (read-only)? If so, it cannot be updated via the in-app update process. you can use the ADB method.
  3. Does your device allow installation from unknown sources?
  4. Does the in app update work for you for earlier versions of the SDK?
arunprasath218 commented 1 year ago

Hi @shadyabarada

  1. Yes there is enough storage
  2. I dont think its installed on the device's system partition
  3. yes it allow unknown source
  4. This is the first time I am integrating it

Anyways, I manually implemented the In-App Update using the download URL provided by AppCenter and its working well thanks.

My Solution after download is completed, I use FileProvider

val fileUri: Uri = FileProvider.getUriForFile(Objects.requireNonNull(activity.applicationContext), BuildConfig.APPLICATION_ID + ".provider", file) val updateAppIntent = Intent(Intent.ACTION_VIEW, fileUri) updateAppIntent.putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true) updateAppIntent.setDataAndType(fileUri, "application/vnd.android" + ".package-archive") updateAppIntent.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK updateAppIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) activity.startActivity(updateAppIntent) activity.finish()

AnatolyPristensky commented 1 year ago

@arunprasath218, So as far as I understand your issue is resolved?

arunprasath218 commented 1 year ago

Yes