Surface third-party licenses

Change-Id: If6958dc39e3aa305108b40f84c7383fe4ae1a546
Fixes: 110150995
Fixes: 112270784
Test: In head unit
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d1c09a7..8bf143a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -127,6 +127,11 @@
                   android:windowSoftInputMode="adjustResize">
         </activity>
 
+        <activity android:name=".system.ThirdPartyLicensesActivity"
+                  android:configChanges="orientation|keyboardHidden|screenSize"
+                  android:windowSoftInputMode="adjustResize">
+        </activity>
+
         <service android:name=".bluetooth.BluetoothPairingService" />
 
         <receiver android:name=".bluetooth.BluetoothPairingRequest">
@@ -135,5 +140,17 @@
             </intent-filter>
         </receiver>
 
+        <!-- FileProvider to share a generated license html file.
+             Note that "com.android.settings.files" is set here as its authorities because a Uri
+             permission grant should be allowed to share a file with an external browser but it is
+             allowed only for Settings' authorities in ActivityManagerService.  -->
+        <provider android:name="androidx.core.content.FileProvider"
+                  android:authorities="com.android.settings.files"
+                  android:grantUriPermissions="true"
+                  android:exported="false">
+            <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
+                       android:resource="@xml/file_paths" />
+        </provider>
+
     </application>
 </manifest>