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...
For Gerrit Dashboard: QTBUG-71590 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
362517,8 | Fix hidden API access for Android style | dev | qt/qtbase | Status: MERGED | -1 | 0 |
362851,6 | Fix Style java code format and warnings | dev | qt/qtbase | Status: MERGED | +2 | 0 |
364396,2 | Fix hidden API access for Android style | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
364397,3 | Fix hidden API access for Android style | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
364398,3 | Fix hidden API access for Android style | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
364908,3 | Fix Style java code format and warnings | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
364909,2 | Fix Style java code format and warnings | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
364910,4 | Fix Style java code format and warnings | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |