From 41f12fff200cfd1e7a4922ca511d85c9ae53d67b Mon Sep 17 00:00:00 2001 From: Kyle Roth Date: Mon, 27 Jan 2025 16:35:43 -0500 Subject: [PATCH 1/2] photosonly flavor --- .github/workflows/continuous.yml | 3 ++ app/build.gradle | 4 ++ app/src/photosonly/AndroidManifest.xml | 51 ++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 app/src/photosonly/AndroidManifest.xml diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 764dd5a..9685b9f 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -24,6 +24,9 @@ jobs: - name: Build photos APK with Gradle run: ./gradlew assemblePhotosDebug + - name: Build photosonly APK with Gradle + run: ./gradlew assemblePhotosonlyDebug + - name: Upload APKs uses: actions/upload-artifact@v4 with: diff --git a/app/build.gradle b/app/build.gradle index 587e7a6..9df91e9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,6 +28,10 @@ android { dimension 'default' applicationId 'com.google.android.apps.photos' } + photosonly { + dimension 'default' + applicationId 'com.google.android.apps.photos' + } } // No benefit outside of Google Play, disabled for IzzyOnDroid diff --git a/app/src/photosonly/AndroidManifest.xml b/app/src/photosonly/AndroidManifest.xml new file mode 100644 index 0000000..3370e7d --- /dev/null +++ b/app/src/photosonly/AndroidManifest.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5cbd55e6be3f45881481cccec5aa221bf6602215 Mon Sep 17 00:00:00 2001 From: Kyle Roth Date: Tue, 28 Jan 2025 15:06:33 -0500 Subject: [PATCH 2/2] explain photosonly flavor in readme --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 97757ed..bb1d7e5 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,7 @@ the [changelog](https://grapheneos.org/releases#2023040400): > services Before that, back in July 2021, GrapheneOS implemented a compatibility layer to use the original Google Play services -without advanced permissions. For Gcam it was sufficient to install the Google Service Framework (GSF). - -> [!CAUTION] -> If you already use the Sandboxed Play services or plan to use it in future, you cannot use the Gcam Services -> Provider for technical reasons. **This limitation applies beyond the boundaries of a user profile.** +without advanced permissions. For Gcam it was sufficient to install the Google Service Framework (GSF). ### Comparison: [microG](https://github.com/microg) @@ -40,10 +36,10 @@ access). > [!IMPORTANT] > Using GrapheneOS? Make sure you read the comparison with *GrapheneOS' Gcam support* above! -Currently there are two versions of this app named "basic" and "photos". "Basic" includes everything you need to get +There are three versions of this app named "basic", "photos", and "photosonly". "Basic" includes everything you need to get Gcam running but the button showing the last taken photo in full size will not work. The "photos" version has all features from "basic" and adds support for this button but you cannot have the Google Photos app installed for technical -reasons. +reasons. The "photosonly" version adds support for this button without a shim for GSF; it is meant to be used on GrapheneOS alongside the sandboxed Play Services. Note that this app comes without UI and therefore has no icon in the app drawer. But of course it is listed in the Android settings (e.g. for uninstallation). @@ -52,6 +48,7 @@ Android settings (e.g. for uninstallation). |----------------|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------| | Basic version | - Google Service Framework (GSF)
- microg | [GitHub](https://github.com/lukaspieper/Gcam-Services-Provider/releases)
[F-Droid](https://f-droid.org/de/packages/de.lukaspieper.gcam.services/) | | Photos version | - Google Service Framework (GSF)
- microg
- Google Photos | [GitHub](https://github.com/lukaspieper/Gcam-Services-Provider/releases) | +| Photosonly version | - microg
- Google Photos | [GitHub](https://github.com/lukaspieper/Gcam-Services-Provider/releases) | ### Gcam Compatibility