天天看点

sprd安卓11 修改插入U盘后图库和视频播放器中不识别u盘中文件问题

--- a/sprd/frameworks/base/services/core/java/com/android/server/StorageManagerService.java
+++ b/sprd/frameworks/base/services/core/java/com/android/server/StorageManagerService.java
@@ -1592,10 +1592,11 @@ class StorageManagerService extends StorageManagerServiceEx
 
             // Adoptable public disks are visible to apps, since they meet
             // public API requirement of being in a stable location.
-            if (vol.disk.isAdoptable()) {
+                       //modify by luoyalong 20210914 for can not find file in gallery begin 
+            //if (vol.disk.isAdoptable()) {
                 vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE;
-            }
-
+            //}
+                       //modify by luoyalong 20210914 for can not find file in gallery end 
             vol.mountUserId = mCurrentUserId;
             mHandler.obtainMessage(H_VOLUME_MOUNT, vol).sendToTarget();