2

环境

  • 操作系统:安卓10
  • 型号:华为荣耀10
  • 开发工具包:hwid 5.0.4

问题描述

测试新娘报告在我们的应用程序中发现黑屏,特定设备很少。 在我们重现时,我们调用华为登录方法
后出现黑屏。单击Android后退按钮后黑屏消失。

有用的信息


当我们深入研究时,使屏幕变黑的顶级活动是com.huawei.hwid20.inputrealname.InputRealNameActivity,当我们在 logcat 中搜索时,我们发现了以下几行您可能会感兴趣的内容:

06-18 10:13:55.326   700  3444 E BufferQueueProducer: [com.huawei.hwid/com.huawei.hwid20.inputrealname.InputRealNameActivity#0]:1338: disconnect: not connected (req=1)
06-18 10:13:55.326 12947 15847 W libEGL  : EGLNativeWindowType 0x7ae5fab910 disconnect failed
06-18 10:13:55.319 14683 14683 W GameMain: type=1400 audit(0.0:65405): avc: granted { read } for pid=14683 name="a0" dev="sdcardfs" ino=55427 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=dir
06-18 10:13:55.319 14683 14683 W GameMain: type=1400 audit(0.0:65406): avc: granted { read } for pid=14683 name="a0" dev="sdcardfs" ino=55427 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=dir
06-18 10:13:55.319 14683 14683 W GameMain: type=1400 audit(0.0:65407): avc: granted { read open } for pid=14683 path="/storage/emulated/0/Android/data/com.syzh.jsxw.huawei/files/patch/a0" dev="sdcardfs" ino=55427 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=dir
06-18 10:13:55.319 14683 14683 W GameMain: type=1400 audit(0.0:65408): avc: granted { write } for pid=14683 name="a0" dev="sdcardfs" ino=55427 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=dir
06-18 10:13:55.303  1474  1842 D HwGameAssistantController: Keycontrol mode is 2 for user 0
06-18 10:13:55.328  1474  3047 V WindowManager: removeIfPossible: Window{bfd80e1 u0 com.huawei.hwid/com.huawei.hwid20.inputrealname.InputRealNameActivity} callers=com.android.server.wm.WindowState.removeIfPossible:5504348 com.android.server.wm.WindowManagerService.removeWindow:5502984 android.view.IWindowSession$Stub.onTransact:7520340 com.android.server.wm.Session.onTransact:6765932 android.os.Binder.execTransactInternal:8316500 
06-18 10:13:55.328  1474  3047 D HwAppTransitionImpl: windowAnimations = 2060168 dose not come from system, not to override it.
06-18 10:13:55.330 16001 16001 D AndroidRuntime: Shutting down VM
06-18 10:13:55.331  1474  3047 V WindowManager: Not removing Window{bfd80e1 u0 com.huawei.hwid/com.huawei.hwid20.inputrealname.InputRealNameActivity EXITING} due to exit animation
06-18 10:13:55.332  1474  1501 I StatusBarDisable: setFlags what=0 which=1 pkg=Window{bfd8171 u0 com.huawei.hwid/com.huawei.hwid20.inputrealname.InputRealNameActivity}
06-18 10:13:55.332  1474  3047 D ZrHung.AppEyeTransparentWindow: TransparentWindow mHungConfigStatus = 0,mHungConfigEnable = 1
06-18 10:13:55.346 12947 12947 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
06-18 10:13:55.346   700   700 D SurfaceFlinger: Found SecureRecScreen Layer
06-18 10:13:55.346  1474  4353 E InputDispatcher: Window handle Window{bfd80e1 u0 com.huawei.hwid/com.huawei.hwid20.inputrealname.InputRealNameActivity} has no registered input channel

所以我们认为 SDK 试图删除InputRealNameActivity但由于exit animation.
在我们的头脑风暴看来,我们认为某些动画播放失败是由于设备问题,而这个失败的动画阻止了 的破坏InputRealNameActivity,所以它留在了屏幕上。
无论如何,我们可以确认的是,InputRealNameActivity华为 SDK 的 Activity 确实会黑屏,用户可能不知道如何取消它,这损害了我们的用户体验,我相信它也伤害了华为的用户。

复制

据我们所知,这不是一个常见的情况,所以你不能轻易地生产它,幸运的是我们在测试中找到了一个设备可以重现它。
进入这里,https://www.testbird.com/,登录,搜索华为荣耀,你会发现只有一台华为荣耀10设备,该设备可以轻松复制。只需运行该应用程序,然后触发华为帐户登录。

提前谢谢你,如果团队可以看看这个问题。

4

1 回答 1

2

据该团队称,此问题是出于安全考虑。

账号登录页面提供防录屏和防截屏功能。那么test brid中的设备可能触发了这个安全机制,所以就黑屏了。

于 2021-06-18T06:19:49.320 回答