mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
* fix: the front end keeps its page when the Fold is folded or unfolded MainActivity, FileManagerActivity, FilePickerActivity and StoreLoginActivity did not declare the screen-size configuration changes, so folding or unfolding a foldable recreated them and dropped their in-memory state. They now handle orientation, screenSize, screenLayout, smallestScreenSize and density themselves, like SessionActivity already does. uiMode is left out on purpose. * fix: store login keeps rebuilding its toolbar when the display density changes StoreLoginActivity builds its toolbar in code with dp-to-pixel values taken at creation time and has no onConfigurationChanged. It no longer declares density in configChanges, so a density change recreates it as before this PR. Size and layout changes are still handled in place. --------- Co-authored-by: ovurrsl <ovurrsl@users.noreply.github.com>
172 lines
7.9 KiB
XML
172 lines
7.9 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" />
|
|
|
|
<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" />
|
|
|
|
<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" />
|
|
</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" />
|
|
<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" />
|
|
</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"
|
|
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>
|