<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="androidx.camera.camera2">

    <application>
        <service
            android:name="androidx.camera.core.impl.MetadataHolderService"
            tools:ignore="Instantiatable"
            tools:node="merge">
            <meta-data
                android:name=
                    "androidx.camera.core.impl.MetadataHolderService.DEFAULT_CONFIG_PROVIDER"
                android:value="androidx.camera.camera2.Camera2Config$DefaultProvider" />
        </service>
    </application>
</manifest>

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="androidx.camera.camera2">

    <application>
        <service
            android:name="androidx.camera.core.impl.MetadataHolderService"
            android:exported="false"
            android:enabled="false"
            tools:ignore="Instantiatable"
            tools:node="merge">
            <meta-data
                android:name=
                    "androidx.camera.core.impl.MetadataHolderService.DEFAULT_CONFIG_PROVIDER"
                android:value="androidx.camera.camera2.Camera2Config$DefaultProvider" />
        </service>
    </application>
</manifest>

Add exported and enabled attributes to camera2
Add exported and enabled attributes to camera2

 Explicitly sets android:exported="false" and android:enabled="false"
 for the MetadataHolderService defined in camera-camera2's
 AndroidManifest.

 This would likely be added through the manifest merging process, but
 this makes it explicit that MetadataHolderService should not be
 accessible externally or by the system.

Bug: 189592464
Test: ./gradlew bOS
Change-Id: Ie993ab1edd05c1acf5d370aba236c775d50aacc2
