-
Notifications
You must be signed in to change notification settings - Fork 102
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
UnifiedNlp nonfunctional #22
Comments
Same on beryllium with a clean install. |
I have the same issue on beryllium |
Possibly related: microg/GmsCore#940, microg/GmsCore#575 |
I've the same issue on beryllium after a clean installation of build 20191005. |
This is caused by an upstream change introduced Aug 1, see https://review.lineageos.org/q/If363679650179a0a7fad7b01055760b49caf26ca Contact the responsible LineageOS device maintainer and ask them to set |
Thanks. There is an issue at their issue tracker. Let's see what happens. |
In fact, there seems actually no need for these commits. It seems to me that QC location is a proprietary location service which leaks privacy by reporting GPS, tower and WiFi info, along with of course, IP addr, so it is very hard to understand having been introduced into a free and open source OS. |
I have received no response from the LIneageOS side. On the other hand, after having searched LineageOS repo, it seems to me that they have a long history of including the same configurations, at least dated back to cyanogenmod era. @corna Is it possible for us to patch over all QC location usages for all devices? |
Hi @Iey4iej3. Wouldn't https://gitlab.com/LineageOS/issues/android/issues/1270 fix it? |
I referred to this issue before, and you see up until now there is no response from LineageOS Team. Note that this commit was introduced by a head developer, therefore it might present an official position of LineageOS. I suppose that the probability of a revert is pretty low, and that it might be up to LOS for microG to patch these settings. However, this is difficult, as far as I understand, it might introduce bootloops? And there are a lot of devices with these configurations introduced, therefore LOS for microG might be too burdened to apply such a patch without breaking any devices. I don't understand why they introduced such a blob. It is possible that there be more technical difficulties, such as without this setting some blobs simply won't work even the system does not boot properly. It is also possible that LineageOS wants to be closer to vendor builds in order to avoid troubles. The worst case is that they don't care much about privacy or FOSS: they introduce blobs as long as they make the system more "friendly", more "usable" and more "attractive"? Without their response, who knows? |
I think if LineageOS doesn't revert this decision, it would be appropriate for LineageOS for microG to patch it out itself, since UnifiedNLP is, after all, a core part of microG, and this is crippling it. |
We have already dealt with com.qualcomm.location, indeed:
This has always worked in the past, I have to understand why it doesn't work anymore. |
I can confirm that For the configurations, I don't know how Android builds, therefore I cannot tell which one will decisively override the other ones. In LineageOS, the configurations in question are added into In addition, they added |
I've tried to rewrite the overlay command in build.sh, so that the microg overlay will be added later. However, no luck. Unfortunately, the device package is added via brunch just before the build, so the upstream config.xml cannot simply be changed by tools like sed in the build.sh script... |
@mar-v-in @corna @olliiiver I think the problem is probably not about |
I cleaned cache and dalvik cache, and found that despite the Self-Check claim, Mozilla NLP Backend and RadioCell are working. Last time I did not clean these caches, so I don't know whether it affects. @StableNarwhal @morten-b @sepo Since you have a different device model than mine and not all of you claimed that you have clean installed, could you please check whether UnifiedNlp works after cleaning caches in case of a dirty install? If not, could you please have a try to extract |
Today I reviewed the issue. The problem seems to be: I need to repeatedly disable and re-enable Location, and disable and re-enable MozillaNLPBackend, wait for around 10 minutes to make it work for the first time, which is very long. Especially, the LOS booted at 10:19, then I disabled and re-enabled location at 10:25, disabled and re-enabled Mozilla NLP Backend in the microG settings at 10:26, disabled and re-enabled location at 10:29, and finally disabled and re-enabled the Mozilla NLP Backend at 10:30. Apps started to get fused location at 10:33. a filtered logcat, with keywords After reading these logs, it seems to me that Mozilla NLP Backend really starts only very lately after some disabling/re-enabling actions. @corna @mar-v-in Is it more a problem on the microG side? Maybe I need to repost the issue in microG repo? Here are some notes:
|
@Iey4iej3 I can confirm, that the values of |
@mar-v-in There are several issues causing this, both in Mozilla Nlp Backend and microG. First, microG does not Nlp backends after the boot. Second, Mozilla Nlp Backend does not create an instance properly after started which worsen the issue: I tried other backends like Apple WiFi and local GSM Service, which works only one or two minutes after started triggered by re-enabling in settings of UnifiedNlp in microG. |
I'm honestly considering going back to regular LOS with minimal GAPPS. I have nothing but the greatest respect for all the volunteers working on microg and the automatic LOS+microg build, but this setup just doesn't seem viable for a production grade setting anymore. This is completely OT and I apologise, but after a few years of running a microg setup and converting all the convenient account choices to privacy friendly alternatives I guess I'll have to give up - at least for now. |
@Iey4iej3 given your log it looks like their are still traces of qualcomm location in that build. Right before the first Another known issue with some setups of file-based encryption will log |
@olliiiver @mar-v-in Now I understand the situation! Just look at this commit:
I googled
@corna Is it possible to patch over these rro overrides? By the way, the result of
|
@corna Is it possible to patch over |
@corna Another idea is to insert around https://github.com/lineageos4microg/docker-lineage-cicd/blob/e724032a86cfd469b97c82027a7617a83149f05e/src/build.sh#L171 a similar line:
to override the value |
Does this mean this issue is also fixed? Apologies for the ignorant questions, I currently just don't have the time to test around myself. |
@StableNarwhal No, that does not fix for That crashing and non-registered issue is about a bug introduced in the latest build of microG where proguard "optimizes" out some essential codes. This issue is not an issue on the microG side. As far as I understand now, it is due to the fact that LineageOS introduced some codes and blobs (from MIUI) which specify Qualcomm Location to be the only accepted location provider (in an exclusive fashion) and consequently, UnifiedNlp should not work as long as these codes persist. People tried to ask the LineageOS Team to revert these commits, but seemingly they simply ignored this request, and therefore it is up to LOS for microG, say @corna, to find solutions to patch over these codes properly. These codes are pretty dirty. They not only set Qualcomm Location exclusively as the only accepted location provider at compile time, but also apply these configurations at runtime by (NB: In fact, there are several devices with similar codes, that is to say, there are already several devices on which theoretically LOS for microG should not work, but seemingly nobody reported before. |
Thanks for the very detailed synopsis. I normally wouldn't use any project which knowingly betrayed their core values for this long without actually telling people, unfortunately LOS seems to have a bit of a monopoly regarding privacy-friendly after-market ROMS for non-pixel devices. Even if the awesome LOS4microg maintainers fix this issue, LOS, at least in my current understanding, could break this and many other improvements this fork provides literally ever day and successfully ignore the backlash of our very minor sub-community. |
I opened a pull request lineageos4microg/docker-lineage-cicd#65 which I hope to be helpful. |
Hi @olliiiver, do you understand how the build process parses |
Globally, we need to understand how the LOS builder treat the overlays. Now some of settings are built into the vendor image, not the system image. Especially we need to understand why there is a setting in the system image that |
Possible post-install workaround (I haven't tried it yet myself) for |
This is not the "correct" way in my eyes. It is in fact, first decompile, then modify, and finally repack. (I don't know how the signature works for |
It seems that the story came to an end – the commit will be reverted due to "bla bla bla" and "all the whining". |
I can confirm that it is now functional again on beryllium. I think the issue can be closed. |
Let's close it for the moment. If other devices are still affected (it might be the case that they just reverted codes for some devices), feel free to open it. And a side note: the issue in our building script is not fixed, used to override LOS upstream settings. However, nobody has spare time to understand and fix it, and given that the related settings are reverted upstream, it is not urgent to fix it. |
microg: Fix required libraries between the build system and the manifest
Still an issue in 2024. Please fix |
Lineage OS for microG, polaris (Xiaomi MIX 2S). After flashing the new build 20191005, I found that UnifiedNlp does not work (I tried three backends:
Mozilla Location Service
,Apple Wi-Fi
,Radiocells.org Unified Network Location Provider Backend
). Then I go to the microG settings:microG Settings -> Self-Check:
See also: https://forum.xda-developers.com/showpost.php?p=80443513&postcount=1600 for another Xiaomi device.
The text was updated successfully, but these errors were encountered: