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

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

    XMLWordPrintable

    Details

    • Platform/s:
      Android

      Description

      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

      You can suppress the warning popup by using an SDK target of 28, but, that doesn't change the new policy being pushed by Google to stop all applications (including all those written using Qt) from accessing non-public APIs.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              taipan BogDan Vatra
              Reporter:
              obsess Nicolas Sterling
            • Votes:
              16 Vote for this issue
              Watchers:
              30 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes