Skip to content

Replace AOSP Gallery with the new Gallery app#84

Open
RankoR wants to merge 1 commit into
GrapheneOS:16-qpr2from
RankoR-GOS:replace-gallery
Open

Replace AOSP Gallery with the new Gallery app#84
RankoR wants to merge 1 commit into
GrapheneOS:16-qpr2from
RankoR-GOS:replace-gallery

Conversation

@RankoR
Copy link
Copy Markdown

@RankoR RankoR commented May 5, 2026

The app is expected in external/Gallery:

android_app_import {
    name: "Gallery",
    product_specific: true,
    privileged: false,

    arch: {
        arm64: {
            apk: "prebuilt/Gallery-arm64-v8a-release.apk",
        },
        x86_64: {
            apk: "prebuilt/Gallery-x86_64-release.apk",
        },
    },
    preprocessed: true,

    optional_uses_libs: ["androidx.window.extensions", "androidx.window.sidecar"],
}

Related:

GrapheneOS/platform_frameworks_base#348

@RankoR
Copy link
Copy Markdown
Author

RankoR commented May 13, 2026

TEST_MAPPING:

{
  "presubmit": [
    {
      "name": "CtsPermissionUiTestCases",
      "options": [
        {
          "include-filter": "android.permissionui.cts.MediaPermissionTest#testGalleryAppListedAsFixed"
        },
        {
          "exclude-annotation": "android.platform.test.annotations.FlakyTest"
        }
      ]
    },
    {
      "name": "CtsRoleTestCases",
      "options": [
        {
          "include-filter": "android.app.role.cts.RoleControllerManagerTest#systemGalleryRoleIsNotVisible"
        }
      ]
    },
    {
      "name": "CtsContentTestCases",
      "options": [
        {
          "include-filter": "android.content.cts.AvailableIntentsTest#testGetContentImage"
        }
      ]
    },
    {
      "name": "CtsMediaProviderTestCases",
      "options": [
        {
          "include-filter": "android.provider.cts.media.MediaStoreTest#testIsCurrentSystemGallery"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testPickImageDir"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testPickVideoDir"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testViewImageDir"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testViewVideoDir"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testViewImageFile"
        },
        {
          "include-filter": "android.provider.cts.media.MediaStoreIntentsTest#testViewVideoFile"
        }
      ]
    },
    {
      "name": "CtsModernMediaProviderTests",
      "options": [
        {
          "include-filter": "android.provider.cts.media.modern.MediaStoreTest#testIsCurrentSystemGallery"
        }
      ]
    },
    {
      "name": "CtsStorageHostTestCases",
      "options": [
        {
          "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testSystemGalleryExists"
        }
      ]
    },
    {
      "name": "Launcher3QuickStepTests",
      "options": [
        {
          "include-filter": "com.android.launcher3.provider.GrapheneOsLauncherDbMigrationsTest#migrateGalleryFavorite_updatesOnlyOldGalleryApplications"
        }
      ]
    },
    {
      "name": "CtsScopedStorageGeneralTest",
      "options": [
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testDisableOpResetForSystemGallery"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryAppHasFullAccessToImages"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryAppHasNoFullAccessToAudio"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryCanRenameImagesAndVideos"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testListHiddenFile"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testOpenPendingAndTrashed"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testListPendingAndTrashed"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testDeletePendingAndTrashed_systemGalleryCanDeleteMedia"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryCanTrashOtherAndroidMediaFiles"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryCanUpdateOtherAndroidMediaFiles"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryQueryOtherAppsFiles"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testSystemGalleryCanRenameImageAndVideoDirs"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testInsertFromExternalDirsViaRelativePathAsSystemGallery"
        },
        {
          "include-filter": "android.scopedstorage.cts.general.ScopedStorageDeviceTest#testUpdateToExternalDirsViaRelativePathAsSystemGallery"
        }
      ]
    },
    {
      "name": "CtsScopedStorageBypassDatabaseOperationsTest",
      "options": [
        {
          "include-filter": "android.scopedstorage.cts.bypassdatabase.BypassDatabaseOperationsTest#testSystemGallery_DoesntBypassDatabase"
        },
        {
          "include-filter": "android.scopedstorage.cts.bypassdatabase.BypassDatabaseOperationsTest#testSystemGallery_WithBypassFlag_BypassesDatabase"
        },
        {
          "include-filter": "android.scopedstorage.cts.bypassdatabase.BypassDatabaseOperationsTest#testSystemGallery_targets30_DoesntBypassDatabase"
        },
        {
          "include-filter": "android.scopedstorage.cts.bypassdatabase.BypassDatabaseOperationsTest#testSystemGallery_targets30_WithBypassFlag_BypassesDatabase"
        }
      ]
    },
    {
      "name": "CtsScopedStorageHostTest",
      "options": [
        {
          "include-filter": "android.scopedstorage.cts.legacy.LegacyStorageTest#testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates"
        },
        {
          "include-filter": "android.scopedstorage.cts.legacy.LegacyStorageTest#testLegacySystemGalleryCanUpdateToExistingDirectory"
        },
        {
          "include-filter": "android.scopedstorage.cts.legacy.LegacyStorageTest#testLegacySystemGalleryWithoutWESCannotRename"
        },
        {
          "include-filter": "android.scopedstorage.cts.legacy.LegacyStorageTest#testCantInsertFilesInOtherAppPrivateDir_hasSystemGallery"
        },
        {
          "include-filter": "android.scopedstorage.cts.legacy.LegacyStorageTest#testCantUpdateFilesInOtherAppPrivateDir_hasSystemGallery"
        }
      ]
    }
  ]
}

Looks like these are all tests that are related

@thestinger thestinger force-pushed the 16-qpr2 branch 2 times, most recently from 33b41bd to e1c27e0 Compare May 21, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant