Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inapp Update Fails #1418

Closed
mohib-irshad-10p opened this issue May 8, 2020 · 20 comments
Closed

Inapp Update Fails #1418

mohib-irshad-10p opened this issue May 8, 2020 · 20 comments
Labels

Comments

@mohib-irshad-10p
Copy link

mohib-irshad-10p commented May 8, 2020

There are times when uploading a mandatory app update fails. I am using the default popup that shows when an app update is available. Once download completes, a toast message is shown saying "Failed to download app update"
and on Logcat, I can see:
"AppCenterDistribute: Failed to download apk-name (version code) update: Installer not found"
On debugging the SDK itself, I found that
intent.resolveActivity(mContext.getPackageManager()) == null
on line 88 of file ReleaseDownloadListener.java is true which probably why this is happening.

Also, please note that this does not happen for every build but if it is happening on a build, it will happen on every phone that I could test on, including emulator as well and real devices.

I've also tried the following:

  • I've uploaded several new builds, and tried to update to them but still failed.
  • Created builds with old version code and sideloaded them on the device and then tried to update with the last one from Appcenter and still failed.

Please someone help.

@Jamminroot
Copy link
Contributor

Hey @mohib-irshad-10p, thanks for getting in touch. Can you clarify a few things, please:

  • Can you provide verbose logs as described in documentation? The AppCenter.setLogLevel(Log.VERBOSE); part right before calling .Start(...)
  • What SDK version are you using?
  • Also, can you check that app has external storage write permissions as described here?
  • Are you using standard webview, or from a different browser?
  • Are you distributing build for public destribution group, or private distribution group?

@ashikns
Copy link

ashikns commented May 9, 2020

I'm facing the same issue as well.

  • Sdk version 3.2.0. Note that my app is built from Unity3D.
  • Running Android 10, so permission is not relevant I guess?
  • Standard webview.
  • Private distribution group.
  • Logs include a link that gives download access to apk so can't. Please advise on which portions of the log you need.

@mohib-irshad-10p
Copy link
Author

Thank you @Jamminroot for responding.

  • Logs are attached at the bottom of this comment in which I've replaced original package name with "com.package.name", original app name with "MYAPP" and places where other sensitive information was placed now contains "Manually removed value from here"
  • SDK version being used is 3.2.1. Using Android 10 and Android Pie.
  • App does have the permission.
  • This is public distribution group so App does not open a WebView nor browser.

2020-05-09 20:36:14.875 19197-19197/? I/com.package.name: Late-enabling -Xcheck:jni
2020-05-09 20:36:14.920 19197-19197/? E/com.package.name: Unknown bits set in runtime_flags: 0x8000
2020-05-09 20:36:15.334 19197-19197/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-05-09 20:36:15.338 19197-19197/? W/com.package.name: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection, allowed)
2020-05-09 20:36:15.338 19197-19197/? W/com.package.name: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection, allowed)
2020-05-09 20:36:15.338 19197-19197/? W/com.package.name: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed)
2020-05-09 20:36:15.378 19197-19197/? I/AppCenter: App Center SDK configured successfully.
2020-05-09 20:36:15.384 19197-19197/? D/AppCenter: Cannot read instrumentation variables in a non-test environment.
2020-05-09 20:36:15.386 19197-19197/? D/AppCenter: Cannot read instrumentation variables in a non-test environment.
2020-05-09 20:36:15.390 19197-19233/? D/AppCenter: Loaded stored sessions: {1589038524552=1589038524552//1589038524549}
2020-05-09 20:36:15.400 19197-19236/? D/AppCenter: Network 100 is available.
2020-05-09 20:36:15.400 19197-19236/? D/AppCenter: Network has been connected.
2020-05-09 20:36:15.416 19197-19233/? I/AppCenter: Changed maximum database size to 10485760 bytes.
2020-05-09 20:36:15.416 19197-19233/? D/AppCenter: addGroup(group_core)
2020-05-09 20:36:15.419 19197-19233/? D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:15.421 19197-19233/? D/AppCenter: App Center initialized.
2020-05-09 20:36:15.422 19197-19233/? D/AppCenter: removeGroup(groupErrors)
2020-05-09 20:36:15.422 19197-19233/? D/AppCenter: removeGroup(groupErrors/one)
2020-05-09 20:36:15.423 19197-19233/? D/AppCenter: addGroup(groupErrors)
2020-05-09 20:36:15.425 19197-19233/? D/AppCenter: checkPendingLogs(groupErrors) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:15.425 19197-19233/? D/AppCenter: addGroup(groupErrors/one)
2020-05-09 20:36:15.426 19197-19233/? D/AppCenter: checkPendingLogs(groupErrors/one) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:15.429 19197-19233/? D/AppCenterCrashes: No previous minidump sub-folders.
2020-05-09 20:36:15.430 19197-19233/? I/AppCenter: Crashes service started from application.
2020-05-09 20:36:15.431 19197-19233/? D/AppCenter: removeGroup(group_distribute)
2020-05-09 20:36:15.431 19197-19233/? D/AppCenter: removeGroup(group_distribute/one)
2020-05-09 20:36:15.431 19197-19233/? D/AppCenter: addGroup(group_distribute)
2020-05-09 20:36:15.433 19197-19233/? D/AppCenter: checkPendingLogs(group_distribute) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:15.434 19197-19233/? D/AppCenter: addGroup(group_distribute/one)
2020-05-09 20:36:15.436 19197-19233/? D/AppCenter: checkPendingLogs(group_distribute/one) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:15.437 19197-19233/? D/AppCenterDistribute: Distribute workflow will be resumed on activity resume event.
2020-05-09 20:36:15.437 19197-19233/? I/AppCenter: Distribute service started from application.
2020-05-09 20:36:15.449 19197-19233/? D/AppCenter: Storing a log to the Persistence database for log type startService with flags=1
2020-05-09 20:36:15.462 19197-19233/? D/AppCenter: Stored a log to the Persistence database for log type startService with databaseId=2
2020-05-09 20:36:15.462 19197-19233/? D/AppCenter: enqueue(group_core) pendingLogCount=1
2020-05-09 20:36:15.463 19197-19233/? D/AppCenter: checkPendingLogs(group_core) pendingLogCount=1 batchTimeInterval=3000
2020-05-09 20:36:15.607 19197-19197/? W/com.package.name: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2020-05-09 20:36:15.607 19197-19197/? W/com.package.name: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2020-05-09 20:36:15.848 19197-19197/? D/AppCenterDistribute: Resetting workflow on entering foreground.
2020-05-09 20:36:15.854 19197-19197/? D/AppCenterDistribute: Resume distribute workflow...
2020-05-09 20:36:15.856 19197-19197/? D/AppCenterDistribute: InstallerPackageName=null
2020-05-09 20:36:15.860 19197-19197/? D/AppCenterDistribute: Show default update dialog.
2020-05-09 20:36:15.909 19197-19197/? D/AppCenterDistribute: Get latest release details...
2020-05-09 20:36:15.910 19197-19197/? D/AppCenterDistribute: Check if we need to report release installation..
2020-05-09 20:36:15.910 19197-19197/? D/AppCenterDistribute: Current release was already reported, skip reporting.
2020-05-09 20:36:15.916 19197-19246/? V/AppCenterDistribute: Calling (Manually removed value from here)
2020-05-09 20:36:15.917 19197-19246/? V/AppCenterDistribute: Headers: {}
2020-05-09 20:36:15.950 19197-19237/com.package.name I/Adreno: QUALCOMM build : 4a00b69, I4e7e888065
Build Date : 04/09/19
OpenGL ES Shader Compiler Version: EV031.26.06.00
Local Branch : mybranche95ae4c8-d77f-f18d-a9ef-1458d0b52ae8
Remote Branch : quic/gfx-adreno.lnx.1.0
Remote Branch : NONE
Reconstruct Branch : NOTHING
2020-05-09 20:36:15.950 19197-19237/com.package.name I/Adreno: Build Config : S L 8.0.5 AArch64
2020-05-09 20:36:15.954 19197-19237/com.package.name I/Adreno: PFP: 0x005ff110, ME: 0x005ff066
2020-05-09 20:36:15.977 19197-19237/com.package.name W/Gralloc3: mapper 3.x is not supported
2020-05-09 20:36:17.756 19197-19246/com.package.name V/AppCenter: HTTP response status=200 payload={"app_name":"MYAPP","app_display_name":"MYAPP","app_os":"Android","app_icon_url":"Manually removed value from here","release_notes_url":"Manually removed value from here","owner":{"name":"Manually removed value from here","display_name":"Manually removed value from here"},"is_external_build":false,"origin":"appcenter","id":6,"version":"2020050802","short_version":"MYAPP.201.1","size":10945123,"min_os":"8.0","android_min_api_level":"26","device_family":null,"bundle_identifier":"com.package.name","fingerprint":"Manually removed value from here","uploaded_at":"2020-05-08T18:16:57.529Z","download_url":"Manually removed value from here","install_url":"Manually removed value from here","mandatory_update":true,"enabled":true,"is_latest":true,"release_notes":"","can_resign":null,"package_hashes":["Manually removed value from here"],"destination_type":"group","status":"available","distribution_group_id":"Manually removed value from here","distribution_groups":[{"id":"Manually removed value from here","name":"Manually removed value from here","origin":"appcenter","display_name":"Manually removed value from here","is_public":true}]}
2020-05-09 20:36:17.769 19197-19197/com.package.name D/AppCenterDistribute: Check if latest release is more recent.
2020-05-09 20:36:17.770 19197-19197/com.package.name D/AppCenterDistribute: Latest release more recent=true
2020-05-09 20:36:17.770 19197-19197/com.package.name D/AppCenterDistribute: Release is mandatory, ignoring any postpone action.
2020-05-09 20:36:17.770 19197-19197/com.package.name D/AppCenterDistribute: The latest release is mandatory and already being processed.
2020-05-09 20:36:18.468 19197-19233/com.package.name D/AppCenter: triggerIngestion(group_core) pendingLogCount=1
2020-05-09 20:36:18.469 19197-19233/com.package.name D/AppCenter: Trying to get 1 logs from the Persistence database for group_core
2020-05-09 20:36:18.491 19197-19233/com.package.name D/AppCenter: Returning 1 log(s) with an ID, 1d3ee1ed-32a3-4310-90c8-178fe3e2286d
2020-05-09 20:36:18.491 19197-19233/com.package.name D/AppCenter: The SID/ID pairs for returning log(s) is/are:
2020-05-09 20:36:18.492 19197-19233/com.package.name D/AppCenter: null / 2
2020-05-09 20:36:18.492 19197-19233/com.package.name D/AppCenter: ingestLogs(group_core,1d3ee1ed-32a3-4310-90c8-178fe3e2286d) pendingLogCount=0
2020-05-09 20:36:18.498 19197-19233/com.package.name D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:18.504 19197-19246/com.package.name V/AppCenter: Calling https://in.appcenter.ms/logs?api-version=1.0.0...
2020-05-09 20:36:18.505 19197-19246/com.package.name V/AppCenter: Headers: {Install-ID=Manually removed value from here, App-Secret=Manually removed value from here, Content-Type=application/json}
2020-05-09 20:36:18.509 19197-19246/com.package.name V/AppCenter: {
"logs": [
{
"type": "startService",
"timestamp": "2020-05-09T15:36:15.449Z",
"distributionGroupId": "Manually removed value from here",
"device": {
"sdkName": "appcenter.android",
"sdkVersion": "3.2.1",
"model": "Pixel",
"oemName": "Google",
"osName": "Android",
"osVersion": "10",
"osBuild": "QP1A.191005.007.A3",
"osApiLevel": 29,
"locale": "en_PK",
"timeZoneOffset": 300,
"screenSize": "1080x1878",
"appVersion": "MYAPP.201.1",
"carrierName": "StayHome",
"carrierCountry": "pk",
"appBuild": "2020050402",
"appNamespace": "com.package.name"
},
"services": [
"Crashes",
"Distribute"
]
}
]
}
2020-05-09 20:36:20.678 19197-19246/com.package.name V/AppCenter: HTTP response status=200 payload={"status":"Success","validDiagnosticsIds":[],"throttledDiagnosticsIds":[],"correlationId":"3fb61e9d-0d29-437c-b250-45fade31861a"}
2020-05-09 20:36:20.688 19197-19233/com.package.name D/AppCenter: Deleting logs from the Persistence database for group_core with 1d3ee1ed-32a3-4310-90c8-178fe3e2286d
2020-05-09 20:36:20.689 19197-19233/com.package.name D/AppCenter: The IDs for deleting log(s) is/are:
2020-05-09 20:36:20.690 19197-19233/com.package.name D/AppCenter: 2
2020-05-09 20:36:20.723 19197-19233/com.package.name D/AppCenter: checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000
2020-05-09 20:36:26.722 19197-19197/com.package.name D/AppCenterDistribute: Show new unknown sources dialog.
2020-05-09 20:36:26.777 19197-19237/com.package.name D/OpenGLRenderer: endAllActiveAnimators on 0x6b2f588300 (RippleDrawable) with handle 0x68e7aed7c0
2020-05-09 20:36:28.094 19197-19237/com.package.name D/OpenGLRenderer: endAllActiveAnimators on 0x71f5580000 (RippleDrawable) with handle 0x724dc00020
2020-05-09 20:36:28.784 19197-19197/com.package.name D/AppCenterCrashes: The memory running level (20) was saved.
2020-05-09 20:36:32.357 19197-19197/com.package.name D/AppCenterDistribute: Resetting workflow on entering foreground.
2020-05-09 20:36:32.360 19197-19197/com.package.name D/AppCenterDistribute: Resume distribute workflow...
2020-05-09 20:36:32.362 19197-19197/com.package.name D/AppCenterDistribute: Schedule download...
2020-05-09 20:36:32.374 19197-19428/com.package.name D/AppCenterDistribute: Start downloading new release from (Manually removed value from here)
2020-05-09 20:36:32.436 19197-19197/com.package.name V/AppCenterDistribute: Already checking or checked latest release.
2020-05-09 20:36:32.471 19197-19428/com.package.name D/AppCenterDistribute: Start download MYAPP.201.1 (2020050802) update.
2020-05-09 20:36:32.497 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 0 KiB / 0 KiB
2020-05-09 20:36:33.007 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 0 KiB / 0 KiB
2020-05-09 20:36:33.520 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 0 KiB / 0 KiB
2020-05-09 20:36:34.029 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 1 line
2020-05-09 20:36:34.572 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 0 KiB / 0 KiB
2020-05-09 20:36:35.090 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 71 KiB / 10688 KiB
2020-05-09 20:36:36.140 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 2 lines
2020-05-09 20:36:36.672 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 71 KiB / 10688 KiB
2020-05-09 20:36:37.204 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 71 KiB / 10688 KiB
2020-05-09 20:36:37.727 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 71 KiB / 10688 KiB
2020-05-09 20:36:38.245 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 71 KiB / 10688 KiB
2020-05-09 20:36:38.775 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 2070 KiB / 10688 KiB
2020-05-09 20:36:39.311 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 1 line
2020-05-09 20:36:39.847 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 2070 KiB / 10688 KiB
2020-05-09 20:36:40.377 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 2070 KiB / 10688 KiB
2020-05-09 20:36:40.907 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 3110 KiB / 10688 KiB
2020-05-09 20:36:41.439 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 1 line
2020-05-09 20:36:41.971 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 3110 KiB / 10688 KiB
2020-05-09 20:36:42.501 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 4222 KiB / 10688 KiB
2020-05-09 20:36:43.032 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 4222 KiB / 10688 KiB
2020-05-09 20:36:43.561 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 4222 KiB / 10688 KiB
2020-05-09 20:36:44.098 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 4222 KiB / 10688 KiB
2020-05-09 20:36:44.651 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 7174 KiB / 10688 KiB
2020-05-09 20:36:45.182 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 7174 KiB / 10688 KiB
2020-05-09 20:36:45.705 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 7174 KiB / 10688 KiB
2020-05-09 20:36:46.234 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 7174 KiB / 10688 KiB
2020-05-09 20:36:46.776 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 9496 KiB / 10688 KiB
2020-05-09 20:36:47.317 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 1 line
2020-05-09 20:36:47.849 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 9496 KiB / 10688 KiB
2020-05-09 20:36:48.373 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 9784 KiB / 10688 KiB
2020-05-09 20:36:48.905 19197-19246/com.package.name I/chatty: uid=10369(com.package.name) AsyncTask #1 identical 1 line
2020-05-09 20:36:49.441 19197-19246/com.package.name V/AppCenterDistribute: Downloading MYAPP.201.1 (2020050802) update: 9784 KiB / 10688 KiB
2020-05-09 20:36:49.559 19197-19246/com.package.name D/AppCenterDistribute: Check download id=4221
2020-05-09 20:36:49.591 19197-19446/com.package.name D/AppCenterDistribute: Download was successful for id=4221
2020-05-09 20:36:49.595 19197-19446/com.package.name D/AppCenterDistribute: Cannot resolve install intent for content://downloads/all_downloads/4221
2020-05-09 20:36:49.596 19197-19446/com.package.name E/AppCenterDistribute: Failed to download MYAPP.201.1 (2020050802) update: Installer not found

@mohib-irshad-10p
Copy link
Author

@Jamminroot I've more information on this.
I have 2 build variants for my application: Dev and Production. So, naturally, I created 2 apps on Appcenter for both environments. Last thursday, the update I sent for dev did get downloaded properly while the production one (which was first uploaded several hours after dev) was continuously refusing to download new updates.
Today, to test if dev is still working or not, I sent out a new build on dev and that too is not being downloaded anymore. The codebase is still at the position where it last worked.

@russelarms
Copy link
Contributor

@mohib-irshad-10p I was able to reproduce the issue, we're looking into it.

@mohib-irshad-10p
Copy link
Author

Ok, Thank you very much @russelarms :)

@brzezinol
Copy link

The same situation for me, I cannot update app on most part of devices.
What is plan for this issue?
Do I need to advice users to download update manually?

@mohib-irshad-10p
Copy link
Author

@russelarms Since it was previously working fine with current SDK, am I correct in assuming that there probably won't be any SDK update for this and something from the backend is just going to change and I can safely distribute my APK file for now and expect it to work automatically for future updates?

@russelarms
Copy link
Contributor

russelarms commented May 13, 2020

@mohib-irshad-10p
Indeed it was a backend issue with manual uploads (builds distributed from AC Build were not affected). It is already fixed for the new manual uploads. Our team is working on fixing already affected builds now.

@russelarms
Copy link
Contributor

@mohib-irshad-10p @ashikns @brzezinol
The problem should be fixed now. Please check and feel free to reopen the issue if you have any updates on this.

@mohib-irshad-10p
Copy link
Author

@russelarms Yes issues seems to be fixed now. Thank you very much for responding and fixing the issue so quickly :)

@donEgro
Copy link

donEgro commented Jan 14, 2021

Hi, we are experiencing this problem right now - we've set an old version to mandatory to force update of some obsolete versions, but the whole distribution stopped working. Doesn't matter if installed version is older or newer than the mandatory one, every update fails on 'Failed to download app update'. Could you help us, please?

  • SDK version 3.3.1
  • App permissions checked and confirmed
  • Distribution group - public

2021-01-14 10:32:04.867 7634-7758/? D/AppCenterDistribute: Start download 4.37-cz (437) update.
2021-01-14 10:32:06.912 7634-7770/? D/AppCenterDistribute: Check download id=30
2021-01-14 10:32:06.920 7634-7771/? D/AppCenterDistribute: Download was successful for id=30
2021-01-14 10:32:06.922 7634-7771/? D/AppCenterDistribute: Cannot resolve install intent for content://downloads/all_downloads/30
2021-01-14 10:32:06.922 7634-7771/? E/AppCenterDistribute: Failed to download 4.37-cz (437) update: Installer not found

@build3r
Copy link

build3r commented Sep 24, 2021

@AnastasiaKubova @russelarms
Check the whole flow and collected logs. Have also raised support request at Appcenter portal.
On Realme devices ❌ we are getting error "Installer not found"
Logs

24-09-21 17:16:05  a	checkPendingLogs(group_core) pendingLogCount=0 batchTimeInterval=3000
24-09-21 17:16:20  a	Check download id=6127
24-09-21 17:16:20  a	Download was successful for id=6127
24-09-21 17:16:20  a	Cannot resolve install intent for content://downloads/all_downloads/6127
24-09-21 17:16:20  a	Failed to download 3.0.5-staging_release (176) update: Installer not found

Where as the same build and same distribution on Oneplus device ✅ is working fine

24-09-21 17:12:41  a	 Download was successful for id=5365
24-09-21 17:12:41  a	 Download 3.0.5-staging_release (176) update completed.
24-09-21 17:12:41  ReleaseDownloadListener$c	 Show install UI for content://downloads/all_downloads/5365
24-09-21 17:12:41  a	 Stored release details: group id=d49a03a0-1a74-468a-9378-d31ba63acbac release hash=180f1d398a73aba51847f8519cda062516314251b14a760387becbe183b286e4 release id=24
24-09-21 17:12:45  a	 Resume distribute workflow...
24-09-21 17:12:47  a	 Resume distribute workflow...

@AnastasiaKubova
Copy link
Contributor

@build3r please try to check these steps on the Realme device.

@AnastasiaKubova
Copy link
Contributor

@build3r Could you also please confirm that the download manager application is enabled on these devices?

@build3r
Copy link

build3r commented Sep 24, 2021

@AnastasiaKubova I did try all of the steps, This happening on all the versions both on staging and public beta, also both mandatory and optional updates.
According to my debugging its either

  1. May be the distribute sdk needs the new package visibility permission declaration.
  2. The Realme device is ignoring the content-type header passed by appcenter. We have seen a similar issue when the apk was download via some Chinese browsers.

@build3r
Copy link

build3r commented Sep 24, 2021

Could you also please confirm that the download manager application is enabled on these devices?

@AnastasiaKubova This was the the first I verified
The download manager is enabled and it being download
Instrumentation Download Service exists, downLoadService: android.app.DownloadManager@7602f60

@AnastasiaKubova
Copy link
Contributor

@build3r Does this issue happen only on Realm devices with Android 11?

May be the distribute sdk needs the new package visibility permission declaration.

If you add this permission does the issue disappear?

The Realme device is ignoring the content-type header passed by appcenter. We have seen a similar issue when the apk was download via some Chinese browsers.

I'm not sure what you mean device is ignoring the content-type header passed by appcenter. Could you please clarify?

This issue happens here. Probably these devices have a specific package installer.

@build3r
Copy link

build3r commented Sep 27, 2021

@AnastasiaKubova The above mentioned workarounds did not work.
Stumbled upon this thread
android-10-no-activity-found-to-handle-intent
Which similar to the current problem and states that

ACTION_VIEW (for APKs) and ACTION_INSTALL_PACKAGE were deprecated in Android 10. You need to switch to the PackageInstaller API.

And mentioned to use the new packageInstaller sessions api
InstallApkSessionApi

@AnastasiaKubova
Copy link
Contributor

Hi, @build3r ! Thanks for your suggestions. It looks like a feature request. I will create a WI on our board about it. But feel free to open a contribution PR with these changes if you already have a ready solution. For now as an alternative way for Realm devices you can try to update your apps via the App Center install portal.
Let's keep thread about this request issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants