appcenter-sdk-android icon indicating copy to clipboard operation
appcenter-sdk-android copied to clipboard

Fail to install update after successful download

Open AyoolaAjebeku-tomtom opened this issue 2 years ago • 49 comments

Description

Fail to install update after successful download, no error whatsoever in the logs.

Repro Steps

  • Launch app
  • Tap download on "App update available" modal
  • After the update has been downloaded, Tap Update
  • Modal disappears and nothing happens.

Details

  1. Which SDK version are you using?
    • 5.0.0
  2. Which OS version did you experience the issue on?
    • Android 13
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    • Samsung Tab S6 Lite physical device
  4. Streamlined log:
SurfaceView[com.test.app/com.test.app.MainActivity]@0(BLAST)#1287
                      CLIENT | 0x7e91bac980 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.test.app.MainActivity$_2155#1282
                      CLIENT | 0x7eb21ef7c0 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.microsoft.appc[...].ReleaseInstallerActivity$_2155#1306
                      CLIENT |              | 0000 |  Unknown  |    0.0    0.0    0.0    0.0 |    0    0 1200 2000 | Dim Layer for - WindowedMagnification:0:31#1314
                      CLIENT | 0x7e74f3ef40 | 0100 | RGBA_8888    |    0.0    0.0  290.0  584.0 |  473  708  763 1292 | com.google.android.packageinstaller/[...]PackageInstallerActivity$_22015#1309
                      CLIENT | 0x7e91bacc00 | 0100 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5741#87
                      CLIENT | 0x7e74f3e040 
15:09:08.280  D  onPackageResumedFG pkgName = com.test.app, userId = 0
15:09:08.282  D  Focused application(0): ActivityRecord{9783aac u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t97}
15:09:08.283  V  Changing focus from Window{3530a9d u0 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity} to Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.ActivityTaskManagerService.setResumedActivityUncheckLocked:5712 com.android.server.wm.TaskFragment.onActivityStateChanged:807 
15:09:08.287  D  updateSystemBarAttributes: displayId=0, win=Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}, navColorWin=Window{3530a9d u0 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}, focusedCanBeNavColorWin=false, behavior=1, appearance=0, statusBarAppearanceRegions=[AppearanceRegion{ bounds=[0,0][2000,1200]}], requestedVisibilities=, from=com.android.server.wm.DisplayPolicy.focusChangedLw:3191 com.android.server.wm.DisplayContent.updateFocusedWindowLocked:4568 com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 
15:09:08.288  D  rotationForOrientation, orientationSource=ActivityRecord{ef5455 u0 com.test.app/.MainActivity} t96}
15:09:08.288  D  onSystemBarAttributesChanged() -  displayId:0, appearance:0, navbarColorManagedByIme: false, packageName: com.test.app
15:09:08.305  D  mStartingWindow and mStartingData is null for token=ActivityRecord{9783aac u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t97}
15:09:08.314  V  Changing focus from Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} to Window{cae96e7 u0 com.test.app/com.test.app.MainActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.DisplayContent.layoutAndAssignWindowLayersIfNeeded:4730 com.android.server.wm.TaskDisplayArea.positionChildTaskAt:587 
15:09:08.317  I  noteResumeComponent(): package name  : com.test.app
15:09:08.318  D  noteResumeComponent(), received pkgName: com.test.app, userId: 0
15:09:08.318  D  onLooperPrepared(), msg: MSG_APP_RESUME, pkgName: com.test.app, userid: 0
15:09:08.319  D    handleResume(). pkgName: com.test.app, userId: 0, isTunableApp: null
15:09:08.319  D  notifyFocusInOut(). of pkg: com.test.app, type: 4, isTunableApp: false, userId: 0
15:09:08.329  D  identifyGamePackage. com.test.app, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.samsung.android.game.SemGameManager.isGamePackage(SemGameManager.java:104)
15:09:08.329  D  getGamePkgData(). com.test.app
15:09:08.329  D  isGamePackage(), pkgName=com.test.app, ret=false
15:09:08.331  D  identifyGamePackage. com.test.app, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.android.server.ssrm.SortingMachine.isGame(SortingMachine.java:162)
15:09:08.331  D  getGamePkgData(). com.test.app
15:09:08.332  D  Display 0 HWC layers:
                      CLIENT | 0x7f3945b140 | 0102 | RGBA_8888    |    0.0    0.0 1092.0 2000.0 |   72    0 1164 2000 | SurfaceView[com.test.app/com.test.app.MainActivity]@0(BLAST)#1287
                      CLIENT | 0x7e91bac980 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.test.app.MainActivity$_2155#1282
                      CLIENT | 0x7eb21ef7c0 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.microsoft.appc[...].ReleaseInstallerActivity$_2155#1306
                      CLIENT | 0x7e91bacc00 | 0100 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5741#87
                      CLIENT | 0x7e74f3e040 | 0100 | RGBA_8888    |    0.0    0.0  119.0   67.0 |  662 1933  781 2000 | com.samsung.android.app.cocktailbars[...]ervice.CocktailBarService$_8997#1255
                      CLIENT | 0x7e74f3d8c0 | 0100 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | Taskbar$_6426#144
                      CLIENT | 0x7e70e5a080 | 0100 | RGBA_8888    |    
15:09:08.336  D  [input] setFocusedWindow: b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity
15:09:08.336  D  [input] setFocusedWindow: cae96e7 com.test.app/com.test.app.MainActivity
15:09:08.337  I  HomePackage : com.sec.android.app.launcher, resumePackageName : com.test.app
15:09:08.337  D  Focus request (0): b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity but waiting because NO_WINDOW
15:09:08.338  D  Focus entered window (0): cae96e7 com.test.app/com.test.app.MainActivity
15:09:08.340  D  Focused application(0): ActivityRecord{ef5455 u0 com.test.app/.MainActivity} t96}
15:09:08.343  D    sendRunningComponentFocus(), pkgName: com.test.app, userId: 0
15:09:08.343  D  onLooperPrepared(), msg: MSG_TASK_FOCUSED, pkgName: com.test.app, userId: 0
15:09:08.344  D    handleTaskFocused(), pkgName: com.test.app, userID:0
15:09:08.344  D    handleResume(). pkgName: com.test.app, userId: 0, isTunableApp: null
15:09:08.344  D  notifyFocusInOut(). of pkg: com.test.app, type: 4, isTunableApp: false, userId: 0
15:09:08.345  D  rotationForOrientation, orientationSource=ActivityRecord{ef5455 u0 com.test.app/.MainActivity} t96}
15:09:08.354  V  Setting visibility of Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1236 com.android.server.wm.WindowToken.setClientVisible:431 com.android.server.wm.ActivityRecord.setClientVisible:7575 com.android.server.wm.ActivityRecord.onAnimationFinished:8433 com.android.server.wm.ActivityRecord.postApplyAnimation:6155 
15:09:08.354  D  mStartingWindow and mStartingData is null for token=ActivityRecord{ef5455 u0 com.test.app/.MainActivity} t96}
15:09:08.379  D  notePauseComponent(), received pkgName: com.test.app, userId: 0
15:09:08.383  I  Layer [com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_2155#1306] hidden!! flag(1)
15:09:08.384  I  noteResumeComponent(): package name  : com.test.app
15:09:08.385  D  noteResumeComponent(), received pkgName: com.test.app, userId: 0
15:09:08.385  D  onLooperPrepared(), msg: MSG_APP_RESUME, pkgName: com.test.app, userid: 0
15:09:08.386  D    handleResume(). pkgName: com.test.app, userId: 0, isTunableApp: null
15:09:08.386  D  notifyFocusInOut(). of pkg: com.test.app, type: 4, isTunableApp: false, userId: 0
15:09:08.388  I  check: return. pkg=com.test.app mode=fullscreen op=true locked=false callers=com.android.internal.policy.DecorView.setVisibility:4382 android.app.Activity.makeVisible:6739 android.app.ActivityThread.handleResumeActivity:5533 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 
15:09:08.389  D  Display 0 HWC layers:
                      DEVICE | 0x7f3945b140 | 0102 | RGBA_8888    |    0.0    0.0 1092.0 2000.0 |   72    0 1164 2000 | SurfaceView[com.test.app/com.test.app.MainActivity]@0(BLAST)#1287
                      DEVICE | 0x7e91bac980 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.test.app.MainActivity$_2155#1282
                      DEVICE | 0x7e91bacc00 | 0100 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5741#87
                      DEVICE | 0x7e74f3e040 | 0100 | RGBA_8888    |    0.0    0.0  119.0   67.0 |  662 1933  781 2000 | com.samsung.android.app.cocktailbars[...]ervice.CocktailBarService$_8997#1255
                      DEVICE | 0x7e74f3d8c0 | 0100 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | Taskbar$_6426#144
                      DEVICE | 0x7e70e5a080 | 0100 | RGBA_8888    |    0.0    0.0   49.0   49.0 |  518 1092  567 1141 | bbq-wrapper#120
                      DEVICE | 0x7f3945bc80 | 0140 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0    0 1200   36 | ScreenDecorOv
15:09:08.408  I  HomePackage : com.sec.android.app.launcher, resumePackageName : com.test.app
15:09:08.408  V  Relayout Window{cae96e7 u0 com.test.app/com.test.app.MainActivity}: viewVisibility=0 req=2000x1200 d0
15:09:08.414  I  updateBoundsLayer: t = android.view.SurfaceControl$Transaction@c04b8c8 sc = Surface(name=Bounds for - com.test.app/com.test.app.MainActivity@0)/@0xffcd61 frame = 20
15:09:08.426  V  Relayout Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: viewVisibility=8 req=2000x1200 d0
15:09:08.433  D  WindowStopped on com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity set to true
15:09:08.436  I  check: return. pkg=com.test.app mode=fullscreen op=true locked=false callers=com.android.internal.policy.DecorView.setVisibility:4382 android.app.ActivityThread.updateVisibility:5886 android.app.ActivityThread.handleStopActivity:5904 android.app.servertransaction.TransactionExecutor.performLifecycleSequence:234 android.app.servertransaction.TransactionExecutor.cycleToPath:201 
15:09:08.437  D  Window{b353344 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: Setting back callback null
15:09:08.439  W  Input channel object 'b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity (client)' was disposed without first being removed with the input manager!
15:09:08.441  I  Destroying surface Surface(name=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_2155)/@0x3aac3d5 called by com.android.server.wm.WindowStateAnimator.destroySurface:907 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:519 com.android.server.wm.WindowState.removeImmediately:2962 com.android.server.wm.WindowState.removeIfPossible:3206 com.android.server.wm.WindowState.removeIfPossible:3033 com.android.server.wm.WindowManagerService.removeWindow:2241 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 
15:09:08.445  I  id=1312 Removed ca63680 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1312 (120)
15:09:08.450  I  id=1306 removeFromCurrentState com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_2155#1306 (121)
15:09:08.450  I  id=1305 removeFromCurrentState b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1305 (121)
15:09:08.450  I  id=1303 removeFromCurrentState ActivityRecord{9783aac u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1303 (121)
15:09:08.450  I  id=1312 removeFromCurrentState ca63680 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1312 (121)
15:09:08.450  I  id=1303 Removed ActivityRecord{9783aac u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1303 (121)
15:09:08.450  I  id=1306 Removed com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_2155#1306 (121)
15:09:08.450  I  id=1305 Removed b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1305 (121)
15:09:08.451  I  id=1306 Destroyed com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_2155#1306
15:09:08.451  I  id=1303 Destroyed ActivityRecord{9783aac u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1303
15:09:08.451  I  id=1305 Destroyed b353344 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1305
15:09:08.451  I  id=1312 Destroyed ca63680 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1312
15:09:08.589  D  Display 0 HWC layers:
                      DEVICE | 0x7f3945b140 | 0102 | RGBA_8888    |    0.0    0.0 1092.0 2000.0 |   72    0 1164 2000 | SurfaceView[com.test.app/com.test.app.MainActivity]@0(BLAST)#1287
                      DEVICE | 0x7f3945df80 | 0100 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.test.app/com.test.app.MainActivity$_2155#1282
                      DEVICE | 0x7e91bacc00 | 0100 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5741#87
                      DEVICE | 0x7e74f3e040 | 0100 | RGBA_8888    |    0.0    0.0  119.0   67.0 |  662 1933  781 2000 | com.samsung.android.app.cocktailbars[...]ervice.CocktailBarService$_8997#1255
                      DEVICE | 0x7e74f3d8c0 | 0100 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | Taskbar$_6426#144
                      DEVICE | 0x7f3945bc80 | 0140 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0    0 1200   36 | ScreenDecorOverlay$_5741#94
                      DEVICE | 0x7f3945cb80 | 0140 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0 1964 1200 2000 | S
15:09:08.591  I  task1 - id : 97 cn : ComponentInfo{com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}
15:09:08.591  I  task1 - id : 96 cn : ComponentInfo{com.test.app/com.test.app.MainActivity}
15:09:08.593  I  Running task - id : 96 cn : ComponentInfo{com.test.app/com.test.app.MainActivity}
15:09:09.889  I   PkgInstallStarted for com.test.app UserID : 0
15:09:09.984  I  onPackageChanged(). extras: Bundle[{changeType=2, userId=0, type=15, packageName=com.test.app}]
15:09:09.984  I  onPackageChanged(). changeType(INSTALL_STARTED), pkgName(com.test.app), UserHandle(0), userId(0), Installed(true)
15:09:10.055  D  Received BROADCAST intent 0x92a703 Key{broadcastIntent pkg=com.test.app intent=act=com.microsoft.appcenter.action.INSTALL_STATUS flags=0x2000000 u=0} requestCode=100135974 sent=0 from uid 1000
15:09:14.353  D  identifyGamePackage. com.test.app, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.android.server.ssrm.SortingMachine.isGame(SortingMachine.java:162)
15:09:14.353  D  getGamePkgData(). com.test.app
15:09:18.781  I  monitorNlp, package=com.test.app/ interval=0
15:09:22.003  D  onRankingUpdate : shouldBubbleUp=false ,pkg=com.test.app ,key=0|com.test.app|4|null|10483
15:09:52.719  I  monitorNlp, package=com.test.app/ interval=0

AyoolaAjebeku-tomtom avatar Mar 24 '23 14:03 AyoolaAjebeku-tomtom

Hello @AyoolaAjebeku-tomtom Thank you for bringing this issue to our attention! May I please ask you to check the following in your 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?

Also, could you provide information, does this problem reproduce only on one device or on other devices too? And please check out the following issue: https://github.com/microsoft/appcenter-sdk-android/issues/1674

aleksandr-dorofeev avatar Mar 28 '23 10:03 aleksandr-dorofeev

Hi @aleksandr-dorofeev

  1. There's enough space to install on the device
  2. The app is not installed on the system partition.
  3. Yes
  4. Yes, it updates successfully on Android 12 running the 5.0.0 version of the SDK.

It is reproducible on other similar devices running Android 13.

AyoolaAjebeku-tomtom avatar Mar 28 '23 11:03 AyoolaAjebeku-tomtom

@AyoolaAjebeku-tomtom Thanks for the information provided.

Could you elaborate more on the issue? In particular, what happens after the application is restarted, after the update has been downloaded? Also, if possible, could you provide verbose logs?

aleksandr-dorofeev avatar Mar 30 '23 13:03 aleksandr-dorofeev

After the download is complete and I click update, the app doesn't restart at all.

The verbose logs:

18:05:49.514  D  Resetting workflow on entering foreground.
18:05:49.766  D  Resume distribute workflow...
18:05:49.766  I  check: return. pkg=com.test.app isActivity=false callers=com.android.internal.policy.DecorView.setVisibility:4382 android.app.Dialog.hide:767 com.microsoft.appcenter.distribute.Distribute.A:28 com.microsoft.appcenter.distribute.Distribute.H:20 com.microsoft.appcenter.distribute.Distribute.y:362 
18:05:49.766  D  Show default update dialog.
18:05:49.800  V  Already checking or checked latest release.
18:07:09.853  D  Show new unknown sources dialog.
18:07:17.577  D  Resetting workflow on entering foreground.
18:07:17.602  D  Resume distribute workflow...
18:07:17.605  D  Post notification permission already granted.
18:07:17.605  D  Schedule download...
18:07:17.606  V  Already checking or checked latest release.
18:07:17.609  D  Start downloading new release from https://appcenter-filemanagement-xxxxxxx.azureedge.net/xxxxxxxxxx
18:07:17.709  D  Start download 32.35.0 (5978) update.
18:09:45.416  V  Receive broadcast action: android.intent.action.DOWNLOAD_COMPLETE
18:09:45.418  D  Check download id=188
18:09:45.459  D  Download was successful for id=188
18:09:45.488  I  Start installing new release...
18:09:45.489  D  Stored release details: group id=xxxxx release hash=xxxxxxxx release id=4172
18:09:45.493  D  Trying to install update via PackageInstaller.
18:09:45.493  D  Register receiver for installing a new release.
18:09:45.570  V  The install session was created. sessionId=1594440017
18:09:47.993  V  Installation progress: 80%. sessionId=1594440017
18:09:47.998  D  Received BROADCAST intent 0xf3f2061 Key{broadcastIntent pkg=com.test.app intent=act=com.microsoft.appcenter.action.INSTALL_STATUS flags=0x2000000 u=0} requestCode=1594440017 sent=0 from uid 1000
18:09:47.999  V  Receive broadcast action: com.microsoft.appcenter.action.INSTALL_STATUS
18:09:47.999  V  	android.content.pm.extra.STATUS: -1
18:09:47.999  V  	android.content.pm.extra.SESSION_ID: 1594440017
18:09:48.000  V  	android.intent.extra.INTENT: Intent { act=android.content.pm.action.CONFIRM_INSTALL pkg=com.google.android.packageinstaller (has extras) }
18:09:48.000  I  Ask confirmation to install a new release.
18:09:48.005  I  START u0 {flg=0x30010000 cmp=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity (has extras)} from uid 10485
18:09:48.028  I  id=1032 createSurf flag=80004, ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1032
18:09:48.048  D  Focused application(0): ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.089  W  Unable to determine displayId for activity com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity@ce68b38
18:09:48.095  I  id=1034 createSurf flag=80004, b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1034
18:09:48.097  D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 2000, 1200), mDisplayCutout=DisplayCutout{insets=Rect(0, 0 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=0 displayHeight=0 physicalDisplayWidth=0 physicalDisplayHeight=0 density={0.0} cutoutSpec={} rotation={0} scale={0.0} physicalPixelDisplaySizeRatio={0.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=20, center=Point(20, 20)}, RoundedCorner{position=TopRight, radius=20, center=Point(1980, 20)}, RoundedCorner{position=BottomRight, radius=20, center=Point(1980, 1180)}, RoundedCorner{position=BottomLeft, radius=20, center=Point(20, 1180)}]}  mRoundedCornerFrame=Rect(0, 0 - 2000, 1200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1934, 0 - 2000, 36) rotation=1}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[2000,0][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_EXTRA_NAVIGATION_BAR, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=true} } host=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity from=android.view.ViewRootImpl.setView:1722
18:09:48.099  D  Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@51654a5, mPriority=0}
18:09:48.111  V  Relayout Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: viewVisibility=0 req=2000x1200 d0
18:09:48.111  I  id=1035 createSurf flag=40004, com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035
18:09:48.112  D  makeSurface duration=1 name=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628
18:09:48.115  V  Changing focus from null to Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.WindowManagerService.relayoutWindow:2772 com.android.server.wm.Session.relayout:274 
18:09:48.119  D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 2000, 1200), mDisplayCutout=DisplayCutout{insets=Rect(0, 0 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=0 displayHeight=0 physicalDisplayWidth=0 physicalDisplayHeight=0 density={0.0} cutoutSpec={} rotation={0} scale={0.0} physicalPixelDisplaySizeRatio={0.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=20, center=Point(20, 20)}, RoundedCorner{position=TopRight, radius=20, center=Point(1980, 20)}, RoundedCorner{position=BottomRight, radius=20, center=Point(1980, 1180)}, RoundedCorner{position=BottomLeft, radius=20, center=Point(20, 1180)}]}  mRoundedCornerFrame=Rect(0, 0 - 2000, 1200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1934, 0 - 2000, 36) rotation=1}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[2000,0][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][2000,36], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_IME, mFrame=[0,0][0,0], mVisible=false, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_EXTRA_NAVIGATION_BAR, mFrame=[0,1128][2000,1200], mVisible=true, mInsetsRoundedCornerFrame=true} } host=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity from=android.view.ViewRootImpl.relayoutWindow:9616
18:09:48.143  D  [input] setFocusedWindow: b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity
18:09:48.144  D  Focus request (0): b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity but waiting because NOT_VISIBLE
18:09:48.152  D  finishDrawingWindow: Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mDrawState=DRAW_PENDING seqId=0
18:09:48.156  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.157  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.170  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.171  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.173  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.173  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.184  V  Changing focus from Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} to null displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.ActivityTaskManagerService.setResumedActivityUncheckLocked:5712 com.android.server.wm.TaskFragment.onActivityStateChanged:807 
18:09:48.188  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.188  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.191  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.191  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.205  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.205  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.269  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.269  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.272  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.272  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.294  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.294  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.303  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.303  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.386  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.386  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.407  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.407  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.422  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.422  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.459  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.459  D  performShow logReadyForDisplay win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} mToken.waitingToShow:true isTransitionSet:true
18:09:48.463  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:48.463  V  performShowLocked: mDrawState=HAS_DRAWN in Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}
18:09:48.467  I  id=1045 createSurf flag=80000, 5c48786 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1045
18:09:48.486  I  Layer [com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035] hidden!! flag(0)
18:09:56.664  D  Focused application(0): ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:56.665  V  Changing focus from Window{e8b000b u0 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity} to Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.ActivityTaskManagerService.setResumedActivityUncheckLocked:5712 com.android.server.wm.TaskFragment.onActivityStateChanged:807 
18:09:56.669  D  updateSystemBarAttributes: displayId=0, win=Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}, navColorWin=Window{e8b000b u0 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}, focusedCanBeNavColorWin=false, behavior=1, appearance=0, statusBarAppearanceRegions=[AppearanceRegion{ bounds=[0,0][2000,1200]}], requestedVisibilities=, from=com.android.server.wm.DisplayPolicy.focusChangedLw:3191 com.android.server.wm.DisplayContent.updateFocusedWindowLocked:4568 com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 
18:09:56.678  V  Release installer activity result=0
18:09:56.687  D  mStartingWindow and mStartingData is null for token=ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} t123}
18:09:56.695  V  Changing focus from Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity} to Window{2a13bdc u0 com.test.app/com.test.app.MainActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:585 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6746 com.android.server.wm.DisplayContent.layoutAndAssignWindowLayersIfNeeded:4730 com.android.server.wm.TaskDisplayArea.positionChildTaskAt:587 
18:09:56.717  D  [input] setFocusedWindow: b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity
18:09:56.717  D  Focus entered window (0): b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity
18:09:56.731  V  Setting visibility of Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1236 com.android.server.wm.WindowToken.setClientVisible:431 com.android.server.wm.ActivityRecord.setClientVisible:7575 com.android.server.wm.ActivityRecord.onAnimationFinished:8433 com.android.server.wm.ActivityRecord.postApplyAnimation:6155 
18:09:56.733  D  Focus left window (0): b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity
18:09:56.762  I  Layer [com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035] hidden!! flag(1)
18:09:56.834  V  Relayout Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: viewVisibility=8 req=2000x1200 d0
18:09:56.843  D  WindowStopped on com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity set to true
18:09:56.846  W  Unable to determine displayId for activity com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity@ce68b38
18:09:56.848  D  Window{b141b6e u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: Setting back callback null
18:09:56.850  W  Input channel object 'b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity (client)' was disposed without first being removed with the input manager!
18:09:56.850  I  Destroying surface Surface(name=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628)/@0x6be57ec called by com.android.server.wm.WindowStateAnimator.destroySurface:907 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:519 com.android.server.wm.WindowState.removeImmediately:2962 com.android.server.wm.WindowState.removeIfPossible:3206 com.android.server.wm.WindowState.removeIfPossible:3033 com.android.server.wm.WindowManagerService.removeWindow:2241 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 
18:09:56.855  I  id=1045 Removed 5c48786 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1045 (123)
18:09:56.862  I  id=1035 removeFromCurrentState com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035 (124)
18:09:56.862  I  id=1034 removeFromCurrentState b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1034 (124)
18:09:56.863  I  id=1032 removeFromCurrentState ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1032 (124)
18:09:56.863  I  id=1045 removeFromCurrentState 5c48786 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1045 (124)
18:09:56.863  I  id=1032 Removed ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1032 (124)
18:09:56.863  I  id=1035 Removed com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035 (124)
18:09:56.863  I  id=1034 Removed b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1034 (124)
18:09:56.864  I  id=1032 Destroyed ActivityRecord{8d19612 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}#1032
18:09:56.864  I  id=1034 Destroyed b141b6e com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1034
18:09:56.864  I  id=1035 Destroyed com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_21628#1035
18:09:56.864  I  id=1045 Destroyed 5c48786 ActivityRecordInputSink com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity#1045
18:09:57.003  I  task1 - id : 123 cn : ComponentInfo{com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}
18:09:57.680  D  Installation cancelled.
18:09:57.686  D  Complete current updating process.
18:09:57.689  D  Unregister receiver for installing a new release.
18:09:57.694  D  Abandon PackageInstaller session.
18:09:58.676  D  Received BROADCAST intent 0xf3f2061 Key{broadcastIntent pkg=com.test.app intent=act=com.microsoft.appcenter.action.INSTALL_STATUS flags=0x2000000 u=0} requestCode=1594440017 sent=0 from uid 1000

AyoolaAjebeku-tomtom avatar Apr 01 '23 17:04 AyoolaAjebeku-tomtom

Hello @AyoolaAjebeku-tomtom , judging by the logs, the update installation is cancelled. This can happen as a result of user intervention, such as clicking me in a modal window or clicking the cancel installation button. If this does not happen, then perhaps the problem lies in the update package itself. Please make sure the update you are downloading is compatible with your current application and operating system. There may be application version compatibility issues, dependency compatibility issues, or simple bugs in the application. For example, you can try to create a small update with a difference, for example, in some line and try to test it.

MikhailSuendukov avatar Apr 04 '23 14:04 MikhailSuendukov

Hi @MikhailSuendukov, sorry for the late response. None of the scenarios you describe applies to the app. It updates successfully via manual APK installation.

AyoolaAjebeku-tomtom avatar Apr 11 '23 14:04 AyoolaAjebeku-tomtom

I'm also facing the same issue. For detail, I create 1 environment is named "beta" for internal testing and automatically notify when having a new beta test version, the notification dialog is successfully display, successfully download but can not install updated version (error message: failed to install app). Please help me to resolve that, many thanks in advance

  • Platform: Android
  • The manifest file is located in correct path: app/src/main
  • AppCenter sdk version: 5.0.0
Screen Shot 2023-04-12 at 23 39 24

datnt8718 avatar Apr 12 '23 16:04 datnt8718

@datnt8718 Does manual APK installation (update) work?

AyoolaAjebeku-tomtom avatar Apr 13 '23 09:04 AyoolaAjebeku-tomtom

Hi @MikhailSuendukov, @AyoolaAjebeku-tomtom! Just to add, the tablet pretends it is downloading the update, i.e. it shows the download status in the status bar. However, I could not find the downloaded installation file on the tablet, and there is no impact on the storage (i.e. the amount of free storage is the same before and after the download).

AntonStepanov-TomTom avatar Apr 13 '23 09:04 AntonStepanov-TomTom

@datnt8718 Does manual APK installation (update) work?

@AyoolaAjebeku-tomtom yes, It work if I download manually from AppCenter, just only fail with automatic update (click the Download button)

datnt8718 avatar Apr 13 '23 10:04 datnt8718

Unfortunately, I was unable to reproduce this error on a tablet with the Android 13 operating system. A small demo project on which this error is reproduced would be very helpful in identifying the error.

MikhailSuendukov avatar Apr 13 '23 14:04 MikhailSuendukov

Also, did you try to update appcenter-android-sdk to the latest version?

MikhailSuendukov avatar Apr 13 '23 14:04 MikhailSuendukov

@MikhailSuendukov The app is running on the latest appcenter version. I'm beginning to suspect that the problem could be the APK size, it is about 200MB, but not certain yet.

It is quite difficult to produce a demo project due to legalities and all that (Btw, another project which uses a streamlined version of the app, updates successfully via appcenter distribute).

Additional Info:

  1. On the Samsung Physical device, filtering the logs by "packageManager", I see this error message ERROR: could not load root hash from incremental install
  2. On an Android emulator (API Level 33) running on an Apple M1 emulator, it updated successfully 2 times out of 3.
  3. On another Android emulator (API Level 33) running on an Intel-based Mac, it failed every time with this error in the logs W/PackageParser( 5450): Unknown element under <manifest>: queries at /data/app/vmdl564742064.tmp/base.apk

More logs around the time from the Samsung device

5306-7416  WindowManager           system_server                        I  Destroying surface Surface(name=com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity$_22711)/@0x2e94e23 called by com.android.server.wm.WindowStateAnimator.destroySurface:942 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:536 com.android.server.wm.WindowState.removeImmediately:2969 com.android.server.wm.WindowState.removeIfPossible:3228 com.android.server.wm.WindowState.removeIfPossible:3041 com.android.server.wm.WindowManagerService.removeWindow:2282 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 
5306-7416  RestrictionPolicy       system_server                        D  isScreenCaptureEnabled : ret=true userId=0
5306-7416  WindowManager           system_server                        V  Nulling last startingData
5306-7416  CoreBackPreview         system_server                        D  Window{41b8822 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: Setting back callback null
5306-7418  WindowManager           system_server                        V  Remove Window{41b8822 u0 com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity}: mSurfaceController=Surface(name=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_23221)/@0x5371f20 mAnimatingExit=false mRemoveOnExit=false mHasSurface=true surfaceShowing=false animating=false app-animation=false mWillReplaceWindow=false mDisplayFrozen=false callers=com.android.server.wm.WindowState.removeIfPossible:3041 com.android.server.wm.WindowManagerService.removeWindow:2282 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 com.android.server.wm.Session.onTransact:188 android.os.Binder.execTransactInternal:1316 
5306-7418  WindowManager           system_server                        I  Destroying surface Surface(name=com.test.app/com.microsoft.appcenter.distribute.install.ReleaseInstallerActivity$_23221)/@0x5371f20 called by com.android.server.wm.WindowStateAnimator.destroySurface:942 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:536 com.android.server.wm.WindowState.removeImmediately:2969 com.android.server.wm.WindowState.removeIfPossible:3228 com.android.server.wm.WindowState.removeIfPossible:3041 com.android.server.wm.WindowManagerService.removeWindow:2282 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 
5306-7418  RestrictionPolicy       system_server                        D  isScreenCaptureEnabled : ret=true userId=0
5306-7418  WindowManager           system_server                        V  Nulling last startingData
5306-5325  ActivityManager         system_server                        I  Changes in 10110 2 to 16, 15 to 0
5306-5325  ProcessStats            system_server                        W  Tracking association SourceState{410abf0 com.sec.location.nsflp2/5013 BTopFgs #114768} whose proc state 2 is better than process ProcessState{ff28bc4 com.google.android.gms.persistent/10204 pkg=com.google.android.gms} proc state 3 (14 skipped)
5306-6247  ActivityMa...erformance system_server                        D  AMP_release() ACT_RESUME
7345-8022  SDHMS:D                 com.sec.android.sdhms                I  SIOP:: AP:242 BAT:191 USB:0 CHG:237 WIFI:212 BLK:202 
5306-5374  PackageManager          system_server                        D  isVerificationEnabled :: approvedInstaller : .*
5306-5374  PackageManager          system_server                        D  isVerificationEnabled :: installer policy contains *.
5306-5374  PackageManager          system_server                        E  ERROR: could not load root hash from incremental install
5306-5374  PackageManager          system_server                        E  Required verifier is null
5306-5374  PackageManager          system_server                        D  sendBroadcastAsUser. PACKAGE_INSTALL_STARTED
5306-5374  PackageManager          system_server                        I  Integrity check passed for file:///data/app/vmdl1715065105.tmp
5306-5373  ActivityTaskManager     system_server                        D  SafeActivityOptions created, mOriginalCallingPid=5306, mOriginalCallingUid=1000, options=null, caller=com.android.server.am.PendingIntentRecord.sendInner:471 com.android.server.am.ActivityManagerService.sendIntentSender:6557 com.android.server.am.ActivityManagerService.sendIntentSender:6546 android.content.IntentSender.sendIntent:197 android.content.IntentSender.sendIntent:161 com.android.server.pm.PackageInstallerSession.sendOnPackageInstalled:4843 com.android.server.pm.PackageInstallerSession.-$$Nest$smsendOnPackageInstalled:0 
5306-5373  ActivityManager         system_server                        D  Received BROADCAST intent 0xaa3a740 Key{broadcastIntent pkg=com.test.app intent=act=com.microsoft.appcenter.action.INSTALL_STATUS flags=0x2000000 u=0} requestCode=1715065105 sent=0 from uid 1000
4622-4622  io_stats                iod                                  D  !@   8,0 r 2055918 69698320 w 1104111 107951532 d 0 0 f 0 0 iot 1006736 0 th 0 0 0 pt 0 inp 0 0 187438.239
5306-5354  PowerManagerService     system_server                        D  UserActivityStateListenerState: 0

AyoolaAjebeku-tomtom avatar Apr 18 '23 13:04 AyoolaAjebeku-tomtom

@AyoolaAjebeku-tomtom Thanks for the additional information! Unfortunately we were unable to reproduce this behavior on our side using a 250mb apk file. In any case, we will continue to reproduce the error in other ways, but if this does not work, then it will be difficult to solve this problem without a sample app.

aleksandr-dorofeev avatar Apr 20 '23 19:04 aleksandr-dorofeev

Hi @AyoolaAjebeku-tomtom Apparently this problem may be that sometimes the installation can be delayed after the set delay of 1 second (CANCEL_TIMEOUT) if there is no installation progress, it is canceled. Could you please test this option on your project? To do this, you need to connect the AppCenter packages as a subproject to your application and change the timeout value here. This will greatly help us to localize the problem. Could you please test this case in this way?

MikhailSuendukov avatar Apr 21 '23 13:04 MikhailSuendukov

Hi @MikhailSuendukov, increasing the cancel_timeout fixes the issue indeed. I had to increase it to more than 1 minute for it to work.

AyoolaAjebeku-tomtom avatar May 01 '23 15:05 AyoolaAjebeku-tomtom

@AyoolaAjebeku-tomtom Sorry for the long wait, we are now discussing a solution to this problem, thank you very much for your help in localizing the error. As soon as there is new information, I will post it here.

MikhailSuendukov avatar May 08 '23 16:05 MikhailSuendukov

I'm also facing the same issue. For detail, I create 1 environment is named "beta" for internal testing and automatically notify when having a new beta test version, the notification dialog is successfully display, successfully download but can not install updated version (error message: failed to install app). Please help me to resolve that, many thanks in advance

  • Platform: Android
  • The manifest file is located in correct path: app/src/main
  • AppCenter sdk version: 5.0.0
Screen Shot 2023-04-12 at 23 39 24

Hi folks, so do you have any idea for this case?

Have just seen the update from contributors but still leave my message here to get update. Many thanks.

datnt8718 avatar May 09 '23 02:05 datnt8718

Hi @datnt8718 , could you please provide us with your verbose logs of error and steps for reproducing this error.

MikhailSuendukov avatar May 09 '23 15:05 MikhailSuendukov

hi @MikhailSuendukov , I'd like to reproduce the error: Environment: I set a beta environment for internal testing once having a new beta release version update on AppCenter

  • Open beta app and get AppCenter dialog to inform updating new release app version
  • Touch Download button to download
  • After finish downloading, display error

Log when I get the error image

Images Screenshot 2023-05-10 at 09 29 01 Screenshot 2023-05-10 at 09 29 22

Hope it help you, many thanks

datnt8718 avatar May 10 '23 02:05 datnt8718

Could you please attach the verbose AppCenter logs and clarify if this has happened before and what version of the AppCenter Android SDK you are using? This would greatly help in localizing the error.

MikhailSuendukov avatar May 10 '23 15:05 MikhailSuendukov

@MikhailSuendukov Any updates?

AyoolaAjebeku-tomtom avatar Jun 02 '23 14:06 AyoolaAjebeku-tomtom

We are tracking this issue on our board, but unfortunately we can't provide any ETA at this moment.

MikhailSuendukov avatar Jun 02 '23 15:06 MikhailSuendukov

Also seeing this issue on Andrdoid 13.

madrzak avatar Jun 19 '23 09:06 madrzak

Hi @madrzak , could you please add details about your issue?

MikhailSuendukov avatar Jun 19 '23 10:06 MikhailSuendukov

It would be great if we could could get an update here? As for now we've added a patch and locally published. Unfortunately we see more and more complaints about people not being able to update (blank screens when trying to login).

So we would like to be able to update the SDK to see if something has been fixed for that, without the need to apply the patch again.

ghost avatar Aug 29 '23 09:08 ghost

Hi @StefanMarchal-TomTom , can you confirm that you have the same repro steps as described on the issue? Does it happen on all android versions or only specific, eg >= android 13?

May I ask you to perform the actions asked here https://github.com/microsoft/appcenter-sdk-android/issues/1680/#issuecomment-1517853607:

Hi @AyoolaAjebeku-tomtom Apparently this problem may be that sometimes the installation can be delayed after the set delay of 1 second (CANCEL_TIMEOUT) if there is no installation progress, it is canceled. Could you please test this option on your project? To do this, you need to connect the AppCenter packages as a subproject to your application and change the timeout value here. This will greatly help us to localize the problem. Could you please test this case in this way?

, and let us know if that helped you?

DmitriyKirakosyan avatar Aug 31 '23 07:08 DmitriyKirakosyan

@DmitriyKirakosyan Ayoola made the change on our project and that seems to be working for this issue. But as it now is a self published dependency we're not able to update to the latest. It would be great that this get fixed on app center side, so that we can get rid of the locally published dependency and use app center releases again.

ghost avatar Aug 31 '23 08:08 ghost

@StefanMarchal-TomTom , thank you for the update. In the latest SDK version we added logging for this scenario, if in-app updating fails due to the timeout. I would like to have more people reporting this issue and confirming they can see this log in their app logs:

Canceling installation due to lack of progress.

@madrzak , @datnt8718 , @AntonStepanov-TomTom could you verify you can see this log when reproducing the issue using the AppCenter Android SDK 5.0.2?

DmitriyKirakosyan avatar Sep 01 '23 14:09 DmitriyKirakosyan

Same issue on Android 11.

LennonReid avatar Oct 16 '23 09:10 LennonReid