Kang Li 61cf4d145e Moved LRResolverRankerService to ExtServices, and added a permission to
ensure that ResolverRankerServices are from trust sources.

Test: manually shared images in Camera, and in PTP to confirm it works
as expected.

Change-Id: I3549292d424fec949e9115faea7a0c5bdec06e87
2017-04-21 15:44:51 +00:00

49 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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:androidprv="http://schemas.android.com/apk/prv/res/android"
package="android.ext.services"
android:versionCode="1"
android:versionName="1"
coreApp="true">
<uses-permission android:name="android.permission.PROVIDE_RESOLVER_RANKER_SERVICE" />
<application android:label="@string/app_name"
android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true">
<service android:name=".storage.CacheQuotaServiceImpl"
android:permission="android.permission.BIND_CACHE_QUOTA_SERVICE">
<intent-filter>
<action android:name="android.app.usage.CacheQuotaService" />
</intent-filter>
</service>
<service android:name=".resolver.LRResolverRankerService"
android:permission="android.permission.BIND_RESOLVER_RANKER_SERVICE"
android:priority="-1" >
<intent-filter>
<action android:name="android.service.resolver.ResolverRankerService" />
</intent-filter>
</service>
<library android:name="android.ext.services"/>
</application>
</manifest>