Does anybody know why a Google Pixel 5 and a Google Pixel 5e (API 30) might have a solid black overlay completely obscuring the rightmost 60% of the screen when viewing the otherwise normal in-app screenshots produced by Automatic Robo Script in Firebase Test Lab?
We have had no such display issues testing this app, which was built in Unity 2017 and exported to Android Studio, before uploading to Firebase Test Lab as an .aab build on 20 other devices, several of which appear correctly in Firebase Test Lab including other Pixels.
Neither have we had display issues when specifically testing API 30 in Android Studio Pixel 2, Pixel 4, and Pixel XL emulators.
Not sure if it's a Pixel 5 feature that the robot gets stuck on and a real user would know to swipe away the screen or something. Any help short of buying a Pixel 5 to debug on would be massively appreciated.
Image produced by firebase robo script exploring the app
-------------- Update: ------------------
I've been using my 5 daily Robo tests on Pixel 5 to try to debug this and the first thing I thought I'd address were some build warnings that were showing in the Play Console's Pre-Launch Report (but not in Android Studio or in Firebase's Test Results) of type "Unsupported API":
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
at android.os.StrictMode.lambda$static$1(StrictMode.java:428)
at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
at java.lang.Class.getDeclaredMethodInternal(Native Method)
at java.lang.Class.getPublicMethodRecursive(Class.java:2075)
at java.lang.Class.getMethod(Class.java:2063)
at java.lang.Class.getMethod(Class.java:1690)
at cEa.a(PG:9)
at cEi.a(PG:12)
at org.chromium.content.browser.selection.SmartSelectionClient.<init>(PG:5)
at cEQ.a(Unknown Source:7)
at org.chromium.android_webview.AwContents.e(PG:245)
at org.chromium.android_webview.AwContents.d(PG:210)
at org.chromium.android_webview.AwContents.<init>(PG:77)
at to.run(PG:15)
at aJK.a(PG:13)
at aJL.run(Unknown Source:2)
at org.chromium.base.task.PostTask.b(PG:16)
at aJK.a(PG:7)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.b(PG:6)
at com.android.webview.chromium.WebViewChromium.init(PG:105)
at android.webkit.WebView.<init>(WebView.java:422)
at android.webkit.WebView.<init>(WebView.java:348)
at android.webkit.WebView.<init>(WebView.java:331)
at android.webkit.WebView.<init>(WebView.java:318)
at android.webkit.WebView.<init>(WebView.java:308)
at com.google.android.gms.ads.internal.webview.ac.<init>(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:1)
at com.google.android.gms.ads.internal.webview.s.a(Unknown Source:0)
at com.google.android.gms.ads.internal.util.bi.b(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:3)
at com.google.android.gms.ads.internal.webview.v.a(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:2)
at com.google.android.gms.ads.internal.js.l.<init>(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:4)
at com.google.android.gms.ads.internal.js.n.run(Unknown Source:0)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at qd.a(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:0)
at com.google.android.gms.ads.internal.util.f.a(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:1)
at qd.dispatchMessage(:com.google.android.gms.policy_ads_fdr_dynamite@204204100@204204100057.336078696.336078696:0)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The one SDK we're using is Google Mobile Ads (Version 5.4.0) for Unity which has its own build.gradle file outside our project module in Android Studio, the default settings of which (when exported via Unity 2017 which does not support API 30) are as follows:
buildToolsVersion '29.0.2'
targetSdkVersion 19
In the instance of the black screen state I had updated these as per Android Studio's recommendation (where targetSdkVersion 19 showed red) to:
buildToolsVersion '31.0.0-rc3'
targetSdkVersion 30
Upon setting these back to the apparently corrupt Unity defaults and re-uploading to Robo Test it worked! The Pixel 5 showed the full screen. I have a feeling something else is going on however as while reversing the process brought back the black screen, pushing it forward a second time did not resolve it. I'm now out of my daily tests.