summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-08-06 18:55:59 -0600
committerJeff Sharkey <jsharkey@google.com>2018-08-09 20:37:16 +0000
commit0ce83aeb2b04a279380f062a07c46c19eccb3785 (patch)
treea7cab293ba6da144103e167f89d74d225cd18359 /core/java
parent2606f69755a8ab20fe6d414bf1429f0d3bbf6698 (diff)
Add "owner_package_name" column.
To support new storage features in Q, we need to start tracking the "owner" of each inserted file. This change introduces the schema change to insert the column, including logic to derive values for existing well-known package-specific paths. Populate the column for any newly inserted media based on the calling package. Bug: 111893193 Test: adb shell am instrument -w com.android.providers.media.tests Change-Id: Ibf5656423c22e7e540ab4a3a3efb99b8af944e16
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/MediaStore.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index 9c3a40995c77..68572dd2a52e 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -469,6 +469,12 @@ public final class MediaStore {
* The height of the image/video in pixels.
*/
public static final String HEIGHT = "height";
+
+ /**
+ * Package that contributed this media.
+ * @hide
+ */
+ public static final String OWNER_PACKAGE_NAME = "owner_package_name";
}
/**