microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.67k stars 1.73k forks source link

Can't install org.microg.gms alongside google's com.google.android.gms due to permission conflict #2646

Open Vavun opened 14 hours ago

Vavun commented 14 hours ago

Hi

When trying to install a user build of microG on device with google services installed I got this

# pm install /data/local/tmp/org.microg.gms.apk
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package org.microg.gms attempting to redeclare permission com.google.android.gms.nearby.exposurenotification.EXPOSURE_CALLBACK already owned by com.google.android.gms]

I have only one device with google services, so I can't check if this is error on my side or it is a problem that needs to be solved.

Android 13 (CrDroid) + mindthegapps package (recommended by lineageos Devs)

ale5000-git commented 14 hours ago

If I'm not wrong you can re-declare a permission only if the signature is the same, so org.microg.gms and com.google.android.gms must have the same signature.

Improving this situation in already in my ToDO list.