Repository: flutter
Issue: Bug: Black Screen Issue in Flutter SDK 3.27.0+ on Oppo Devices
Labels: waiting for customer response,in triage

### Steps to reproduce

The black screen issue arises when running Flutter apps on the following device specifications:
**Device Model:** Oppo F19 Pro
**Model Name:** CPH2285
**Processor:** Octa-core
**Operating System:** Android 13

**Steps to reproduce black screen issue:**
Step 1: Install or upgrade your Flutter SDK to version 3.27.0 or above.
Step 2: Create new flutter project or clone project from: https://github.com/JagaranMaharjan/flutter_black_screen_issue
Step 3: Navigate to the project directory and run the app
Step 4: Observe that the app runs but only displays a black screen.






### Expected results

When running a Flutter app on the Oppo F19 Pro (Model: CPH2285, Android 13) with Flutter SDK 3.27.0+, the app should:

Display the home screen or initial user interface immediately after launching.
Transition smoothly from the splash screen (if implemented) to the main app without any delays or issues.

### Actual results

Instead of showing the expected UI:

The app launches but remains stuck on a black screen.
No UI elements are rendered, and there’s no feedback or error displayed to indicate the problem.

### Code sample

Project Repository: https://github.com/JagaranMaharjan/flutter_black_screen_issue


### Screenshots or Video

<details open>
<summary>
The black screen issue arises when running Flutter apps on the following device specifications:
**Device Model:** Oppo F19 Pro
**Model Name:** CPH2285
**Processor:** Octa-core
**Operating System:** Android 13
</summary>



</details>


### Logs

<details open><summary>Logs</summary>

**Console Log File:**
[+2368 ms] W/libc    ( 9629): Access denied finding property "persist.vendor.debug.gpud.enable"
[   +1 ms] D/BLASTBufferQueue( 9629): [SurfaceView[com.jagaran.testing_apk/com.jagaran.testing_apk.MainActivity]#1](f:0,a:1) acquireNextBufferLocked size=1080x2268 mFrameNumber=1 applyTransaction=true mTimestamp=287720379107992(auto) mPendingTransactions.size=0 graphicBufferId=41356240093192 transform=0
[   +1 ms] D/VRI[MainActivity]( 9629): registerCallbacksForSync syncBuffer=false
[  +29 ms] D/BLASTBufferQueue( 9629): [VRI[MainActivity][com.jagaran.testing_apk/com.jagaran.testing_apk.MainActivity]#0](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=287720418143761(auto) mPendingTransactions.size=0 graphicBufferId=41356240093197 transform=0
[  +10 ms] D/VRI[MainActivity]( 9629): Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true syncBuffer=false
[        ] W/Parcel  ( 9629): Expecting binder but got null!
[        ] D/VRI[MainActivity]( 9629):  debugCancelDraw  cancelDraw=false,count = 228,android.view.ViewRootImpl@afb9d00
[        ] D/VRI[MainActivity]( 9629): draw finished.
[  +51 ms] D/VRI[MainActivity]( 9629): onFocusEvent true
[   +3 ms] I/Quality ( 9629): TaskTrackInfo {"Pkg":com.jagaran.testing_apk,"Window":com.jagaran.testing_apk.MainActivity,"Type":1,"Action":10,"Cost":4980,"FV":16,"JC":16-90-0-0-0-0-0-1-20-1-0-0-0-0-0-0-0-0-1-0-4950-3964-287720389-1538,"SF":no-need,"UITid":9629,"RTid":16886} TTI:cannot access task track path
[+1330 ms] D/ProfileInstaller( 9629): Installing profile for com.jagaran.testing_apk
[+2425 ms] V/AutofillManager( 9629): requestHideFillUi(null): anchor = null
[   +4 ms] D/OplusSystemUINavigationGestureExtImpl( 9629): regionString = null
[  +56 ms] D/OplusInputMethodManagerInternal( 9629): get inputMethodManager extension: com.android.internal.view.IInputMethodManager$Stub$Proxy@bbf9b53
[  +80 ms] V/AutofillManager( 9629): requestHideFillUi(null): anchor = null
[+1901 ms] V/AutofillManager( 9629): requestHideFillUi(null): anchor = null
[ +113 ms] I/ran.testing_apk( 9629): Background concurrent copying GC freed 14MB AllocSpace bytes, 6(120KB) LOS objects, 68% free, 2785KB/8929KB, paused 76us,26us total 113.494ms
[   +1 ms] W/FinalizerDaemon( 9629): type=1400 audit(0.0:33400): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c136,c257,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.jagaran.testing_apk

[log.txt](https://github.com/user-attachments/files/18570491/log.txt)

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

jagaran@Jagarans-MacBook-Pro testing_apk % flutter doctor -v
[✓] Flutter (Channel stable, 3.27.3, on macOS 15.2 24C101 darwin-arm64 (Rosetta), locale en-NP)
    • Flutter version 3.27.3 on channel stable at /Users/jagaran/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c519ee916e (7 days ago), 2025-01-21 10:32:23 -0800
    • Engine revision e672b006cb
    • Dart version 3.6.1
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/jagaran/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Users/jagaran/Downloads/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.96.4)
    • VS Code at /Users/jagaran/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • CPH2285 (mobile)                • 89CAHYS4EYBQ85R8      • android-arm64  • Android 13 (API 33)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.2 24C101 darwin-arm64 (Rosetta)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.2 24C101 darwin-arm64 (Rosetta)
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 132.0.6834.111
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Ambition Guru’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Santosh’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
jagaran@Jagarans-MacBook-Pro testing_apk % 



</details>