home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.53k stars 29.46k forks source link

Android TV. Android 12 not show current app #90076

Closed Blacksli closed 1 year ago

Blacksli commented 1 year ago

The problem

Android TV box based on Android 12 not show current app

https://github.com/JeffLIrion/python-androidtv/blob/428e835ee14ff7f0f274513a2d386c9cc22ab6b5/androidtv/basetv/basetv.py#L157

   # Is this an Android 11 device?
    if self.DEVICE_ENUM == constants.DeviceEnum.ANDROIDTV and self.device_properties.get("sw_version", "") == "11":
        return constants.CMD_CURRENT_APP11

This line is limited to the 11th version. Need to add 12.

The result of running the command on my TV Box with Android 12

dumpsys window windows

source_list: com.android.systemui, android.ext.services, com.android.inputmethod.latin, com.android.providers.media.module, ca.dstudio.atvlauncher.pro, dev.vodik7.tvquickactions, com.android.tv, com.google.android.googlequicksearchbox:search, com.google.android.googlequicksearchbox:interactor, com.google.android.gms, Play Store, com.google.process.gservices, com.android.providers.calendar, com.ottplay.ottplay, com.google.android.gms.persistent, com.google.android.katniss:crash_report, com.google.android.katniss:client_logging, com.google.process.gapps, com.google.android.katniss:interactor
volume_level: 0.4666666666666667
is_volume_muted: false
adb_response: WINDOW MANAGER WINDOWS (dumpsys window windows)
  Window #0 Window{c0e2e0d u0 ShellDropTarget}:
    mDisplayId=0 rootTaskId=1 mSession=Session{3f5b5a1 676:u0a10076} mClient=android.os.BinderProxy@fbac0a4
    mOwnerUid=10076 showForAllUsers=true package=com.android.systemui appop=SYSTEM_ALERT_WINDOW
    mAttrs={(0,0)(fillxfill) sim={adjust=pan} layoutInDisplayCutoutMode=always ty=APPLICATION_OVERLAY fmt=TRANSLUCENT
      fl=NOT_FOCUSABLE HARDWARE_ACCELERATED
      pfl=SHOW_FOR_ALL_USERS NO_MOVE_ANIMATION USE_BLAST FIT_INSETS_CONTROLLED INTERCEPT_GLOBAL_DRAG_AND_DROP
      bhv=DEFAULT}
    Requested w=1280 h=720 mLayoutSeq=16
    mBaseLayer=121000 mSubLayer=0    mToken=WindowToken{b9acbd3 android.os.BinderProxy@d86d26b}
    mViewVisibility=0x4 mHaveFrame=true mObscured=false
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi xlrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8 fontWeightAdjustment=0}
    mLastReportedConfiguration={0.0 ?mcc?mnc ?localeList ?layoutDir ?swdp ?wdp ?hdp ?density ?lsize ?long ?ldr ?wideColorGamut ?orien ?uimode ?night ?touch ?keyb/?/? ?nav/? winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=null mMaxBounds=Rect(0, 0 - 0, 0) mWindowingMode=undefined mDisplayWindowingMode=undefined mActivityType=undefined mAlwaysOnTop=undefined mRotation=undefined} ?fontWeightAdjustment}
    mHasSurface=false isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{7a10322 ShellDropTarget}:
      mDrawState=NO_SURFACE       mLastHidden=false
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
      mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=false
    isVisible=false
  Window #1 Window{9bb99aa u0 InputMethod}:
    mDisplayId=0 rootTaskId=1 mSession=Session{9f56608 967:u0a10074} mClient=android.os.BinderProxy@1645495
    mOwnerUid=10074 showForAllUsers=false package=com.android.inputmethod.latin appop=NONE
    mAttrs={(0,0)(fillxwrap) gr=BOTTOM CENTER_VERTICAL sim={adjust=pan forwardNavigation} ty=INPUT_METHOD fmt=TRANSPARENT wanim=0x1030056 receive insets ignoring z-order
      fl=NOT_FOCUSABLE LAYOUT_IN_SCREEN SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=USE_BLAST FIT_INSETS_CONTROLLED
      bhv=DEFAULT
      fitTypes=STATUS_BARS NAVIGATION_BARS
      fitSides=LEFT TOP RIGHT}
    Requested w=1280 h=0 mLayoutSeq=20
    mIsImWindow=true mIsWallpaper=false mIsFloatingLayer=true
    mBaseLayer=151000 mSubLayer=0    mToken=WindowToken{d9382f0 android.os.Binder@4c9f33}
    mViewVisibility=0x8 mHaveFrame=true mObscured=false
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mTouchableInsets=2 mGivenInsetsPending=false
    touchable region=SkRegion()
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi xlrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8 fontWeightAdjustment=0}
    mLastReportedConfiguration={0.0 ?mcc?mnc ?localeList ?layoutDir ?swdp ?wdp ?hdp ?density ?lsize ?long ?ldr ?wideColorGamut ?orien ?uimode ?night ?touch ?keyb/?/? ?nav/? winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=null mMaxBounds=Rect(0, 0 - 0, 0) mWindowingMode=undefined mDisplayWindowingMode=undefined mActivityType=undefined mAlwaysOnTop=undefined mRotation=undefined} ?fontWeightAdjustment}
    mHasSurface=false isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,720][1280,720] last=[0,0][0,0]
     surface=[0,0][0,0]
    ContainerAnimator:
      mLeash=Surface(name=Surface(name=9bb99aa InputMethod)/@0x582a511 - animation-leash of insets_animation)/@0xa20cc0a mAnimationType=insets_animation
      Animation: com.android.server.wm.InsetsSourceProvider$ControlAdapter@7de1c7b
        ControlAdapter mCapturedLeash=Surface(name=Surface(name=9bb99aa InputMethod)/@0x582a511 - animation-leash of insets_animation)/@0xa20cc0a
    WindowStateAnimator{1c256e9 InputMethod}:
      mDrawState=NO_SURFACE       mLastHidden=false
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
      mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=false
    isVisible=false
  Window #2 Window{c762ad3 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
    mDisplayId=0 rootTaskId=233 mSession=Session{c03221b 21629:u0a10103} mClient=android.os.BinderProxy@ce13cc2
    mOwnerUid=10103 showForAllUsers=false package=com.ottplay.ottplay appop=NONE
    mAttrs={(0,0)(fillxfill) gr=CENTER sim={adjust=nothing} ty=APPLICATION fmt=TRANSLUCENT wanim=0x1030001
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST BEHAVIOR_CONTROLLED FIT_INSETS_CONTROLLED
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1690
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mActivityRecord=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x0 mHaveFrame=true mObscured=false
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mHasSurface=true isReadyForDisplay()=true mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{5e0357a com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
      mSurface=Surface(name=com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity)/@0x861ca98
      Surface: shown=true layer=0 alpha=1.0 rect=(0.0,0.0)  transform=(1.0, 0.0, 0.0, 1.0)
      mDrawState=HAS_DRAWN       mLastHidden=false
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=true
    isVisible=true
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_NAVIGATION_BAR: invisible, ITYPE_CLIMATE_BAR: invisible, ITYPE_EXTRA_NAVIGATION_BAR: invisible
  Window #3 Window{813a237 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
    mDisplayId=0 rootTaskId=233 mSession=Session{c03221b 21629:u0a10103} mClient=android.os.BinderProxy@dde2336
    mOwnerUid=10103 showForAllUsers=false package=com.ottplay.ottplay appop=NONE
    mAttrs={(0,0)(fillxfill) gr=CENTER sim={adjust=nothing} ty=APPLICATION wanim=0x1030001
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST FIT_INSETS_CONTROLLED
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1690
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mActivityRecord=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x0 mHaveFrame=true mObscured=false
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mHasSurface=true isReadyForDisplay()=true mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{8316988 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
      mSurface=Surface(name=com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity)/@0x6edc2f1
      Surface: shown=true layer=0 alpha=1.0 rect=(0.0,0.0)  transform=(1.0, 0.0, 0.0, 1.0)
      mDrawState=HAS_DRAWN       mLastHidden=false
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=true
    isVisible=true
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_CLIMATE_BAR: invisible
  Window #4 Window{b392c57 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
    mDisplayId=0 rootTaskId=233 mSession=Session{c03221b 21629:u0a10103} mClient=android.os.BinderProxy@29901d6
    mOwnerUid=10103 showForAllUsers=false package=com.ottplay.ottplay appop=NONE
    mAttrs={(0,0)(fillxfill) sim={adjust=nothing} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x10302fe
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST FIT_INSETS_CONTROLLED
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1690
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mActivityRecord=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x0 mHaveFrame=true mObscured=true
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mHasSurface=true isReadyForDisplay()=true mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{cc54e0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}:
      mSurface=Surface(name=com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity)/@0xc079ed6
      Surface: shown=true layer=0 alpha=1.0 rect=(0.0,0.0)  transform=(1.0, 0.0, 0.0, 1.0)
      mDrawState=HAS_DRAWN       mLastHidden=false
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=true
    isVisible=true
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_CLIMATE_BAR: invisible
  Window #5 Window{83f18d u0 com.ottplay.ottplay/com.ottplay.ottplay.channelList.ChannelListActivity}:
    mDisplayId=0 rootTaskId=233 mSession=Session{c03221b 21629:u0a10103} mClient=android.os.BinderProxy@4276224
    mOwnerUid=10103 showForAllUsers=false package=com.ottplay.ottplay appop=NONE
    mAttrs={(0,0)(fillxfill) sim={adjust=nothing forwardNavigation} ty=BASE_APPLICATION wanim=0x10302fe
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST FIT_INSETS_CONTROLLED
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1458
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{4e2bdb6 u0 com.ottplay.ottplay/.channelList.ChannelListActivity t233}
    mActivityRecord=ActivityRecord{4e2bdb6 u0 com.ottplay.ottplay/.channelList.ChannelListActivity t233}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x8 mHaveFrame=true mObscured=true
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mHasSurface=false isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{7be29c0 com.ottplay.ottplay/com.ottplay.ottplay.channelList.ChannelListActivity}:
      mDrawState=NO_SURFACE       mLastHidden=true
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=false
    isVisible=false
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_CLIMATE_BAR: invisible
  Window #6 Window{449a9d6 u0 com.ottplay.ottplay/com.ottplay.ottplay.MainActivity}:
    mDisplayId=0 rootTaskId=233 mSession=Session{c03221b 21629:u0a10103} mClient=android.os.BinderProxy@c1519f1
    mOwnerUid=10103 showForAllUsers=false package=com.ottplay.ottplay appop=NONE
    mAttrs={(0,0)(fillxfill) sim={adjust=nothing} ty=BASE_APPLICATION wanim=0x10302fe
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST FIT_INSETS_CONTROLLED
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1447
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{c6f9e21 u0 com.ottplay.ottplay/.MainActivity t233}
    mActivityRecord=ActivityRecord{c6f9e21 u0 com.ottplay.ottplay/.MainActivity t233}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x8 mHaveFrame=true mObscured=true
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1 fontWeightAdjustment=0}
    mHasSurface=false isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{f59c1aa com.ottplay.ottplay/com.ottplay.ottplay.MainActivity}:
      mDrawState=NO_SURFACE       mLastHidden=true
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=false
    isVisible=false
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_CLIMATE_BAR: invisible
  Window #7 Window{d441f50 u0 ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity}:
    mDisplayId=0 rootTaskId=1 mSession=Session{185019e 1057:u0a10106} mClient=android.os.BinderProxy@1e67113
    mOwnerUid=10106 showForAllUsers=false package=ca.dstudio.atvlauncher.pro appop=NONE
    mAttrs={(0,0)(fillxfill) sim={state=always_hidden adjust=nothing forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x7f0d0003
      fl=LAYOUT_IN_SCREEN FULLSCREEN LAYOUT_INSET_DECOR SHOW_WALLPAPER SPLIT_TOUCH HARDWARE_ACCELERATED
      pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST FIT_INSETS_CONTROLLED
      vsysui=HIDE_NAVIGATION FULLSCREEN LAYOUT_STABLE LAYOUT_HIDE_NAVIGATION LAYOUT_FULLSCREEN IMMERSIVE_STICKY
      bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
      fitSides=}
    Requested w=1280 h=720 mLayoutSeq=1552
    mBaseLayer=21000 mSubLayer=0    mToken=ActivityRecord{26a9ea7 u0 ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity t232}
    mActivityRecord=ActivityRecord{26a9ea7 u0 ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity t232}
    mAppDied=false    drawnStateEvaluated=true    mightAffectAllDrawn=true
    mViewVisibility=0x8 mHaveFrame=true mObscured=true
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=home mAlwaysOnTop=undefined mRotation=ROTATION_0} s.2 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi lrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=home mAlwaysOnTop=undefined mRotation=ROTATION_0} s.2 fontWeightAdjustment=0}
    mHasSurface=false isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[0,0][1280,720]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{4e078a5 ca.dstudio.atvlauncher.pro/ca.dstudio.atvlauncher.screens.launcher.LauncherActivity}:
      mDrawState=NO_SURFACE       mLastHidden=true
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    isOnScreen=false
    isVisible=false
    Requested visibility: ITYPE_STATUS_BAR: invisible, ITYPE_NAVIGATION_BAR: invisible, ITYPE_CLIMATE_BAR: invisible, ITYPE_EXTRA_NAVIGATION_BAR: invisible
  Window #8 Window{1b5678 u0 com.android.systemui.ImageWallpaper}:
    mDisplayId=0 rootTaskId=1 mSession=Session{3f5b5a1 676:u0a10076} mClient=android.os.BinderProxy@c58ebdb
    mOwnerUid=10076 showForAllUsers=false package=com.android.systemui appop=NONE
    mAttrs={(0,0)(1280x720) gr=TOP START CENTER layoutInDisplayCutoutMode=always ty=WALLPAPER fmt=RGBX_8888 wanim=0x103030e
      fl=NOT_FOCUSABLE NOT_TOUCHABLE LAYOUT_IN_SCREEN LAYOUT_NO_LIMITS SCALED LAYOUT_INSET_DECOR
      pfl=WANTS_OFFSET_NOTIFICATIONS USE_BLAST
      bhv=DEFAULT}
    Requested w=1920 h=1080 mLayoutSeq=1569
    mIsImWindow=false mIsWallpaper=true mIsFloatingLayer=true
    mBaseLayer=11000 mSubLayer=0    mToken=WallpaperWindowToken{b39ccf8 token=android.os.Binder@d692955}
    mViewVisibility=0x0 mHaveFrame=true mObscured=true
    mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
    mFullConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi xlrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8 fontWeightAdjustment=0}
    mLastReportedConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi xlrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8 fontWeightAdjustment=0}
    mHasSurface=true isReadyForDisplay()=false mWindowRemovalAllowed=false
    Frames: containing=[0,0][1280,720] parent=[0,0][1280,720] display=[-10000,-10000][10000,10000]
    mFrame=[0,0][1280,720] last=[0,0][1280,720]
     surface=[0,0][0,0]
    WindowStateAnimator{cf3d47a com.android.systemui.ImageWallpaper}:
      mSurface=Surface(name=com.android.systemui.ImageWallpaper)/@0xeead42b
      Surface: shown=false layer=0 alpha=1.0 rect=(0.0,0.0)  transform=(1.0, 0.0, 0.0, 1.0)
      mDrawState=HAS_DRAWN       mLastHidden=true
      mEnterAnimationPending=false      mSystemDecorRect=[0,0][0,0]
    mLastFreezeDuration=+18s83ms
    mForceSeamlesslyRotate=false seamlesslyRotate: pending=null finishedFrameNumber=0
    mHScale=0.6666667 mVScale=0.6666667
    mWallpaperX=0.0 mWallpaperY=0.5
    mWallpaperZoomOut=0.0
    isOnScreen=false
    isVisible=false

  mGlobalConfiguration={1.0 ?mcc?mnc [ru_RU] ldltr sw720dp w1280dp h696dp 160dpi xlrg long land television -touch qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1280, 720) mAppBounds=Rect(0, 0 - 1280, 720) mMaxBounds=Rect(0, 0 - 1280, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.8 fontWeightAdjustment=0}
  mHasPermanentDpad=false
  mTopFocusedDisplayId=0
  imeLayeringTarget in display# 0 Window{c762ad3 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}
  imeInputTarget in display# 0 Window{c762ad3 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}
  imeControlTarget in display# 0 Window{c762ad3 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}
  mInTouchMode=false
  mBlurEnabled=false
  mLastDisplayFreezeDuration=0 due to Window{1b5678 u0 com.android.systemui.ImageWallpaper}
  mLastWakeLockHoldingWindow=null mLastWakeLockObscuringWindow=Window{813a237 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}
  mHighResTaskSnapshotScale=1.0
  SnapshotCache
    Entry taskId=233
      topApp=ActivityRecord{bc44681 u0 com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity t233}
      snapshot=TaskSnapshot{ mId=1679420968865 mTopActivityComponent=com.ottplay.ottplay/.channelDetails.ChannelDetailsActivity mSnapshot=android.hardware.HardwareBuffer@40d1afa (1280x720) mColorSpace=sRGB IEC61966-2.1 (id=0, model=RGB) mOrientation=2 mRotation=0 mTaskSize=Point(1280, 720) mContentInsets=[0,0][0,0] mIsLowResolution=false mIsRealSnapshot=true mWindowingMode=1 mAppearance=0 mIsTranslucent=true mHasImeSurface=false
  mWindowsForAccessibilityObserver={0=WindowsForAccessibilityObserver{mDisplayId=0, mEmbeddedDisplayIdList=[], mInitialized=true}}
  mInputMethodWindow=Window{9bb99aa u0 InputMethod}
  mTraversalScheduled=false
  mHoldScreenWindow=null
  mObscuringWindow=Window{813a237 u0 com.ottplay.ottplay/com.ottplay.ottplay.channelDetails.ChannelDetailsActivity}
  mSystemBooted=true mDisplayEnabled=true
  mTransactionSequence=2226
  mDisplayFrozen=false windows=0 client=false apps=0  mRotation=0  mLastOrientation=0
 waitingForConfig=false
  Animation settings: disabled=false window=1.0 transition=1.0 animator=1.0

and

CURRENT_APP=$(dumpsys window windows | grep 'mObscuringWindow') && CURRENT_APP=${CURRENT_APP%%/*} && CURRENT_APP=${CURRENT_APP##* } && echo $CURRENT_APP

return

adb_response: com.ottplay.ottplay

There are also mentions of the 11th version of android in other methods of this component. It needs to be updated to version 12.

What version of Home Assistant Core has the issue?

2023.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Android TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/androidtv

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @jefflirion, @ollo69, mind taking a look at this issue as it has been labeled with an integration (androidtv) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `androidtv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign androidtv` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


androidtv documentation androidtv source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.