Skip to content

Commit f94d15f

Browse files
Nits2097Gerrit Code Review
authored andcommitted
Merge "Correct Nav sample app manifest" into androidx-main
2 parents 34d2fe6 + 31a81f8 commit f94d15f

File tree

1 file changed

+12
-40
lines changed

1 file changed

+12
-40
lines changed

car/app/app-samples/navigation/mobile/src/main/AndroidManifestWithSdkVersion.xml

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,18 @@
3737
<uses-permission android:name="androidx.car.app.ACCESS_SURFACE"/>
3838
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
3939

40-
<!-- Various required feature settings for an automotive app. -->
41-
<uses-feature
42-
android:name="android.hardware.type.automotive"
43-
android:required="true" />
44-
<uses-feature
45-
android:name="android.software.car.templates_host"
46-
android:required="true" />
47-
<uses-feature
48-
android:name="android.hardware.wifi"
49-
android:required="false" />
50-
<uses-feature
51-
android:name="android.hardware.screen.portrait"
52-
android:required="false" />
53-
<uses-feature
54-
android:name="android.hardware.screen.landscape"
55-
android:required="false" />
40+
<!-- For Microphone Recording -->
41+
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
42+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
5643

5744
<application
5845
android:icon="@drawable/ic_launcher"
5946
android:label="@string/app_name">
6047

61-
<meta-data
62-
android:name="com.android.automotive"
63-
android:resource="@xml/automotive_app_desc"
64-
tools:ignore="MetadataTagInsideApplicationTag" />
48+
<meta-data
49+
android:name="com.google.android.gms.car.application"
50+
android:resource="@xml/automotive_app_desc"
51+
tools:ignore="MetadataTagInsideApplicationTag" />
6552

6653
<meta-data android:name="androidx.car.app.minCarApiLevel"
6754
android:value="1"
@@ -77,31 +64,16 @@
7764
<category android:name="androidx.car.app.category.NAVIGATION"/>
7865
<category android:name="androidx.car.app.category.FEATURE_CLUSTER"/>
7966
</intent-filter>
67+
<intent-filter>
68+
<action android:name="androidx.car.app.action.NAVIGATE" />
69+
<category android:name="android.intent.category.DEFAULT"/>
70+
<data android:scheme="geo" />
71+
</intent-filter>
8072
</service>
8173
<service
8274
android:name="androidx.car.app.sample.navigation.common.nav.NavigationService"
8375
android:enabled="true"
8476
android:exported="true">
8577
</service>
86-
87-
<activity
88-
android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
89-
android:name="androidx.car.app.activity.CarAppActivity"
90-
android:exported="true"
91-
android:launchMode="singleTask"
92-
android:label="Navigation">
93-
94-
<intent-filter>
95-
<action android:name="android.intent.action.MAIN" />
96-
<category android:name="android.intent.category.LAUNCHER" />
97-
</intent-filter>
98-
<intent-filter>
99-
<action android:name="androidx.car.app.action.NAVIGATE" />
100-
<category android:name="android.intent.category.DEFAULT"/>
101-
<data android:scheme="geo" />
102-
</intent-filter>
103-
<meta-data android:name="distractionOptimized" android:value="true"/>
104-
</activity>
105-
10678
</application>
10779
</manifest>

0 commit comments

Comments
 (0)