Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136497

Android app fails to restart when permission is revoked

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9
    • QPA: Android
    • None
    • Android
    • 2025wk20s1QtforAndroid

    Description

      When Android OS kills process upon permissions revoke, subsequent app start fails and displays only blank screen.

      Steps to reproduce (with 100% reproduce rate):

      • Run declarative-camera app normally with Camera permission enabled
      • Let it run on background and go to Android Application Settings and revoke Camera permission
      • Switch back to declarative-camera app and the app stays blank.

      Initial analysis show that QtActivityBase.java receives onRestoreInstanceState which calls setStarted(true). Subsequent startApplication in QtNative.java bails out early due to this state flag. However, the app is not running normally as the display remains blank.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-136497
          # Subject Branch Project Status CR V

          Activity

            People

              qtandroidteam Qt Android Team
              jakoivik Jarkko Koivikko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change