microg / GmsCore

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

OnePlus Weather - Needs Google Play Services - Not Working With microG #623

Open 0pLuS0 opened 5 years ago

0pLuS0 commented 5 years ago

Hello,

My Specs: OnePlus 5T Oxygen OS 5.1.5 (Oreo 8.1.0) Magisk 17.1 Services Core - com.google.android.gms-13280012.apk Services Framework Proxy - com.google.android.gsf-8.apk Store (FakeStore release) - com.android.vending-16.apk DroidGuard Helper - org.microg.gms.droidguard-4.apk Local GSM Location - 1.4.22 MozillaNIPBackend - 1.4.0 NominatimNIP - 1.2.2 Xposed Installer 3.1.5 - Framework 90-beta3 FakeGapps - 2.0

I debloated Oxygen OS with the Magisk Module - Debloater (Terminal Emulator) removing all the Gapps required for microG.

OnePlus weather requires the Google Play Services.

https://play.google.com/store/apps/details?id=net.oneplus.weather&hl=en

When I open it, I get at the top saying; Update failed please try again later

I know location is working, because I can take a picture and get my location data to appear in the image. So I'm not sure how much of "Location" is playing a part with the OnePlus, I'm only saying that Location support seems to be working for me in microG.

It just seems like for whatever reason microG is just not working for OnePlus Weather, because of it needing Google Play Services....

I hope this can be figured out to allow it to work.

I've attached a logcat.

logcat.txt

THANKS

Nanolx commented 5 years ago

1+ Weather requires AMapLocationProvider, which on it's own conflicts with unifiednlp which is included by microG.

Since I doubt someone will make unifiednlp drop-in for AMaplp, it's likely the best option to use a different Weather app.

Nanolx commented 5 years ago

Of course you could also un-debloat AMaplp, but this will very likely result in major issues with unifiednlp.

0pLuS0 commented 5 years ago

@Nanolx, I don't see any AMaplp In Oxygen OS 5.1.5... hmm

And speaking of unifiednlp that comes in microg, I've never been able to make it work, and I've always had to go with an Xposed Module on this.

If you could be so kind to have a look at my post here;

https://github.com/microg/android_packages_apps_GmsCore/issues/575#issuecomment-426459089

I keep getting in Stock Android the;

Your system does not support this UnifiedNlP Package

Thanks

Nanolx commented 5 years ago

The package is called AMAPNetworkLocation (or internally com.amap.android.location), AMaplp is just a abbreviation, 'cause I'm lazy.

It must have been there and you debloated it, else the app wouldn't expect to find it, but fails.

0pLuS0 commented 5 years ago

@Nanolx ok thanks, lazy is ok... LOL

I didn't debloat/remove com.amap.android.location...

All I know is 1+ Weather is suppose to need Google Play Services...

Would com.amap.android.location be in /data/data?

The only thing I've found for location is these two; com.qualcomm.location OPMmslocation

hmm

Nanolx commented 5 years ago

1+ Weather does require AMAPNetworkLocation, you can see from your log that it's whining because of it's abscence. If you used my NanoDroid or @ale5000-git unofficial microG installer then they already got rid of it for you.

If you used NanoDroid in Magisk mode and want to reset AMaplp use the following command as root, on-device:

novl -d AMAPNetworkLocation

and reboot, for NanoDroid in System Mode you'll find a backup of AMaplp in /sdcard/nanodroid_backups which you can restore.

AFAIK microG unofficial installer completely gets rid of stuff, so you'd need to extract it from the ROM image or re-flash the ROM to get AMaplp back.

0pLuS0 commented 5 years ago

I've been messing with this for months, there is no AMapLocationProvider in OxygenOS, there is however com.qualcomm.location.

I have no idea why it mentions this, I am making a custom rom out of OxygenOS in SuperR's Kitchen, so I have the /system and /vendor images extracted and I've looked all through them, there is nothing.

I even ran grep -R AMapLocationProvider /to/the/directories/* and nothing comes back for this, it does not exist.

If someone wants to install microG and use OPWeather, it needs to be run with the Google Services Framework installed, then you can switch to microG and OPWeather still works.

I made a microG ROM of OxygenOS and OPWeather will not work with only microG on a ROM.

Can someone please look into this and try and get OPWeather working with microG, because it can run with it, as I just mentioned, once it's been setup and running with the Google Services Framework installed, then you can rip out GSF and it still works with microG.

I'm attaching a copy from OxygenOS 5.1.7

Weather.apk.zip