Advertisement
thexfactor2011

storagexml2

Jan 31st, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. **
  4. ** Copyright 2011, The Android Open Source Project
  5. **
  6. ** Licensed under the Apache License, Version 2.0 (the "License")
  7. ** you may not use this file except in compliance with the License.
  8. ** You may obtain a copy of the License at
  9. **
  10. ** http://www.apache.org/licenses/LICENSE-2.0
  11. **
  12. ** Unless required by applicable law or agreed to in writing, software
  13. ** distributed under the License is distributed on an "AS IS" BASIS,
  14. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ** See the License for the specific language governing permissions and
  16. ** limitations under the License.
  17. */
  18. -->
  19.  
  20. <!-- The <device> element should contain one or more <storage> elements.
  21. Exactly one of these should have the attribute primary="true".
  22. This storage will be the primary external storage and should have path="/mnt/sdcard".
  23. Each storage should have both a path and description attribute set.
  24. The following boolean attributes are optional:
  25.  
  26. primary: this storage is the primary external storage
  27. removable: this is removable storage (for example, a real SD card)
  28. emulated: the storage is emulated via the FUSE sdcard daemon
  29. mtp-reserve: number of megabytes of storage MTP should reserve for free storage
  30. (used for emulated storage that is shared with system's data partition)
  31.  
  32. A storage should not have both emulated and removable set to true
  33. -->
  34.  
  35. <StorageList xmlns:android="http://schemas.android.com/apk/res/android">
  36. <!-- internal emulated storage -->
  37. <storage android:mountPoint="/storage/sdcard0"
  38. android:storageDescription="@string/storage_internal"
  39. android:primary="true"
  40. android:emulated="true"
  41. android:mtpReserve="100" />
  42. <!-- Micro SD card -->
  43. <storage android:mountPoint="/storage/sdcard1"
  44. android:storageDescription="@string/storage_sd_card"
  45. android:removable="true"
  46. android:maxFileSize="4096" />
  47. <!-- external USB drive -->
  48. <storage android:mountPoint="/storage/usbdisk0"
  49. android:storageDescription="@string/storage_usb"
  50. android:primary="false"
  51. android:removable="true" />
  52. </StorageList>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement