首页 > 解决方案 > 如何修复 Android 9 上 MSGraph 身份验证屏幕的空白(或无)浏览器

问题描述

在一个 android 应用程序中,我使用 MS-Graph API 连接到 OneDrive。到现在没有问题。但是,在将应用程序升级到 Android 9 (API 28) 并在同样运行 Android 9 的新 Lenovo Tab 10 上运行后,我在尝试进行身份验证时出现空白登录屏幕。我看到系统后退按钮 - 有效 - 但这只是取消登录。我可以毫无问题地在该设备上使用 Chrome 应用程序。下面是调用 login() 时 Android Studio 控制台输出的部分。这条线可能是相关的:

E/cr_ChildProcessConn: Failed to establish the service connection.

是的,我已经包含了旧的 apache http 组件。在运行 Android 9(华为)的不同设备上,它可以正常工作。有什么解决办法吗?

D/MSAAuthAndroidAdapter[login] - 166: Login started
I/LiveAuthClient: No refresh token available, sorry!
    All tokens expired, you need to call login() to initiate interactive logon
D/MSAAuthAndroidAdapter$2[onAuthComplete] - 183: LiveStatus: NOT_CONNECTED, LiveConnectSession good?: true, UserState null
D/MSAAuthAndroidAdapter$2[onAuthComplete] - 189: Received invalid login failure from silent authentication, ignoring.
I/WebViewFactory: Loading com.android.chrome version 76.0.3809.132 (code 380913237)
I/cr_LibraryLoader: Time to load native libraries: 14 ms (timestamps 8937-8951)
I/chromium: [INFO:library_loader_hooks.cc(51)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number "76.0.3809.132", actual native library version number "76.0.3809.132"
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
W/Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (light greylist, reflection)
E/cr_ChildProcessConn: Failed to establish the service connection.
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
W/Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
W/ Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/cr_media: Requires BLUETOOTH permission
E/cr_ChildProcessConn: Failed to establish the service connection.
I/Choreographer: Skipped 46 frames!  The application may be doing too much work on its main thread.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/VideoCapabilities: Unsupported mime video/divx
W/VideoCapabilities: Unsupported mime video/divx4
I/OpenGLRenderer: Davey! duration=925ms; Flags=1, IntendedVsync=32568737431608, Vsync=32569504098244, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=32569520764762, AnimationStart=32569521012054, PerformTraversalsStart=32569526247991, DrawStart=32569658014606, SyncQueued=32569659517887, SyncStart=32569659604189, IssueDrawCommandsStart=32569659747158, SwapBuffers=32569661297835, FrameCompleted=32569662622054, DequeueBufferDuration=163000, QueueBufferDuration=273000, 
W/VideoCapabilities: Unrecognized profile 4 for video/hevc
W/Utils: could not parse long range '146-132'
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es

标签: androidmicrosoft-graph-apichromium

解决方案


推荐阅读