Skip to content
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

[com.google.android.apps.maps] Google Maps no direction identifier on current location #1690

Open
ghost opened this issue Mar 14, 2022 · 35 comments

Comments

@ghost
Copy link

ghost commented Mar 14, 2022

Affected app
Name: Google Maps, Google Earth.
Package id: com.google.android.apps.maps, com.google.earth

Describe the bug
Wondering if there would be a direction identifier, but I always have plain blue dot as current location.

To Reproduce
That's the default behaviour for me always.

Expected behavior
v4-460px-Get-Current-Location-on-Google-Maps-Step-2-Version-6

Screenshots
Screenshot_20220314-070421_Earth

System
Android Version: 11
Custom ROM: CrDroid 7.14

microG
microG Core version: 0.2.24.214816
microG Self-Check results: All ticked
NLP Backends: Apple WiFi, DegaVu LS, GSM LS, WiFi LS, nominatim Address Lookup.

@ghost ghost changed the title [com.google.android.apps.maps] Google Maps compass needle missing on current location [com.google.android.apps.maps] Google Maps no direction identifier on current location Mar 14, 2022
@xk0niR
Copy link

xk0niR commented Apr 9, 2022

I´ve got the same exact problem.

If you are using root:

  1. Force-stop Maps and delete /data/data/com.google.android.apps.maps/files/SavedClientParameters.data.cs
  2. Make /data/data/com.google.android.apps.maps/files read-only (551)

It is necessary to perfom step 2. otherwise SavedClientParameters.data.cs will be created again and cause this error again.

@Jakeler
Copy link

Jakeler commented Apr 11, 2022

Have the same problem.
The trick from @xk0niR works, thanks! Only problem is that now it always uses the white theme and the theme selector does not pop up anymore. Allowing writes (771) to files immediately shows the dark mode mode again... Any way around that?

Not sure if this is the reason, but it is also complaining that play services are outdated like in #982.

@ghost
Copy link
Author

ghost commented Apr 21, 2022

@xk0niR Thank you. I just wiped the files folder & made it read only.
As @Jakeler said, your solution worked but, is forced to light theme by default (absent in menu too).
But I didn't care about dark mode at all, so no problem here.

Closing the issue.

@ghost ghost closed this as completed Apr 21, 2022
@ale5000-git
Copy link
Member

ale5000-git commented Apr 21, 2022

It is only a workaround, the ticket should remain open until it is properly fixed.

@ale5000-git ale5000-git reopened this Apr 21, 2022
@ghost
Copy link
Author

ghost commented Apr 27, 2022

@ale5000-git Thank you mate. Appreciate your generosity.

@connor-brooks
Copy link

I am having the same issue too, but I have no root.

@xk0niR
Copy link

xk0niR commented May 19, 2022

I am having the same issue too, but I have no root.

I´m using Maps 10.87.4 from apkmirror (Architecture universal, nodpi) and it seems to work.
It´s complaining about missing Google Play Services but otherwise it´s working without root.

@Jakeler
Copy link

Jakeler commented May 28, 2022

I noticed it also says Location accuracy is low and recommends to calibrate it with the camera. This works if you are in a city at daytime and then at least for some time the compass is working.

@connor-brooks
Copy link

I am having the same issue too, but I have no root.

I´m using Maps 10.87.4 from apkmirror (Architecture universal, nodpi) and it seems to work. It´s complaining about missing Google Play Services but otherwise it´s working without root.

I just tried this version and it still does the same thing. Strange.

@surfbro
Copy link

surfbro commented Jul 22, 2022

I´ve got the same exact problem.

If you are using root:

  1. Force-stop Maps and delete /data/data/com.google.android.apps.maps/files/SavedClientParameters.data.cs
  2. Make /data/data/com.google.android.apps.maps/files read-only (551)

It is necessary to perfom step 2. otherwise SavedClientParameters.data.cs will be created again and cause this error again.

As of today using this trick, it works temporarily. After force-stopping Maps, deleting SavedClientParameters.data.cs and then marking the /files directory as read-only using Octal 551 as r-xr-x--x , Maps functions with the gyroscope and turning normally. Giving back the walking directions that were missing.

However, after killing Maps and restarting, I go back into my File Manager and see that the directory /files returns to 771. And then within another kill/open of Maps, SavedClientParameters.data.cs has been created again. This is under the Maps version 10.87.4

Has anyone else figured out another workaround?

@surfbro
Copy link

surfbro commented Jul 22, 2022

I am having the same issue too, but I have no root.

I´m using Maps 10.87.4 from apkmirror (Architecture universal, nodpi) and it seems to work. It´s complaining about missing Google Play Services but otherwise it´s working without root.

I just tried this version and it still does the same thing. Strange.

When you say that it does the same thing, are you talking about missing Google Play Services? That is easily defeated by holding the notification, and then entering the expanded notifications allow/disallow under LineageOS. You can toggle off Other notifications by expanding the Notifcations under App Settings, and then you want to disable 'Google Play services availability'.

However, the issue still remains that the gyroscope functionality is disabled after the first boot of the app. Unless I am doing something wrong...

@josbarros
Copy link

I'm facing the same issue as well, using the official APK. Like @surfbro mentioned, gyroscope works on first boot and then it stops working afterwards. I don't want to root my phone so a proper fix would be appreciated. I can provide more info if necessary.

@ghost
Copy link
Author

ghost commented Jul 23, 2022

I'm facing the same issue as well, using the official APK. Like @surfbro mentioned, gyroscope works on first boot and then it stops working afterwards. I don't want to root my phone so a proper fix would be appreciated. I can provide more info if necessary.

I think the issue is google's maps applications themselves. You can test gyroscope on Osmand & other map providers they work perfectly there.

@surfbro
Copy link

surfbro commented Jul 24, 2022

I'm facing the same issue as well, using the official APK. Like @surfbro mentioned, gyroscope works on first boot and then it stops working afterwards. I don't want to root my phone so a proper fix would be appreciated. I can provide more info if necessary.

I think the issue is google's maps applications themselves. You can test gyroscope on Osmand & other map providers they work perfectly there.

Yeah it 100% has something to do with Google punishing you for using alternative services. However, I wanted to confirm if anyone here has gyroscope working using the method above. From what I can tell other versions of Google Maps will rebuild the /files directory, rendering the workaround useless.

I noticed after one full day, that the /files directory was recreated by Maps, and then back to the same issue...

@ghost
Copy link
Author

ghost commented Jul 24, 2022

@surfbro I think you need to change owner & the group permissions of files folder to root It basically should look like this...

Screenshot_20220724

@surfbro
Copy link

surfbro commented Jul 25, 2022

@surfbro I think you need to change owner & the group permissions of files folder to root It basically should look like this...

Screenshot_20220724

Thanks! I set the permissions and will report back in a day to confirm the Gmaps accelerometer/gyroscope still works. I noticed my previous method would work under 24 hr, and then would reset itself. So Ill give it another 24 hr and report back!

@surfbro
Copy link

surfbro commented Jul 30, 2022

@surfbro I think you need to change owner & the group permissions of files folder to root It basically should look like this...

Screenshot_20220724

THIS WORKED! Thanks for coming back here to recommend these ownership settings as well.

@Rmtony
Copy link

Rmtony commented Sep 13, 2022

I am on CalyxOs 3.9.0 Android 12L , no root, and I have this issue.... any fix \ solution ?

@ghost
Copy link
Author

ghost commented Sep 14, 2022

I am on CalyxOs 3.9.0 Android 12L , no root, and I have this issue.... any fix \ solution ?

No unfortunately. You're using a custom rom, so I better suggest to root. An unrooted phone is like a linux admin without root previleges for me.

@Rmtony
Copy link

Rmtony commented Oct 29, 2022

I am on CalyxOs 3.9.0 Android 12L , no root, and I have this issue.... any fix \ solution ?

No unfortunately. You're using a custom rom, so I better suggest to root. An unrooted phone is like a linux admin without root previleges for me.

for security reasons it is better to don't root

@Rmtony
Copy link

Rmtony commented Oct 29, 2022

Today I flashed another phone, Pixel 3a, and I confirm the issue... even the latest microG release did not solve the problem...

@ghost
Copy link
Author

ghost commented Oct 29, 2022

for security reasons it is better to don't root

Rooting is the most secure process * if you know what you're doing. It actually more secure than being non root. Because, you being an admin of your device don't have privileges to do modify your own device, that's like you running a Linux machine without having sudo privileges.

even the latest microG release did not solve the problem

It's not a microg issue. It's the google apps themselves.

@Jakeler
Copy link

Jakeler commented Oct 29, 2022

even the latest microG release did not solve the problem

It's not a microg issue. It's the google apps themselves.

It is absolutely a microG issue - Google Maps works normally with the proprietary Play Services. So the app would not detect it if microG would implement all APIs 100% perfectly. Even if you like rooting, disabling writes on app data is just a dirty hack with unforeseeable side effects (one already known is the dark mode), this can also completely break the app on any update.
That being said, this is a relatively minor issue, affects only GMaps compass, otherwise it the app works, also OsmAnd, HERE WeGo etc. work normally with compass data. Implementing google APIs is a giant project, will be practically impossible to get to 100%. I am incredibly thankful for @mar-v-in and all other contributors putting so much work into it. It is usable as daily driver and frees us from hundreds of MBs of proprietary software.

@ghost
Copy link
Author

ghost commented Oct 29, 2022

@Jakeler You can test the compass on osmand, openstreetmap & maps.me. Works on all of em for me.
About restricting the file structure, I had no issues doing it, since the last year of my heavy usages. As I haven't used dark mode, as maps kinda should have light mode to see clearly.
Also, microg is not here to implement google APIs, but rather to avoid them as much as possible.

@Rmtony
Copy link

Rmtony commented Oct 29, 2022

for security reasons it is better to don't root

Rooting is the most secure process * if you know what you're doing. It actually more secure than being non root. Because, you being an admin of your device don't have privileges to do modify your own device, that's like you running a Linux machine without having sudo privileges.

Ask to CalyxOS or Graphene teams if it secure or not....

even the latest microG release did not solve the problem

It's not a microg issue. It's the google apps themselves.

It is a microG issue! That said MicroG works great, compass in Gmaps is the only issue at least for me.
And lastly. are you with us ? On planet earth? :)

"MicroG allows Android apps to access replica application programming interfaces (APIs) that are provided by Google Play Services, including the APIs associated with Google Play, Google Maps, and Google's geolocation and messaging features. Unlike Google Play Services, MicroG does not track user activity on the device, and users can selectively enable and disable specific API features. Depending what apps are installed by users, user activity may still be tracked by Google."

@ghost
Copy link
Author

ghost commented Oct 29, 2022

Ask to CalyxOS or Graphene teams if it secure or not....

If you haven't tried magisk, it can actually allow or deny root access to any application on the fly. CalyxOS/Graphene are just a fork of AOSP, where both are vanilla only variants. There happens to have zillions of AOSP roms that claim to be secure, but the true fact is any AOSP rom that's open source, is always secure. Those two happened to have some marketing buzz, so you happened to notice only those two.

It is a microG issue! That said MicroG works great, compass in Gmaps is the only issue at least for me.
And lastly. are you with us ? On planet earth? :)

It's not an issue, since other open source map clients able to utilize smartphone's resources (compass in this case) without hickups.
Again, Google applications are not open source, so there will never be any workaround to this.

@Rmtony
Copy link

Rmtony commented Oct 29, 2022

Ask to CalyxOS or Graphene teams if it secure or not....

If you haven't tried magisk, it can actually allow or deny root access to any application on the fly. CalyxOS/Graphene are just a fork of AOSP, where both are vanilla only variants. There happens to have zillions of AOSP roms that claim to be secure, but the true fact is any AOSP rom that's open source, is always secure. Those two happened to have some marketing buzz, so you happened to notice only those two.

It is a microG issue! That said MicroG works great, compass in Gmaps is the only issue at least for me.
And lastly. are you with us ? On planet earth? :)

It's not an issue, since other open source map clients able to utilize smartphone's resources (compass in this case) without hickups. Again, Google applications are not open source, so there will never be any workaround to this.

Other maps works because are open source, you answered yourself, I repeat, it is a MicroG issue, you don't even know what MicrogG is. Then if it is a Google issue(they Must implement microG instead of their own API .. Hahahahhah :) ) why you opened an issue in MicroG section of Github ? Are you confused ?

@ghost
Copy link
Author

ghost commented Oct 29, 2022

@Rmtony That's true. But these issues have to be brought somewhere so that they're recognized. There's already a root workaround being suggested by one above due to this.
Google can't do a thing about it. Caz it only happens to occur on microg. Their play services & their application set both are closed. If you wanna expect pitch perfect workflow, either it's better to stay on play services, or switch to an alternative service.
Even though I know this issue can't be resolved by microg, I'm still happy that there are workarounds.

@ale5000-git
Copy link
Member

This issue can be solved in microG (or in the mapbox library it use, I don't know exactly).
The only problem is that there is just one active developer so it may take 1 day or even 15 years, who know.

@ghost
Copy link
Author

ghost commented Oct 30, 2022

Gmaps seems to store client data & execute SavedClientParameters.data.css when application opened. But fails to initialize direction radar. That's probably not the case when the file doesn't exist, which is the reason radar works again when it gets removed. It's the gmaps side behaviour afaik, as it's not able to get the client data after it's been stored.

@ale5000-git
Copy link
Member

ale5000-git commented Oct 30, 2022

A lot of methods inside microG are stubs, so it may be one of them is needed to be working otherwise GMaps get confused and fail to initialize (just a supposition).

@Rmtony
Copy link

Rmtony commented Dec 2, 2022

Someone tried latest MicroG release v0.2.26.223616 ?

@mar-v-in
Copy link
Member

mar-v-in commented Dec 2, 2022

This is still a pending issue in 0.2.26.

@Rmtony
Copy link

Rmtony commented Jan 20, 2023

what about v0.2.27.223616 ? fixed ?

@LuccoJ
Copy link

LuccoJ commented Jan 25, 2023

I don't know why some of you had to make such drama. "Other" open source applications, for example, may not be using and expecting the Google Fused Location provider, which I think microG emulates but maybe not completely. Calm down a little bit and don't ask people what planet they're from as that is not at all relevant, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants