microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
949 stars 207 forks source link

Unable to install NO GAPPS version without gapps installed #113

Open DavidVentura opened 7 years ago

DavidVentura commented 7 years ago

Hi, I had to reflash my rom due to.. user error and now I can't install ug UnifiedNLP NO GAPPS.

F-droid tells me 'Failed to install due to an unkown error'. Installing through adb:

$ adb install Downloads/NetworkLocation.apk 
[100%] /data/local/tmp/NetworkLocation.apk
        pkg: /data/local/tmp/NetworkLocation.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Note: I HAD gapps (they come with the rom) but I removed them.. there might be something left over?

On device:

# pm list packages | grep -i goog                                 
package:com.google.android.configupdater
package:com.google.android.webview
package:com.google.android.packageinstaller
package:com.google.android.diskusage

# pm list packages | grep -i locat                                
package:org.fitchfamily.android.gsmlocation
package:com.android.location.fused

Edit: I'm on 6.0.1

ale5000-git commented 7 years ago

Yes, probably there is some leftover.

DavidVentura commented 7 years ago

Any clue on what to look for? I can't find anything google-related installed on the phone, just 'ConfigUpdater' and 'PackageInstaller', but I don't know if I can remove them

JonnyTech commented 7 years ago

@DavidVentura try https://github.com/Shadow53/rm-gapps

DavidVentura commented 7 years ago

No dice, I couldn't flash it so I adapted the script and ran it manually.. it only found/deleted:

rm /system/lib/libfilterpack_facedetect.so
rm /system/etc/permissions/com.google.android.maps.xml
rm /system/etc/permissions/com.google.android.media.effects.xml
rm /system/etc/permissions/com.google.widevine.software.drm.xml
rm /system/etc/preferred-apps/google.xml
rm /system/etc/sysconfig/google.xml
rm /system/framework/com.google.android.maps.jar
rm /system/framework/com.google.android.media.effects.jar
rm /system/framework/com.google.widevine.software.drm.jar

But I still can't install this. I obviously restarted the phone after deleting the files

JonnyTech commented 7 years ago

Which version of Android? Did you boot to recovery, mount system then flash the zip file?

DavidVentura commented 7 years ago

6.0.1 as stated in the OP, the zip file there is just a non-flashable (at least on twrp) collection of apps. I just ran the updater-script

JonnyTech commented 7 years ago

Sorry, missed the version info. Is it a vanilla Android build or a custom ROM? Strange, the script worked for me on CM13.1 which should be equivalent to yours.

Try this: https://forum.xda-developers.com/galaxy-grand-duos/general/share-remove-gapps-completely-t3397623

Alternatively, flash a pico opengapps (opengapps.org) which will clean existing gapps then install a very small build which should be easier to clean. They also have flags that can prevent items being installed, see https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options

ale5000-git commented 7 years ago

@DavidVentura: If you want, you could try this, it remove GApps and install microG.

Note: It isn't supported by the authour of microG (but supported by me).

lulap commented 7 years ago

@ale5000-git

https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options

Can

Exclude *

or something like it be used to remove all gapps without having to add any google evil to my devices?

lulap commented 7 years ago

or a fun way to detect which remnamts might be blocking (samsung note)

ale5000-git commented 7 years ago

@lulap: The only Google thing installed by my installer is Google Play Store, you can remove it manually after flashing if you want.

It is here: /system/priv-app/Phonesky/Phonesky.apk

PS: For the configuration I haven't looked at it but I think it is possible to implement it (currently it isn't a priority though)

bam80 commented 6 years ago

It is here: /system/priv-app/Phonesky/Phonesky.apk

Can I just remove the file?