Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.11.2 is using "Non-SDK" interfaces, will be blocked by Android?
Forum Updated to NodeBB v4.3 + New Features

Qt 5.11.2 is using "Non-SDK" interfaces, will be blocked by Android?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Obsess
    wrote on last edited by
    #1

    In Android 9 on Qt 5.11.2 and using API 28 (tried others as well), at startup, I'm seeing output like this on simplistic Qt apps:

    Accessing hidden method Landroid/graphics/drawable/BitmapDrawable;->getTintMode()Landroid/graphics/PorterDuff$Mode; (light greylist, reflection)

    and

    java.lang.NoSuchFieldException: No field mPivotX in class Landroid/graphics/drawable/RotateDrawable$RotateState;

    When you look into this you discover that Android is going start disabling applications that use private "non-SDK" interfaces: https://developer.android.com/about/versions/pie/restrictions-non-sdk-interfaces

    I looked around on the forum and I'm not seeing anything about this yet it looks pretty serious. What am I missing? Did I configure something incorrectly?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please report this on Qt bugtracker. Sounds serious indeed.

      (Z(:^

      1 Reply Last reply
      0
      • O Offline
        O Offline
        Obsess
        wrote on last edited by
        #3

        I just filed a bug, thank you.

        1 Reply Last reply
        1
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Post a link here, then, please :-) I want to keep an eye on it.

          (Z(:^

          aha_1980A 1 Reply Last reply
          0
          • sierdzioS sierdzio

            Post a link here, then, please :-) I want to keep an eye on it.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @sierdzio It's QTBUG-71590

            Qt has to stay free or it will die.

            1 Reply Last reply
            1
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Thank you

              (Z(:^

              1 Reply Last reply
              1
              • E Offline
                E Offline
                Eeli K
                wrote on last edited by
                #7

                The state of the things seems to be:

                "Greylisted non-SDK interfaces encompass methods and fields which continue to function in Android 9, but to which we don't guarantee access in future versions of the platform." (Google)

                "Note that the warnings are suppressed in Qt 5.12 (the default target version is 28 and if a lower target version is set, then style extraction is disabled). The APIs in use are in the "light-grey" category, meaning that their access is permitted as long as you set the target version to 28." (Qt Company)

                " Is there an indication that they will be blacklisted at a later stage?
                If that is the plan, then we should try to make a feature request to Google. If they reject the request, then parts of or all of the style extraction code will stop working." (Qt Company)

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved