mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 08:36:19 +00:00
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From 97dc23254fd07c42c87e8e1518109249adb0c1e9 Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Tue, 28 Nov 2017 18:28:04 +0100
|
|
Subject: [PATCH 04/51] Relax requirement for visible flag to sdcards
|
|
|
|
The vast majority of sdcard readers are stable enough to be declared by
|
|
the API. (I see no counter-example)
|
|
FBE broke adoptable storage with SDCard, hence this need.
|
|
|
|
Change-Id: Ia616671c03562d1eadaff5531a5c708a62d7ad3a
|
|
---
|
|
.../core/java/com/android/server/StorageManagerService.java | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/services/core/java/com/android/server/StorageManagerService.java b/services/core/java/com/android/server/StorageManagerService.java
|
|
index 39b8643e6d38..9e73c650d353 100644
|
|
--- a/services/core/java/com/android/server/StorageManagerService.java
|
|
+++ b/services/core/java/com/android/server/StorageManagerService.java
|
|
@@ -1619,7 +1619,8 @@ class StorageManagerService extends IStorageManager.Stub
|
|
|
|
// Adoptable public disks are visible to apps, since they meet
|
|
// public API requirement of being in a stable location.
|
|
- if (vol.disk.isAdoptable()) {
|
|
+ // Assume all SDs match this as well
|
|
+ if (vol.disk.isAdoptable() || vol.disk.isSd()) {
|
|
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_WRITE;
|
|
}
|
|
|
|
--
|
|
2.25.1
|
|
|