OSDN Git Service

Change method for getting external storage on marshmallow marshmallow-x86 nougat-x86 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
authorPaulo Sergio Travaglia <pstglia@gmail.com>
Sat, 16 Jan 2016 22:43:18 +0000 (20:43 -0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 26 Jan 2016 02:40:26 +0000 (10:40 +0800)
commit6dfc729a8790c23d2efda4f21bab8123336ae383
tree22448a157fff6b4887ad4ae7c4368a0f74833fee
parent1f90d24cc4bdc015658a4b5cf2292ab40cedd8c5
Change method for getting external storage on marshmallow

The new components/features introduced with marshmallow
(vold 3.0) required a new method for retrieving
external/removable storage devices

These changes were based and use part of the following code:
- Storage access implemented on Settings (uses VolumeInfo class
  to list all connected disks (external and emulated)
  see refresh method from class StorageSettings
  => packages/apps/Settings/src/com/android/settings/deviceinfo
  =>  StorageSettings.java

- getVolumeList method from MountService class
  (converts VolumeInfo ArrayList item into a StorageVolume
   element, which is used by CMFileManager to iterate
   contents and build bookmarks):
  => frameworks/base/services/core/java/com/android/server/
  => MountService.java
src/com/cyanogenmod/filemanager/util/StorageHelper.java