Tethering: Add an exported flag in manifest

With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.

Bug: 150232615
Test: TH
Change-Id: I25b55378df393cd4fb8932b7ae64f97eb9f1aa8e
Merged-In: I25b55378df393cd4fb8932b7ae64f97eb9f1aa8e
(cherry picked from commit 9226d6c835cd57d10a7562f18143dbaae8601b43)
This commit is contained in:
Ashwini Oruganti
2020-03-10 13:49:18 -07:00
committed by Mark Chien
parent 5da1070d8f
commit af37b0a723
2 changed files with 4 additions and 2 deletions

View File

@@ -44,7 +44,8 @@
android:extractNativeLibs="false" android:extractNativeLibs="false"
android:persistent="true"> android:persistent="true">
<service android:name="com.android.server.connectivity.tethering.TetheringService" <service android:name="com.android.server.connectivity.tethering.TetheringService"
android:permission="android.permission.MAINLINE_NETWORK_STACK"> android:permission="android.permission.MAINLINE_NETWORK_STACK"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.net.ITetheringConnector"/> <action android:name="android.net.ITetheringConnector"/>
</intent-filter> </intent-filter>

View File

@@ -24,7 +24,8 @@
<application> <application>
<service android:name="com.android.server.connectivity.tethering.TetheringService" <service android:name="com.android.server.connectivity.tethering.TetheringService"
android:process="system" android:process="system"
android:permission="android.permission.MAINLINE_NETWORK_STACK"> android:permission="android.permission.MAINLINE_NETWORK_STACK"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.net.ITetheringConnector.InProcess"/> <action android:name="android.net.ITetheringConnector.InProcess"/>
</intent-filter> </intent-filter>