photosonly flavor
This commit is contained in:
parent
b9857801f9
commit
41f12fff20
3 changed files with 58 additions and 0 deletions
3
.github/workflows/continuous.yml
vendored
3
.github/workflows/continuous.yml
vendored
|
|
@ -24,6 +24,9 @@ jobs:
|
||||||
- name: Build photos APK with Gradle
|
- name: Build photos APK with Gradle
|
||||||
run: ./gradlew assemblePhotosDebug
|
run: ./gradlew assemblePhotosDebug
|
||||||
|
|
||||||
|
- name: Build photosonly APK with Gradle
|
||||||
|
run: ./gradlew assemblePhotosonlyDebug
|
||||||
|
|
||||||
- name: Upload APKs
|
- name: Upload APKs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,10 @@ android {
|
||||||
dimension 'default'
|
dimension 'default'
|
||||||
applicationId 'com.google.android.apps.photos'
|
applicationId 'com.google.android.apps.photos'
|
||||||
}
|
}
|
||||||
|
photosonly {
|
||||||
|
dimension 'default'
|
||||||
|
applicationId 'com.google.android.apps.photos'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// No benefit outside of Google Play, disabled for IzzyOnDroid
|
// No benefit outside of Google Play, disabled for IzzyOnDroid
|
||||||
|
|
|
||||||
51
app/src/photosonly/AndroidManifest.xml
Normal file
51
app/src/photosonly/AndroidManifest.xml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
|
<application
|
||||||
|
android:forceQueryable="true"
|
||||||
|
android:allowBackup="false"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
|
android:supportsRtl="true"
|
||||||
|
android:theme="@android:style/Theme.NoDisplay"
|
||||||
|
tools:targetApi="30">
|
||||||
|
|
||||||
|
<provider
|
||||||
|
android:name="de.lukaspieper.gcam.GServicesProvider"
|
||||||
|
android:authorities="com.google.android.gsf.gservices"
|
||||||
|
android:exported="true"
|
||||||
|
tools:ignore="ExportedContentProvider"
|
||||||
|
tools:node="remove" /> <!-- remove this provider for the photosonly flavor -->
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name="de.lukaspieper.gcam.PreviewRedirectActivity"
|
||||||
|
android:exported="true">
|
||||||
|
|
||||||
|
<!-- Credits to Calyx developers: -->
|
||||||
|
<!-- https://gitlab.com/CalyxOS/platform_external_calyx_GCamPhotosPreview -->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="com.android.camera.action.REVIEW" />
|
||||||
|
<action android:name="android.provider.action.REVIEW" />
|
||||||
|
<action android:name="android.provider.action.REVIEW_SECURE" />
|
||||||
|
<action android:name="com.google.android.apps.photos.mars.api.ACTION_REVIEW" />
|
||||||
|
<action android:name="com.google.android.apps.photos.mars.api.ACTION_REVIEW_SECURE" />
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
|
||||||
|
<data android:scheme="content" />
|
||||||
|
|
||||||
|
<data android:mimeType="image/*" />
|
||||||
|
<data android:mimeType="video/*" />
|
||||||
|
<data android:mimeType="application/vnd.google.panorama360+jpg" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
<!-- Needed only so GCam can query for and find us -->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.SEND" />
|
||||||
|
<data android:mimeType="image/*" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
</application>
|
||||||
|
</manifest>
|
||||||
Loading…
Reference in a new issue