Unsolved API issues with Xiaomi MI 8
-
This is NDK r10e
Therefore, you might be right that it is the NDK version. I am going to test Qt5.12. later. This requires a newer NDK anyhow.
-
Take your time. It seems to work.
Thought that I noted before that restarting the app directly on phone does not show message. Therefore, I did some testing.
Starting through creator brings up message. Restarting from phone does NOT.
Rebuild application and NOT starting through creator, but deployment to device. Starting on phone directly --> No Message. -
@koahnig said in API issues with Xiaomi MI 8:
Thought that I noted before that restarting the app directly on phone does not show message. Therefore, I did some testing.
Starting through creator brings up message. Restarting from phone does NOT.
Rebuild application and NOT starting through creator, but deployment to device. Starting on phone directly --> No Message.Uh, than It may be related to this
https://bugreports.qt.io/browse/QTCREATORBUG-21389The debug support is sorely depending in the OEM so an update on your device may cause the
run-as command
not to behave as it previously did. -
I think it may be a different issue.
First of all the message appears for debug and release compilation.
Second, the applications are started Ctrl+r (run) in creator.
Third, I have issues with debugging F5 anyhow. See https://forum.qt.io/topic/98729/debugging-on-physical-android-device-gives-error-codeI can debug with older device(s) respectively Android versions. 5.1 on a Google tablet it works, but Huawei P10 Android 8.0 and Xiaomi MI8 Android 9 cannot be used for debugging.
However, any version running through Ctrl+r provides output to Application window. Therefore qDebug(), print statements and Log are the means for debugging.Wanna be back to the future ;)
-
@koahnig
there is also another thread regarding this.
Seems this is heavily dependent on the OEM and their customized Android or at least most manufacturers are hiding the popup by default?
But anyway sooner or later this will become a problem for all Qt Android apps: https://developer.android.com/about/versions/pie/restrictions-non-sdk-interfacesWhat API level are you actually targeting?
-
Target API is 26, 24 might be ok too.
-
I just found I have the same problem too, are there any news about this thread?
-
Not from my side. I am still using Qt5.11.3 with
The message is only displayed on phone when starting from qt creator. When theapp is started from phone the very same app does not display the message anymore.So far I consider this as a nuisance, but forunately without effect on the performance of the app itself. I am more bothered that the debugging does not work as with older Android versions.
-
@davidesalvetti I also got this from Xiaomi A2 Lite, OS 9, but it went away after setting Target SDK to API 28
-
I have updated Qt to version 5.12.1 and IIRC never seen the message again.
Therefore, I have checked and went back to target API level 24 and the message pops up again. Going back to API level 28, the message is coming anymore. I will stay so far with Qt 5.12.1