diff options
author | James Wei <jameswei@google.com> | 2020-04-20 21:40:50 +0800 |
---|---|---|
committer | James Wei <jameswei@google.com> | 2020-04-22 11:34:42 +0800 |
commit | 82062b99eb0ee390e9c1ef16f573515d06c40356 (patch) | |
tree | 71a1a74fa5176316ff8070285494d20220d55655 /media/java/android/mtp/MtpStorage.java | |
parent | 19ded228a3d84e07be054484ddfb0c94a6b9ebe4 (diff) |
MTP: Fix MTP SD card issue
Modify MTP access path for SD card in accordance with Storage Permission change
Bug: 150188237
Test: atest MtpTests
Test: Manual test: MTP file browsing / copy on SD card
Change-Id: I7da699ca04844514827af18b0318c66d2a3fbc6e
Diffstat (limited to 'media/java/android/mtp/MtpStorage.java')
-rw-r--r-- | media/java/android/mtp/MtpStorage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/mtp/MtpStorage.java b/media/java/android/mtp/MtpStorage.java index ba752633718c..88c32a3ea72b 100644 --- a/media/java/android/mtp/MtpStorage.java +++ b/media/java/android/mtp/MtpStorage.java @@ -36,7 +36,7 @@ public class MtpStorage { public MtpStorage(StorageVolume volume, int storageId) { mStorageId = storageId; - mPath = volume.getInternalPath(); + mPath = volume.getPath(); mDescription = volume.getDescription(null); mRemovable = volume.isRemovable(); mMaxFileSize = volume.getMaxFileSize(); |