Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ce83aeb authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Jeff Sharkey
Browse files

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
parent 2606f697
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
     }

    /**