|
14 | 14 | limitations under the License.
|
15 | 15 | -->
|
16 | 16 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
17 |
| - package="com.samsung.microbit" |
18 |
| - android:versionCode="16" |
19 |
| - android:versionName="2.4"> |
| 17 | + xmlns:tools="http://schemas.android.com/tools" |
| 18 | + android:versionCode="57" |
| 19 | + android:versionName="3.0.7"> |
20 | 20 |
|
21 | 21 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
22 | 22 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
23 | 23 | <uses-permission android:name="android.permission.INTERNET"/>
|
24 |
| - <uses-permission android:name="android.permission.BLUETOOTH"/> |
25 |
| - <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
26 |
| - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
27 |
| - <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> |
| 24 | + <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> |
| 25 | + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30"/> |
| 26 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="29" /> |
| 27 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" /> |
28 | 28 | <uses-permission android:name="android.permission.VIBRATE"/>
|
29 | 29 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
30 | 30 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" android:protectionLevel="signature"/>
|
31 | 31 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
|
32 | 32 | <uses-permission android:name="android.permission.WAKE_LOCK"/>
|
33 | 33 | <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
|
34 | 34 | <uses-permission android:name="android.permission.CAMERA"/>
|
| 35 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
35 | 36 |
|
| 37 | + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="30"/> |
| 38 | + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/> |
| 39 | +<!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" android:maxSdkVersion="30"/>--> |
36 | 40 |
|
37 |
| - <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> |
| 41 | + <!-- API 31 Needed only if your app looks for Bluetooth devices. --> |
| 42 | + <!-- Include "neverForLocation" only if you can strongly assert that |
| 43 | + your app never derives physical location from Bluetooth scan results. --> |
| 44 | + <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> |
| 45 | + <!-- API 31 Needed only if your app communicates with already-paired Bluetooth devices. --> |
| 46 | + <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
38 | 47 |
|
39 | 48 | <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
|
40 | 49 | <uses-feature android:name="android.hardware.camera" android:required="false"/>
|
41 | 50 | <uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
|
42 | 51 | <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
43 | 52 | <uses-feature android:name="android.hardware.telephony" android:required="false"/>
|
44 | 53 |
|
45 |
| - |
46 | 54 | <supports-screens android:normalScreens="true" />
|
47 | 55 | <supports-screens android:largeScreens="true" />
|
48 | 56 | <supports-screens android:xlargeScreens="true" />
|
|
52 | 60 | android:hardwareAccelerated="true"
|
53 | 61 | android:icon="@mipmap/ic_launcher"
|
54 | 62 | android:label="@string/app_name"
|
55 |
| - android:theme="@style/AppTheme.NoActionBar"> |
| 63 | + android:theme="@style/AppTheme.NoActionBar" |
| 64 | + android:requestLegacyExternalStorage="true"> |
| 65 | + |
56 | 66 | <activity
|
57 | 67 | android:name=".ui.activity.HomeActivity"
|
58 | 68 | android:configChanges="orientation|screenSize|keyboardHidden"
|
|
65 | 75 | android:label="@string/app_name_without_colon"
|
66 | 76 | android:configChanges="orientation|screenSize|keyboardHidden"
|
67 | 77 | android:windowSoftInputMode="adjustResize"
|
68 |
| - android:launchMode="singleTask"> |
69 |
| - <!-- Intent filters for open micro:bit app, accord to user request --> |
| 78 | + android:launchMode="singleTask" |
| 79 | + android:exported="true"> |
70 | 80 |
|
| 81 | + <!-- Intent filters for open micro:bit app, accord to user request --> |
71 | 82 |
|
72 | 83 | <!-- This filter works, when request - open file from File Manager -->
|
73 | 84 | <intent-filter>
|
|
104 | 115 | android:scheme="content"/>
|
105 | 116 | </intent-filter>
|
106 | 117 |
|
| 118 | + <!-- This filter works, when sharing a hex file from Files app --> |
| 119 | + <!-- https://developer.android.com/training/sharing/receive#update-manifest --> |
| 120 | + <intent-filter> |
| 121 | + <action android:name="android.intent.action.SEND"/> |
| 122 | + <category android:name="android.intent.category.DEFAULT"/> |
| 123 | + <category android:name="android.intent.category.BROWSABLE"/> |
| 124 | + <data android:mimeType="application/octet-stream" /> |
| 125 | + </intent-filter> |
| 126 | + |
107 | 127 | </activity>
|
108 | 128 | <activity
|
109 | 129 | android:name=".ui.activity.NotificationActivity"
|
|
127 | 147 | android:label="Audio Recorder"
|
128 | 148 | android:launchMode="singleTask"
|
129 | 149 | android:screenOrientation="portrait"/>
|
130 |
| - <activity |
131 |
| - android:name=".ui.activity.CameraActivity_OldAPI" |
132 |
| - android:label="Camera Microbit" |
133 |
| - android:launchMode="singleTask" |
134 |
| - android:screenOrientation="portrait" |
135 |
| - android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"/> |
136 | 150 | <activity
|
137 | 151 | android:name=".ui.activity.HelpWebView"
|
138 | 152 | android:configChanges="orientation|screenSize"
|
139 | 153 | android:label="Help Webview"
|
140 | 154 | android:launchMode="singleTask"
|
141 | 155 | android:screenOrientation="portrait"/>
|
142 | 156 | <activity
|
143 |
| - android:name=".ui.activity.CameraActivityPermissionChecker" |
144 |
| - android:label="@string/title_activity_camera_activity_permission_checker" |
145 |
| - android:screenOrientation="portrait" |
146 |
| - android:theme="@style/AppTheme.NoActionBar"/> |
147 |
| - |
| 157 | + android:name=".ui.activity.MakeCodeWebView" |
| 158 | + android:configChanges="orientation|screenSize" |
| 159 | + android:label="MakeCode Webview" |
| 160 | + android:launchMode="singleTask" |
| 161 | + android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/> |
148 | 162 | <service
|
149 | 163 | android:name=".service.DfuService"
|
150 | 164 | android:enabled="true"/>
|
|
165 | 179 | android:enabled="true"
|
166 | 180 | android:exported="false"/>
|
167 | 181 |
|
| 182 | + <service |
| 183 | + android:name=".service.PartialFlashingService" |
| 184 | + android:enabled="true" |
| 185 | + android:launchMode="singleInstance" |
| 186 | + /> |
| 187 | + |
168 | 188 | <activity
|
169 | 189 | android:name=".ui.activity.SplashScreenActivity"
|
170 | 190 | android:screenOrientation="locked"
|
171 |
| - android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> |
| 191 | + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" |
| 192 | + android:exported="true"> |
172 | 193 | <intent-filter>
|
173 | 194 | <action android:name="android.intent.action.MAIN"/>
|
174 | 195 |
|
|
182 | 203 | <action android:name="com.samsung.microbit.core.SHOWFROMSERVICE"/>
|
183 | 204 | </intent-filter>
|
184 | 205 | </receiver>
|
| 206 | + |
185 | 207 | </application>
|
186 | 208 |
|
| 209 | + <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/> |
187 | 210 | </manifest>
|
0 commit comments