Skip to content

Commit

Permalink
Revert "Remove deprecated storage_list.xml"
Browse files Browse the repository at this point in the history
This reverts commit 0b3467b.

Apparently not deprecated since this breaks mounting sdcard.
Still not working correctly after reverting this but it seemed
to be even more broken with this.

Change-Id: I63a70d055454cd83031b96f786c9fe1aff198de9
  • Loading branch information
Mustaavalkosta committed Nov 25, 2015
1 parent 0b3467b commit 9b24bb2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions overlay/frameworks/base/core/res/res/xml/storage_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2011, 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.
*/
-->

<!-- The <device> element should contain one or more <storage> elements.
Exactly one of these should have the attribute primary="true".
This storage will be the primary external storage and should have mountPoint="/mnt/sdcard".
Each storage should have both a mountPoint and storageDescription attribute.
The following attributes are optional:
primary: (boolean) this storage is the primary external storage
removable: (boolean) this is removable storage (for example, a real SD card)
emulated: (boolean) the storage is emulated via the FUSE sdcard daemon
mtpReserve: (integer) number of megabytes of storage MTP should reserve for free storage
(used for emulated storage that is shared with system's data partition)
allowMassStorage: (boolean) true if this volume can be shared via USB mass storage
maxFileSize: (integer) maximum file size in megabytes
A storage should not have both emulated and removable set to true
-->

<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
<storage
android:storageDescription="@string/storage_internal"
android:emulated="true"
android:mtpReserve="100" />
</StorageList>

0 comments on commit 9b24bb2

Please sign in to comment.