microsoft / appcenter-sdk-android

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

Fail to install update after successful download #1680

Closed AyoolaAjebeku-tomtom closed 5 months ago

AyoolaAjebeku-tomtom commented 1 year ago

Description

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

Repro Steps

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
hamid97m commented 3 weeks ago

I think this issue is related to Miui and Xiaomi, have you reported this issue to them?