[android] Add support for Samsung DeX mode

Signed-off-by: meenbeese <meenbeese@tutanota.com>
This commit is contained in:
meenbeese 2023-08-20 19:24:55 -04:00 committed by Roman Tsisyk
parent b88994292e
commit ae9172ec56

View file

@ -4,12 +4,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">
<!-- Requiring "android.hardware.touchscreen" here breaks DeX mode -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true"/>
<uses-feature
android:name="android.hardware.wifi"
android:required="false"/>
@ -54,11 +52,11 @@
</intent>
</queries>
<!-- -->
<supports-screens
android:largeScreens="true"
android:xlargeScreens="true"/>
<!-- "android:resizeableActivity" allows free-form and split-screen modes -->
<application
android:name=".MwmApplication"
android:allowBackup="true"
@ -69,12 +67,15 @@
android:label="@string/app_name"
android:localeConfig="@xml/locales_config"
android:theme="@style/MwmTheme"
android:resizeableActivity="true"
android:supportsRtl="true"
android:networkSecurityConfig="@xml/network_security_config"
tools:targetApi="33">
<!-- Allows for config and orientation change without killing/restarting main activity -->
<activity
android:name="app.organicmaps.SplashActivity"
android:configChanges="orientation|screenSize|smallestScreenSize|density|screenLayout|uiMode|keyboard|keyboardHidden|navigation"
android:exported="true">
<intent-filter>
@ -890,6 +891,10 @@
<meta-data android:name="android.webkit.WebView.EnableSafeBrowsing" android:value="false" />
<!-- Disable Google's anonymous stats collection -->
<meta-data android:name="android.webkit.WebView.MetricsOptOut" android:value="true" />
<!-- Version >= 3.0. Dex Dual Mode support for compatible Samsung devices.
See the documentation: https://developer.samsung.com/samsung-dex/modify-optimizing.html //-->
<meta-data android:name="com.samsung.android.multidisplay.keep_process_alive" android:value="true" />
<meta-data
android:name="com.google.android.gms.car.application"