Add Q_TRACE_LOCATION to android support
This is needed for tracing android devices. Pick-to: 6.5 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>
This commit is contained in:
parent
56068f3a36
commit
5ae8417c4f
@ -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