-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install app-photos-debug.apk -> INSTALL_FAILED_CONFLICTING_PROVIDER #60
Comments
Hi, please update this issue to match the issue template and provide more information about your use case. Thanks! |
Got exactly the same Error on Pixel 5 with Graphene OS. It's conflicting with the sandboxed Google Play services. But they should be sandboxed. Why do they conflict on different workprofiles? I am using Insular to Sandbox them. |
The response of strcat was to just use Google Play Services on your main Profile because Graphene OS sandboxes every app. I just installed Google Play Services on my main Profile and restricted Network and Sensor access. It shouldn't be able to do any harm I think. So there is no need to fake it. So just install com.google.android.gsf and restrict everything to it to use Gcam. Edit: you also need to reinstall Gcam again (in my case) to make it work. |
Saw the discussion on Matrix and just want to comment on that here.
My app (the basic variant) has not been using Google's ApplicationId for a couple of versions. The variant with gallery support, on the other hand, must use the ApplicationId from Google Photos. So both do not use However, both variants of the app register a provider with the id
This has already been answered perfectly by Daniel. Here is a quote:
So why do I continue to maintain this app, even though I use GrapheneOS myself and could simply use the app com.google.android.gsf? GSF not only provides the necessary interfaces to get Google Camera working, but also takes care of other things. These additional interfaces, which do not exist in my app, can have (side) effects on other apps. By the way, questions similar to these have already been answered in previous issues. This is not a bug in my app, but a reasonable restriction of the OS. |
There's something I can hardly understand : If you install play services on main profile, don't log in, and restrict every privilege including Network, where would be the security issue ? What is the value-added of Gcam-Services-Provider then ? Anyway, thanks @lukaspieper, too bad I can't use your solution, thank you anyway for your time and your involvement in the community ! |
I have not used the word security at all so far, for the simple reason that there is no security benefit. I have only talked about compatibility and side effects. It may be that GSF causes side effects on other apps. But now let's talk in practical terms. This app has been around much longer than the GrapheneOS compatibility layer. From today's perspective, I might not have developed this app at all, but more than a year and a half ago there was no good alternative.
You're welcome. |
Nevermind, I found the Calyx Photos Preview app! |
Also you found a suitable solution let me answer one or two things (for future readers).
Yes absolutely. The compatibility restrictions of the basic version apply plus the fact that you cannot have Google Photos installed.
There are technical solutions to get the real cause of the issue. For the average user that error messages would not be too advanced. As I had this a few days back I might need to consider documenting the steps somewhere. |
Describe the bug
I get
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.google.android.gsf.gservices (in package com.google.android.apps.photos) is already used by com.google.android.gsf]
when trying to install app-photo-debug.apk via the adb command :
adb shell pm install --force-queryable /data/local/tmp/app-photos-debug.apk
To Reproduce
Steps to reproduce the behavior:
adb push app-photos-debug.apk /data/local/tmp/
adb shell pm install --force-queryable /data/local/tmp/app-photos-debug.apk
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.google.android.gsf.gservices (in package com.google.android.apps.photos) is already used by com.google.android.gsf]
Smartphone
Device: Pixel 3a
OS/ROM: GrapheneOS 11 (SP1A.211105.002.2021111414)
Gcam-Services-Provider version: 1.4
Additional context
There is Google Play Services installed on a Sandbox (another user profile), but not on the user profile I'm trying to install app-photo-debug.apk
The text was updated successfully, but these errors were encountered: