|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
1 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2 | 3 | xmlns:tools="http://schemas.android.com/tools"
|
3 | 4 | package="com.termux"
|
4 | 5 | android:installLocation="internalOnly"
|
5 | 6 | android:sharedUserId="${TERMUX_PACKAGE_NAME}"
|
6 |
| - android:sharedUserLabel="@string/shared_user_label" > |
| 7 | + android:sharedUserLabel="@string/shared_user_label"> |
7 | 8 |
|
8 |
| - <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> |
9 |
| - <uses-feature android:name="android.software.leanback" android:required="false" /> |
| 9 | + <uses-feature |
| 10 | + android:name="android.hardware.touchscreen" |
| 11 | + android:required="false" /> |
| 12 | + <uses-feature |
| 13 | + android:name="android.software.leanback" |
| 14 | + android:required="false" /> |
10 | 15 |
|
11 |
| - <permission android:name="${TERMUX_PACKAGE_NAME}.permission.RUN_COMMAND" |
12 |
| - android:label="@string/run_command_permission_label" |
| 16 | + <permission |
| 17 | + android:name="${TERMUX_PACKAGE_NAME}.permission.RUN_COMMAND" |
13 | 18 | android:description="@string/run_command_permission_description"
|
14 | 19 | android:icon="@mipmap/ic_launcher"
|
| 20 | + android:label="@string/run_command_permission_label" |
15 | 21 | android:protectionLevel="dangerous" />
|
16 | 22 |
|
17 | 23 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
20 | 26 | <uses-permission android:name="android.permission.WAKE_LOCK" />
|
21 | 27 | <uses-permission android:name="android.permission.VIBRATE" />
|
22 | 28 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
23 |
| - <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/> |
24 |
| - <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> |
| 29 | + <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> |
| 30 | + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
25 | 31 | <uses-permission android:name="android.permission.READ_LOGS" />
|
26 | 32 | <uses-permission android:name="android.permission.DUMP" />
|
27 | 33 | <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
28 | 34 | <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
29 | 35 |
|
30 | 36 | <application
|
31 |
| - android:label="@string/application_name" |
32 |
| - android:icon="@mipmap/ic_launcher" |
33 |
| - android:roundIcon="@mipmap/ic_launcher_round" |
| 37 | + android:name=".app.TermuxApplication" |
| 38 | + android:allowBackup="false" |
34 | 39 | android:banner="@drawable/banner"
|
35 |
| - android:theme="@style/Theme.Termux" |
36 |
| - |
37 | 40 | android:extractNativeLibs="true"
|
38 |
| - android:allowBackup="false" |
39 |
| - android:supportsRtl="false" > |
| 41 | + android:icon="@mipmap/ic_launcher" |
| 42 | + android:label="@string/application_name" |
| 43 | + android:roundIcon="@mipmap/ic_launcher_round" |
| 44 | + android:supportsRtl="false" |
| 45 | + android:theme="@style/Theme.Termux"> |
40 | 46 |
|
41 |
| - <!-- This (or rather, value 2.1 or higher) is needed to make the Samsung Galaxy S8 |
42 |
| - mark the app with "This app is optimized to run in full screen." --> |
43 |
| - <meta-data android:name="android.max_aspect" android:value="10.0" /> |
| 47 | + <!-- |
| 48 | + This (or rather, value 2.1 or higher) is needed to make the Samsung Galaxy S8 |
| 49 | + mark the app with "This app is optimized to run in full screen." |
| 50 | + --> |
| 51 | + <meta-data |
| 52 | + android:name="android.max_aspect" |
| 53 | + android:value="10.0" /> |
44 | 54 |
|
45 | 55 | <activity
|
46 | 56 | android:name=".app.TermuxActivity"
|
47 |
| - android:label="@string/application_name" |
48 |
| - android:configChanges="orientation|screenSize|smallestScreenSize|density|screenLayout|uiMode|keyboard|keyboardHidden|navigation" |
| 57 | + android:configChanges="orientation|screenSize|smallestScreenSize|density|screenLayout|uiMode|keyboard|keyboardHidden|navigation" |
| 58 | + android:label="@string/application_name" |
49 | 59 | android:launchMode="singleTask"
|
50 | 60 | android:resizeableActivity="true"
|
51 |
| - android:windowSoftInputMode="adjustResize|stateAlwaysVisible" > |
| 61 | + android:windowSoftInputMode="adjustResize|stateAlwaysVisible"> |
52 | 62 | <intent-filter>
|
53 | 63 | <action android:name="android.intent.action.MAIN" />
|
| 64 | + |
54 | 65 | <category android:name="android.intent.category.LAUNCHER" />
|
55 | 66 | </intent-filter>
|
56 | 67 | <intent-filter>
|
57 | 68 | <action android:name="android.intent.action.MAIN" />
|
| 69 | + |
58 | 70 | <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
|
59 | 71 | </intent-filter>
|
60 |
| - <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" /> |
| 72 | + |
| 73 | + <meta-data |
| 74 | + android:name="android.app.shortcuts" |
| 75 | + android:resource="@xml/shortcuts" /> |
61 | 76 | </activity>
|
62 | 77 |
|
| 78 | + <activity-alias |
| 79 | + android:name=".HomeActivity" |
| 80 | + android:targetActivity=".app.TermuxActivity"> |
| 81 | + |
| 82 | + <!-- Launch activity automatically on boot on Android Things devices --> |
| 83 | + <intent-filter> |
| 84 | + <action android:name="android.intent.action.MAIN" /> |
| 85 | + |
| 86 | + <category android:name="android.intent.category.IOT_LAUNCHER" /> |
| 87 | + <category android:name="android.intent.category.DEFAULT" /> |
| 88 | + </intent-filter> |
| 89 | + </activity-alias> |
| 90 | + |
63 | 91 | <activity
|
64 | 92 | android:name=".app.TermuxHelpActivity"
|
65 | 93 | android:exported="false"
|
66 |
| - android:theme="@android:style/Theme.Material.Light.DarkActionBar" |
| 94 | + android:label="@string/application_name" |
67 | 95 | android:parentActivityName=".app.TermuxActivity"
|
68 | 96 | android:resizeableActivity="true"
|
69 |
| - android:label="@string/application_name" /> |
| 97 | + android:theme="@android:style/Theme.Material.Light.DarkActionBar" /> |
| 98 | + |
| 99 | + <activity |
| 100 | + android:name=".app.TermuxSettingsActivity" |
| 101 | + android:label="@string/title_activity_termux_settings" |
| 102 | + android:theme="@style/Theme.AppCompat.Light.DarkActionBar" /> |
70 | 103 |
|
71 | 104 | <activity
|
72 | 105 | android:name=".filepicker.TermuxFileReceiverActivity"
|
73 |
| - android:label="@string/application_name" |
74 |
| - android:taskAffinity="${TERMUX_PACKAGE_NAME}.filereceiver" |
75 | 106 | android:excludeFromRecents="true"
|
| 107 | + android:label="@string/application_name" |
| 108 | + android:noHistory="true" |
76 | 109 | android:resizeableActivity="true"
|
77 |
| - android:noHistory="true"> |
| 110 | + android:taskAffinity="${TERMUX_PACKAGE_NAME}.filereceiver"> |
| 111 | + |
78 | 112 | <!-- Accept multiple file types when sending. -->
|
79 | 113 | <intent-filter>
|
80 |
| - <action android:name="android.intent.action.SEND"/> |
| 114 | + <action android:name="android.intent.action.SEND" /> |
| 115 | + |
81 | 116 | <category android:name="android.intent.category.DEFAULT" />
|
| 117 | + |
82 | 118 | <data android:mimeType="application/*" />
|
83 | 119 | <data android:mimeType="audio/*" />
|
84 | 120 | <data android:mimeType="image/*" />
|
|
89 | 125 | </intent-filter>
|
90 | 126 | <!-- Accept multiple file types to let Termux be usable as generic file viewer. -->
|
91 | 127 | <intent-filter tools:ignore="AppLinkUrlError">
|
92 |
| - <action android:name="android.intent.action.VIEW"/> |
| 128 | + <action android:name="android.intent.action.VIEW" /> |
| 129 | + |
93 | 130 | <category android:name="android.intent.category.DEFAULT" />
|
| 131 | + |
94 | 132 | <data android:mimeType="application/*" />
|
95 | 133 | <data android:mimeType="audio/*" />
|
96 | 134 | <data android:mimeType="image/*" />
|
|
99 | 137 | </intent-filter>
|
100 | 138 | </activity>
|
101 | 139 |
|
102 |
| - <activity-alias |
103 |
| - android:name=".HomeActivity" |
104 |
| - android:targetActivity=".app.TermuxActivity"> |
105 |
| - |
106 |
| - <!-- Launch activity automatically on boot on Android Things devices --> |
107 |
| - <intent-filter> |
108 |
| - <action android:name="android.intent.action.MAIN"/> |
109 |
| - <category android:name="android.intent.category.IOT_LAUNCHER"/> |
110 |
| - <category android:name="android.intent.category.DEFAULT"/> |
111 |
| - </intent-filter> |
112 |
| - </activity-alias> |
113 |
| - |
114 | 140 | <provider
|
115 | 141 | android:name=".filepicker.TermuxDocumentsProvider"
|
116 | 142 | android:authorities="${TERMUX_PACKAGE_NAME}.documents"
|
117 |
| - android:grantUriPermissions="true" |
118 | 143 | android:exported="true"
|
| 144 | + android:grantUriPermissions="true" |
119 | 145 | android:permission="android.permission.MANAGE_DOCUMENTS">
|
120 | 146 | <intent-filter>
|
121 | 147 | <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
|
125 | 151 | <service
|
126 | 152 | android:name=".app.TermuxService"
|
127 | 153 | android:exported="false" />
|
128 |
| - |
129 | 154 | <service
|
130 | 155 | android:name=".app.RunCommandService"
|
131 | 156 | android:exported="true"
|
132 |
| - android:permission="${TERMUX_PACKAGE_NAME}.permission.RUN_COMMAND" > |
| 157 | + android:permission="${TERMUX_PACKAGE_NAME}.permission.RUN_COMMAND"> |
133 | 158 | <intent-filter>
|
134 | 159 | <action android:name="${TERMUX_PACKAGE_NAME}.RUN_COMMAND" />
|
135 | 160 | </intent-filter>
|
136 | 161 | </service>
|
137 | 162 |
|
138 | 163 | <receiver android:name=".app.TermuxOpenReceiver" />
|
139 | 164 |
|
140 |
| - <provider android:authorities="${TERMUX_PACKAGE_NAME}.files" |
141 |
| - android:readPermission="android.permission.permRead" |
142 |
| - android:exported="true" |
143 |
| - android:grantUriPermissions="true" |
144 |
| - android:name=".app.TermuxOpenReceiver$ContentProvider" /> |
145 |
| - <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" /> |
146 |
| - <meta-data android:name="com.samsung.android.multidisplay.keep_process_alive" android:value="true"/> |
| 165 | + <provider |
| 166 | + android:name=".app.TermuxOpenReceiver$ContentProvider" |
| 167 | + android:authorities="${TERMUX_PACKAGE_NAME}.files" |
| 168 | + android:exported="true" |
| 169 | + android:grantUriPermissions="true" |
| 170 | + android:readPermission="android.permission.permRead" /> |
| 171 | + |
| 172 | + <meta-data |
| 173 | + android:name="com.sec.android.support.multiwindow" |
| 174 | + android:value="true" /> |
| 175 | + <meta-data |
| 176 | + android:name="com.samsung.android.multidisplay.keep_process_alive" |
| 177 | + android:value="true" /> |
147 | 178 | </application>
|
148 | 179 |
|
149 | 180 | </manifest>
|
0 commit comments