-
Notifications
You must be signed in to change notification settings - Fork 6
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 not working on LineageOS 17.0 Beta #11
Comments
Hi, thank you so much for bringing this up. I currently don't have a device with LOS 17, and therefore I can't test this. I don't know neither if there've been any changes to the Android system that render this kind of installation obsolete for that Android version upwards. I'm afraid I'm unable to do much more to help you than tagging this issue with [help wanted] and patiently wait for some other generous peep to help you. |
@oscaropenness Does your device use an A/B system-as-root partition style? If so #14 should fix this for you, perhaps in conjugation with #13. |
A/B system-as-root devices have the actual system partition mounted under /system/system when in the recovery. Taken from https://gitlab.com/fdroid/privileged-extension/commit/decd7f35ef64e8ec696d2a9feae38fd802479705
I've prepared a pre-release with @dllud contributions. Could someone test them and report results, please? 🙏 https://github.com/WeAreFairphone/flashable-zip_microG/tree/2019-12-23 Thanks everyone! |
This doesn't work for LineageOS 17. The reason seems to be that BOARD_BUILD_SYSTEM_ROOT_IMAGE isn't set to true for Android 10 (see here), so the following code in update_binary doesn't work as expected:
The result of (As a side note: The installation of the F-Droid Privileged Extension fails the same way.) |
As already mentioned the by @snm247, the unifiednlp_2019-12-23.test.zip-build does NOT work. However, the recommendation by @dllud to bypass the test (in my case by commenting it out, and setting But I want to thank you all very much already for your help and the quick response. @Roboe Should I keep this open until there is a general fix? |
I can confirm that unifiednlp works when In case you want to use BUILD_VERSION_SDK to get the LineageOS version (as it is already used for older versions): The beta version of LineageOS 17 uses an outdated value here:
So it may be best to wait until LineageOS 17 is out of beta. |
@dllud Ok, so all Android 10 devices don't set @oscaropenness Yes, let's keep this open until we manage to get a working release. @snm247 Hmm, it shouldn't output There's an issue. I can't properly read the |
You are right. Sorry for the confusion ... After booting into LineageOS 17.0 Beta the result is:
And the result of Just an idea: since the following line of code seems to work correctly in LineageOS 16, maybe the flashable zip gets the correct values when using getprop?:
If so, you could still use |
Hmmm, you're right, it worth checking with a little script |
UnifiedNLP won't work on Android 10 until these PRs are merged: microg/UnifiedNlp#183 True for every installer. You can see if this is the issue or not by enabling and disabling a backend and then checking satsat (if this is the issue you should temporarily see a network location). |
As we now have a working LOS 17.1 for our Fairphone 2, what are the next steps here :)? @p4t44 Could this repo fork and implement the mentioned changes, as long as they are not merged? |
I was able to reproduce the problem described by @p4t44 on the second preview version of LineageOS 17.1. But with Lineage 17.1 nightly UnifiedNlp is working well on my device (with Can others confirm this? If so, we will need to find a way to check if Edit: I used "Local GSM Location" (Updated 1 year ago) from F-Droid for testing. |
@p4t44 Interesting info, thanks you for sharing it. As far as this installer concerns, we only need to get it installing right first. Once the MicroG apps update, we can roll a new release and that's it. I got my hands on a phone supporting LOS17.1 and I'm testing a solution. I got it working with backwards compatibility with a non-elegant, but pretty simple check: I'll roll a test ZIP in a minute! |
Android 10 devices don't set `ro.build.system_root_image` but behave like so. Since we can't reliably check the Android version through `ro.build.version.sdk` until we locate the system partition, then we only can check that the `/system/system` directory exists. To avoid easy mistakes, a more specific `/system/system/build.prop` check has been implemented.
PR pushed and and pre-releases uploaded. Please, check them! |
There's a fork of microG here with UnifiedNLP fixed - https://github.com/NoGooLag/android_packages_apps_GmsCore Unfortunately the main microG project seems to have not been active at all since lastv year so I wouldn't expect it to be fixed any time soon. |
The pre-release is working here. Systemless LOS17.1 on a FP2. Thank you! |
Thank you for the fix! The pre-release works with unifiednlp-minimal_2020-04-07.zip and "Local GSM Location" and "NominatimNlpBackend" from F-Droid. I am not able to reproduce this problem, everything works as expected, Edit: It seems I misunderstood what running in background means. The apps I tested seem to run as foreground service (they have a notification in the status bar when they are in the background). Edit2: I installed UnifiedNlp with TWRP 3.2.3., but didn't test it with the new lineage recovery. |
Hey, thank you for your work! I'm using CrDroid 6.4 (Android 10) on Lavender and I get Error 1 when trying to install your zip (see the log below)
|
@p4t44 Thanks for your inputs. Changing upstreams is a whole re-evaluation of trust chains. Such change would trigger a certificate change for our users, too, which is a non-trivial effort. We're not as rolling release or active to need more than a little patience. @Diapolo @snm247 Thanks for your tests! @eplinux Which recovery are you using? |
I'm using OrangeFox-R10.1_02-Stable-lavender and I even tried to mount system manually. |
Seems like that's a totally different issue. I didn't know about OrangeFox Recovery, so it's unsupported. From the log above, it seems like it's struggling with the I don't have an OFR-compatible device, so we'd need someone how does to look at it. Please, open a new issue for OFR compatibility if you rely on it. |
I tried installing microg minimal zip on my Zenfone 6 with LOS 17.1. Successfully flashed it in TWRP but resulted in bootloop. Edit: unifiednlp zip worked. could be a fluke because i flashed microg while rebooting after system upgrade |
I have just installed the unifiednlp_minimal on LOS17.1 Oneplus 3t. In self check all the tests are passed, but I am not getting a fix. Tried Mozilla, Radiocells and have Dejavu backend installed now. How can I debug, why the fix is not found. |
@anonimno1 microG is still having trouble with Android 10 (i.e. LOS 17). We should wait until a fix lands upstream. @qtwyeuritoiy I'm sorry. Seems fine installing on other devices. Can you reproduce the error on your Zenphone 6 or give some more info? (A/B device, system-as-root system installation) Thanks for your reports! |
Wanted to backlink a couple similar issues: |
Thank you, @CameronNemo, it'll be great to follow what other bigger projects solve the same issue. As far as it goes, it seems like installing issues on Android 10 were properly addressed already in #15 Nonetheless, testing the pre-release is still desired to be completely sure that no single device has installation issues. To finally close this issue we need a microG/UnifiedNlp update supporting Android 10. |
FWIW I had to use /system_root/system with TWRP 3.4 as recovery, not /system/system. |
There's a new microG release today solving some Android 10 compatibility issues: https://github.com/microg/android_packages_apps_GmsCore/releases/tag/v0.2.11.202414 @CameronNemo Thank you very much, I don't think we were aware of that possiblity. That should improve #15. Does your device run Android 10? |
yes it does. LOS 17.1. |
the flashable zips of unifiednlp (minimal and normal) provided here https://github.com/WeAreFairphone/flashable-zip_microG/releases/tag/2020-04-07 fail with twrp 3.4.0-0 recovery. Error meesage is |
I get the same issue trying to install the flashable .zip under TWRP 3.5.0_9-0. |
Having the same issue here as well, neither @oscaropenness' zip worked nor @tillschaefer's (unifiednlp_2020-04-07.zip and unifiednlp_2020-01-03.zip), they both yield any ideas so far? |
Steps to reproduce:
Flash UnifiedNlp_2018-08-17.img via TWRP 3.3.1
Long press on location icon in pulldown menu
start osmand with Battery Saving location activated
Expected behaviour:
In location setting should be a link into UnifiedNlp-App.
Osmand~ should find location via Cell Network.
Actual behaviour:
App does not show up.
Osmand~ does not find location.
Does the UnifiedNlp work under LineageOS 17?
What adjustments need to be made to make it work?
The text was updated successfully, but these errors were encountered: