[android] Add support for Samsung DeX mode #5777

Merged
meenbeese merged 1 commit from samsung-dex into master 2023-12-15 15:49:05 +00:00

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"/>
@ -53,11 +51,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"
@ -68,12 +66,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>
@ -891,6 +892,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"