DO NOT MERGE. Provider to share private files between apps.
Apps should generally avoid sending raw filesystem paths across
process boundaries, since the receiving app may not have the same
access as the sender. Instead, apps should send Uris and rely on
platform features like grantUriPermission() to control access.
This provider is a simple implementation that services Uris which
are backed by raw files on disk. It relies on ContentProvider to
enforce the grants, and supports reading, writing, and deleting. It
responds to OpenableColumns and tries answering getType() using
file extensions.
Apps define supported paths in <meta-data> associated with their
<provider> manifest entries.
Bug: 7005318
Change-Id: Iceb4f2ce996221d2d85e009b62c856dcdf5eca14
diff --git a/v4/tests/AndroidManifest.xml b/v4/tests/AndroidManifest.xml
new file mode 100644
index 0000000..f91afc5
--- /dev/null
+++ b/v4/tests/AndroidManifest.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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"
+ package="android.support.v4.content.tests">
+
+ <application>
+ <uses-library android:name="android.test.runner" />
+
+ <provider
+ android:name="android.support.v4.content.FileProvider"
+ android:authorities="moocow"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/paths" />
+ </provider>
+
+ </application>
+
+ <instrumentation
+ android:name="android.test.InstrumentationTestRunner"
+ android:targetPackage="android.support.v4.content.tests" />
+
+</manifest>