History log of /frameworks/base/media/java/android/mtp/MtpStorageManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
71938e18ca4ad77519da70565710ef37e79443f8 11-May-2018 Jerry Zhang <zhangjerry@google.com> Access removable volumes through /mnt/media_rw

Due to permissions changes, we now need to access
the underlying filesystem of removable devices in
order to get write access.

Add internalPath to StorageVolume, and have VolumeInfo
set the field on creation.

Bug: 77849654
Test: Can write to emulated sdcard through MTP
Change-Id: I63302ecf2dd2600a1c9f3f6ab106c3695654cbaa
/frameworks/base/media/java/android/mtp/MtpStorageManager.java
f9c5c2574d95b6d233ebae8beae110f4e15c52c5 17-Aug-2017 Jerry Zhang <zhangjerry@google.com> Add MtpStorageManager for monitoring filesystem events

MtpStorageManager keeps track of file information and
send notifications for new files. MtpDatabase now uses
this instead of MediaProvider for getting object information,
although some operations are still reflected into MP.

Since MtpStorageManager handles storage ids, remove
that field from StorageVolume and VolumeInfo.

Clean up a lot of the jni code for MtpDatabase.

Bug: 63143623
Test: Test every MtpOperation in a variety of situations on Linux and
Windows. Also use the shell to manipulate files. Verify that the cache
is consistent throughout, and the operations behave as expected. Verify
files created by the shell appear.
Test: adb shell am instrument -w android.mtp /android.support.test.runner.AndroidJUnitRunner
Change-Id: Id4ea810047b0c323399cd833047733e5daafb30a
/frameworks/base/media/java/android/mtp/MtpStorageManager.java