mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
* fix: the store sign-in page keeps its place when the display density changes StoreLoginActivity sized its toolbar and error panel in code with dp(), so it was left out of the density change and a fold between two displays of different density still recreated it and reloaded the sign-in page. Handle density in the manifest and apply the dp sizes again in onConfigurationChanged. Checked on the foldable emulator with the GOG sign-in open: wm density 420 -> 560 -> 320 does not relaunch the activity, the page stays, and the top bar follows the new density. * fix: re-apply the sign-in text sizes together with the other dp sizes The title (16sp) and error text (15sp) were set in sp at creation, so after a density change they kept the old scale. Set them again in onConfigurationChanged. --------- Co-authored-by: ovurrsl <ovurrsl@users.noreply.github.com>
189 lines
9.2 KiB
XML
189 lines
9.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
|
|
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x401000" android:required="true" />
|
|
<uses-feature android:name="android.hardware.gamepad" android:required="false" />
|
|
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="false" />
|
|
|
|
<application
|
|
android:name=".App"
|
|
android:localeConfig="@xml/locales_config"
|
|
android:allowBackup="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/AppTheme"
|
|
android:hardwareAccelerated="true"
|
|
android:largeHeap="true"
|
|
android:extractNativeLibs="true"
|
|
android:appCategory="game"
|
|
android:isGame="true">
|
|
|
|
<meta-data android:name="android.game_mode_config" android:resource="@xml/game_mode_config" />
|
|
<meta-data android:name="com.oculus.supportedDevices" android:value="quest2|quest3|quest3s" />
|
|
<activity android:name=".QuestXrActivity" android:exported="true" android:launchMode="singleTask"
|
|
android:permission="android.permission.DUMP"
|
|
android:resizeableActivity="false" android:screenOrientation="landscape"
|
|
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|keyboard|navigation|uiMode"
|
|
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
|
|
<meta-data android:name="android.app.lib_name" android:value="droiddeckxr" />
|
|
<intent-filter>
|
|
<action android:name="com.droiddeck.launcher.XR" />
|
|
<category android:name="com.oculus.intent.category.VR" />
|
|
<category android:name="org.khronos.openxr.intent.category.IMMERSIVE_HMD" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density|keyboard|keyboardHidden|navigation">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
<category android:name="android.intent.category.CAR_LAUNCHER" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<category android:name="android.intent.category.CAR_LAUNCHER" />
|
|
<data android:scheme="droiddeck" android:host="game" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="com.droiddeck.launcher.LAUNCH_GAME" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.CAR_LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".HomeActivity"
|
|
android:enabled="false"
|
|
android:exported="true"
|
|
android:excludeFromRecents="true"
|
|
android:noHistory="true"
|
|
android:taskAffinity="${applicationId}.home"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:theme="@android:style/Theme.Translucent.NoTitleBar">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.HOME" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
|
|
<activity
|
|
android:name=".input.ControllerEditorActivity"
|
|
android:exported="false"
|
|
android:theme="@style/SessionTheme"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:resizeableActivity="true"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density" />
|
|
|
|
<activity
|
|
android:name=".files.FileManagerActivity"
|
|
android:exported="false"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density"
|
|
android:theme="@style/AppTheme" />
|
|
|
|
<activity
|
|
android:name=".files.FilePickerActivity"
|
|
android:exported="false"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density"
|
|
android:theme="@style/AppTheme" />
|
|
|
|
<activity
|
|
android:name=".stores.StoreLoginActivity"
|
|
android:exported="false"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density"
|
|
android:theme="@style/AppTheme" />
|
|
|
|
<activity
|
|
android:name=".agent.AgentStartActivity"
|
|
android:exported="true"
|
|
android:excludeFromRecents="true"
|
|
android:noHistory="true"
|
|
android:permission="android.permission.DUMP"
|
|
android:theme="@style/SessionTheme" />
|
|
|
|
<activity
|
|
android:name=".SessionActivity"
|
|
android:exported="false"
|
|
android:supportsPictureInPicture="true"
|
|
android:launchMode="singleTask"
|
|
android:theme="@style/SessionTheme"
|
|
android:preferMinimalPostProcessing="true"
|
|
android:screenOrientation="sensorLandscape"
|
|
android:resizeableActivity="true"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density" />
|
|
|
|
<service
|
|
android:name=".session.SessionService"
|
|
android:exported="false"
|
|
android:stopWithTask="false" />
|
|
<service
|
|
android:name=".runtime.RuntimeInstallService"
|
|
android:exported="false" />
|
|
<service
|
|
android:name=".core.WirelessAdbPairingService"
|
|
android:exported="false" />
|
|
<service
|
|
android:name=".stores.download.StoreDownloadService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync" />
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.logs"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/log_share_paths" />
|
|
</provider>
|
|
<provider
|
|
android:name=".files.AppFilesProvider"
|
|
android:authorities="${applicationId}.documents"
|
|
android:exported="true"
|
|
android:grantUriPermissions="true"
|
|
android:permission="android.permission.MANAGE_DOCUMENTS">
|
|
<intent-filter>
|
|
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
|
</intent-filter>
|
|
</provider>
|
|
<provider
|
|
android:name=".agent.AgentBridgeProvider"
|
|
android:authorities="${applicationId}.agent"
|
|
android:exported="true"
|
|
android:permission="android.permission.DUMP"
|
|
android:grantUriPermissions="false" />
|
|
</application>
|
|
</manifest>
|