You need to enable JavaScript to run this app. 华为账号登录后出现黑屏问题 由InputRealNameActivity异常导致
优惠活动
大模型
产品
解决方案
定价
更多

华为账号登录后出现黑屏问题 由InputRealNameActivity异常导致

环境

  • 操作系统: Android10
  • 设备型号: 华为荣耀10
  • SDK版本: hwid 5.0.4

问题描述

Testbird测试平台反馈,少量特定设备运行我们的应用时会出现黑屏问题。经我们复现验证,黑屏在调用华为登录方法后触发,点击安卓系统返回键后黑屏会消失。

排查信息

经深入定位,导致黑屏的顶层Activity为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时,因退出动画异常导致移除失败。经团队分析,推测部分设备上动画加载失败,阻碍了InputRealNameActivity的销毁流程,导致该页面残留于屏幕。目前可确认是华为SDK的InputRealNameActivity导致黑屏问题,普通用户不清楚如何关闭该异常页面,严重影响应用用户体验,也会损害华为生态的用户体验。

复现方式

该问题为偶现问题,常规设备难以复现,我们在Testbird平台找到了可稳定复现的设备。复现步骤如下:登录Testbird平台账号,搜索华为荣耀设备,找到唯一的华为荣耀10测试设备,在该设备上运行应用触发华为账号登录即可复现问题。

烦请相关团队协助排查该问题,非常感谢。


内容的提问来源于stack exchange,提问作者Kael luo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.16 10:36:04