Add Q_TRACE_LOCATION to android support

This is needed for tracing android devices.

Change-Id: Ic04e15b43b426bdb1232e671acb4163165eab666
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
(cherry picked from commit 5ae8417c4f6348ab9f78a93fbb83e0c27c57d288)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Antti Määttä 2023-01-31 07:55:55 +02:00 committed by Qt Cherry-pick Bot
parent 1fa935d93e
commit 53ce8ebfbd
2 changed files with 8 additions and 0 deletions

View File

@ -344,6 +344,11 @@ public abstract class QtLoader {
ENVIRONMENT_VARIABLES += "\tANDROID_STYLE_PATH=" + stylePath;
if (m_contextInfo.metaData.containsKey("android.app.trace_location")) {
String loc = m_contextInfo.metaData.getString("android.app.trace_location");
ENVIRONMENT_VARIABLES += "\tQTRACE_LOCATION="+loc;
}
loaderParams.putString(ENVIRONMENT_VARIABLES_KEY, ENVIRONMENT_VARIABLES);
String appParams = null;

View File

@ -42,6 +42,9 @@
<meta-data
android:name="android.app.extract_android_style"
android:value="minimal" />
<meta-data
android:name="android.app.trace_location"
android:value="/sdcard/Android/data/trace" />
</activity>
</application>
</manifest>