| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- Copyright 2024 The Android Open Source Project | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| package="com.android.virtualization.terminal"> | |
| <queries> | |
| <package android:name="com.google.android.apps.internal.betterbug" /> | |
| </queries> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.MANAGE_VIRTUAL_MACHINE" /> | |
| <uses-permission android:name="android.permission.USE_CUSTOM_VIRTUAL_MACHINE" /> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | |
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/> | |
| <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> | |
| <uses-permission android:name="android.permission.RECORD_AUDIO" /> | |
| <uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" /> | |
| <uses-permission android:name="android.permission.USE_LOOPBACK_INTERFACE" /> | |
| <uses-feature android:name="android.software.virtualization_framework" android:required="true" /> | |
| <application | |
| android:label="@string/app_name" | |
| android:icon="@mipmap/ic_launcher" | |
| android:theme="@style/VmTerminalAppTheme" | |
| android:usesCleartextTraffic="true" | |
| android:supportsRtl="true" | |
| android:enabled="false" | |
| android:name=".Application"> | |
| <activity android:name=".LauncherActivity" | |
| android:exported="true"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> | |
| </activity> | |
| <activity android:name=".MainActivity" | |
| android:configChanges="orientation|screenSize|keyboard|keyboardHidden|navigation|uiMode|screenLayout|smallestScreenSize|fontScale|density" | |
| android:exported="true"> | |
| <intent-filter> | |
| <action android:name="android.virtualization.VM_TERMINAL" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| </intent-filter> | |
| </activity> | |
| <activity android:name=".new2.ui.MainActivity" | |
| android:exported="false" | |
| android:launchMode="singleTop" | |
| android:configChanges="keyboard|keyboardHidden|navigation|uiMode|fontScale|density" | |
| android:windowSoftInputMode="adjustResize" | |
| android:label="@string/app_name" /> | |
| <activity android:name=".DisplayActivity" | |
| android:taskAffinity="com.android.virtualization.terminal.display" | |
| android:resizeableActivity="false" | |
| android:theme="@style/FullscreenTheme" | |
| android:supportsPictureInPicture="true" | |
| android:configChanges="orientation|screenSize|keyboard|keyboardHidden|navigation|uiMode|screenLayout|smallestScreenSize" /> | |
| <activity android:name=".SettingsActivity" | |
| android:label="@string/action_settings" /> | |
| <activity android:name=".SettingsPortForwardingActivity" | |
| android:label="@string/settings_port_title" /> | |
| <activity android:name=".SettingsRecoveryActivity" | |
| android:label="@string/settings_recovery_title" /> | |
| <activity android:name=".ErrorActivity" | |
| android:label="@string/error_title" | |
| android:process=":error" /> | |
| <activity android:name=".UpgradeActivity" | |
| android:label="@string/upgrade_title" /> | |
| <property | |
| android:name="android.window.PROPERTY_ACTIVITY_EMBEDDING_SPLITS_ENABLED" | |
| android:value="true" /> | |
| <provider | |
| android:name="androidx.startup.InitializationProvider" | |
| android:authorities="${applicationId}.androidx-startup" | |
| android:exported="false" | |
| tools:node="merge"> | |
| <meta-data | |
| android:name="${applicationId}.SplitInitializer" | |
| android:value="androidx.startup" /> | |
| </provider> | |
| <provider | |
| android:name="androidx.core.content.FileProvider" | |
| android:authorities="com.android.virtualization.terminal.fileprovider" | |
| android:exported="false" | |
| android:grantUriPermissions="true"> | |
| <meta-data | |
| android:name="android.support.FILE_PROVIDER_PATHS" | |
| android:resource="@xml/share_file_path" /> | |
| </provider> | |
| <activity android:name=".InstallerActivity" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| </intent-filter> | |
| </activity> | |
| <service android:name=".new2.core.VmService" | |
| android:exported="false" | |
| android:foregroundServiceType="specialUse"> | |
| <property | |
| android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" | |
| android:value="Run VM instances" /> | |
| </service> | |
| <service android:name=".InstallerService" | |
| android:foregroundServiceType="specialUse" | |
| android:value="Prepares Linux image" | |
| android:exported="false" | |
| android:stopWithTask="true" /> | |
| <service | |
| android:name=".VmLauncherService" | |
| android:exported="false" | |
| android:foregroundServiceType="specialUse"> | |
| <property | |
| android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" | |
| android:value="Run VM instances" /> | |
| </service> | |
| </application> | |
| </manifest> |