Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.9.7, 5.11.2, 5.13.0, 5.15.7, 5.15, 6.x
-
Android 9, Android Q
-
-
2021wk30POAndroid, 2021wk32POAndroid, 2021wk34POAndroid, 2022wk02FOAndroid&Automotive, 2022wk04FOAndroid&Automotive
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
Issue Links
- depends on
-
QTBUG-84169 Investigate ways to overcome the style extraction methods on Android [Spike]
- Closed
- duplicates
-
QTBUG-83965 "StrictMode policy violation" in Play Store Pre-Launch Reports with minimal style extraction
- Closed
- relates to
-
QTBUG-75360 styleplugin example does not apply styles on Android
- Closed
-
QTBUG-75679 Android style broken on Android 9 (SDK 28)
- Closed
-
QTBUG-83185 [Android]: When using night or dark mode on a device, then the style extracted is still set as if it is light mode
- Closed
-
QTBUG-99544 Android 12 - Blocked Non-SDK interfaces
- Open
- resulted in
-
QTBUG-96149 Update the Android style plugin to get the Material style information
- Open
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...