1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2024 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<!-- 19 This XML file is a FileProvider configuration file. It defines which directories your app can 20 share with other apps using FileProvider, a class within the Android support library that 21 facilitates secure file sharing. 22--> 23<paths> 24 <!-- 25 The files-path element in the file_paths.xml file defines a path within the app's internal 26 storage that the FileProvider can use to generate ContentUris. When you write the image file 27 to the directory specified by the files-path (in this case, "images/"), the FileProvider can 28 still grant access to that file to other applications through a ContentUri. 29 30 The "name" property is what the uri uses to hide the actual path. 31 The "path" property is the segment that is amended to the end of the directory for a file group 32 e.g. 33 34 dir = File(context.filesDir, "images") 35 36 dir = [/data/user/0/androidx.core.telecom.test/files/images] 37 file = [/data/user/0/androidx.core.telecom.test/files/images/testImage.png] 38 uri = [content://androidx.core.telecom.test.fileprovider/my_images/testImage.png] 39 --> 40 <files-path 41 name="my_images" 42 path="images/" /> 43</paths> 44