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:
parent
1fa935d93e
commit
53ce8ebfbd
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user