You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running LineageOS 18.1 and the app crashes on startup with the error message "All available Cronet providers are disabled. A provider should be enabled before it can be used." in logcat.
Someone mentioned in another issue that this issue is reproducible using the waydroid emulator, which also uses LineageOS, so this might be a good way of testing if its resolved by adding the dependency.
Oh this is an interesting issue. Thank you for the thorough solution idea for this, I'll just need to find the time to sit down and test it out with the emulator then.
If you manage to compile an apk and send it to me or upload it here I could also test it on my device :) I just don't have a buildenv setup at the moment.
I'll try to see if I can get that done over the weekend as currently I'm a bit preoccupied with work and don't have access to my Android Studio laptop, lol. Much obliged if you will find the time for this on your end! 🙏
Oh damn I didn't even check if they had an Android build template thing for that here. That's actually really nice, thanks for setting it up! And yeah thank you for pointing out the constraints thing, I think I just ignored those errors in IntelliJ lol
I've managed to run a build now and also did the change that I wanted to a separate branch. The builds need a few more tweaks to actually produce usable builds though. The current build crashes as it can't find the google map secret, but I do get much further in the setup process now. The release is completely unsigned and probably the debug builds will be signed with differing keys for each run. So there's still quite some work that needs to be done so everyone can benefit from those builds.
As I don't have a way to setup an airtag (no iPhone/iPad, only a MacBook) I can't do much testing anyways, maybe I'll dive into the setup process or the key download process one day and figure out how to setup airtags without an iOS device (or as a first step: Skip the manual key extraction process by somehow getting the keys just like the mac is getting them).
Right @Flole998 I have a branch (see above) with the fix I think you meant.
I think it would be a nice idea to just set up a dev build thing in this Actions Pipeline if we can get that to work for sure. Makes things much less miserable. E.g. the whole flow I have right now for working on the exporter UI for MacOS is extremely annoying. I guess Android is a bit less so, but nonetheless.
So RE: the token.
The Google maps token lives in a weird local file that I have per some suggestion from the Android guide for the Google Maps Java SDK... Which ideally I don't want to put in the Github itself because I don't want some idiot with a scraper bot to steal it and mess with it in some way I don't expect... even though the token is locked out (mostly) and only has access to the Google Maps Java SDK. Maybe they have a "private variables" system on here? Not immediately sure. I'm a bit put off of the idea of messing with CI/CD outside of my job haha
I think when you work with a debug build in android you also get an unsigned build. It's not recognised as the same app as the production one. So I guess having it unsigned for dev purposes is fine as that's what you get in the "full dev environment" too.
Right @Flole998 I have a branch (see above) with the fix I think you meant.
I also have that in my fork, and it does indeed fix the issue. It will build once you open a PR as I didn't want to build every branch. If thats something you want, just remove the filter from the workflow (its pretty obvious which one).
Maybe they have a "private variables" system on here?
Yup, you can generate a private variable and during build just inject it into a file. If it doesn't fit into a variable (there is a size limit) or if you want private binary data the usual way of doing it is using an encrypted file and placing the decryption key in a variable.
I think when you work with a debug build in android you also get an unsigned build. It's not recognised as the same app as the production one.
I wasn't really sure about that but I think you are right. I thought that maybe debug builds were signed by a different developer/build machine specific (and not app specific) key but now that I think about it again that might have been Apple where its done this way. TLDR: The current approach is probably fine.
Let me try to glue all of these ideas together tomorrow alongside the other feature I added for people having issues fetching the AirTag data. I guess for me the bar to do this is low enough at this point that I can afford to sit down and make it all work 😅 (thank you for your patience!)
Oh damn @Flole998 so I am tweaking the CI setup since whatever I guess I am invested now. And I am surprised about how much stuff is apparently available for free in GitHub actions for OSS projects. They have versioned MacOS boxes for free?!
@Flole998
Hi, so I tried to give just using a LineageOS emulator a shot per this guide to also be able to fix your UI issue while I am at it, but that is basically taking forever to just clone (presumably the first build will also be at least an hour). So not sure when I will get around to actually be able to run everything completely.
Regarding your Google play services missing error, do you still have the full error msg? I could try looking around for what it might be in that case. But yeah, I double-checked and I don't think my code is generating this error directly.
It's not your code for sure, in my case it's "GooglePlayServices not available due to error 9", which is reported by some library. I have never seen that before so I really have no clue why that's happening and if it's maybe related to the cronet thing or not. I probably have to do more testing if I want to get to the bottom of this.
I think Google Play Sevices is more than likely related to the google map/geolocation. Cronet is just the web browser/networking side of things (it's google's optimised HTTP client thing that they also use in/for Chrome).
Maybe if I implemented alternate map support like requested in #16 that might make this more "fixable" by default. But... no idea about the geolocation part in that case though (which has 2 parts: your phone's current location and decoding coordinates to an address on the map), since that goes via google play services too AFAIK.
There is another message though related to some google play cronet provider missing. This is so weird as I never had issues, I have the full google apps installed (not some privacy focused fork or whatever), PlayStore works, Google Maps works and even Google Wallet is happy and not complaining about anything being wrong. No other App has ever complained about this.
I was just about to suggest that openstreetmap could be an alternative :D Do the coordinates have to be decoded to an address? If thats not available just render the pin at the coordinates and don't display an address. The phones current location is also optional (although that should also work on my phone). So if you really want to you could probably make this app work on devices without google play services, just with slightly limited functionality.
Right, yeah, I'd be totally open to just having you be able to pick a map provider you prefer!
The only barrier for this is the time investment to implement it (and I guess see what to do about stuff like coordinates -> location name or "current location dot").
But yeah, I went with the google one initially as I had used it before in apps and it's free when used via their Java SDK so that's the only reason it's using that.
Regarding your issue though: maybe the Google Maps SDK requires some older version of Cronet somehow? I suppose it makes sense that their Maps library would depend on this as their HTTP client. And I guess you just made it past my HTTP layer with the new dependency we added but not theirs. I think you will first run into mine when you hit the login screen, and theirs only when you log in and hit the main screen and it tries to load the map.
But why is it only your app that doesn't work? I guess I'll try to get some open source apps which display maps from google play and see if I can find one that works, maybe we can figure out where the difference is. This is super odd.....
Honestly? No idea. I don't even think this app is doing anything special as far as apps using maps go. The only thing unique about it is probably using chaquopy, which has nothing to do with Google Play Store/Cronet/anything Java-level
I've tested with googles official samples, they show the exact same error, so the remaining issue is apparently caused by my device. Let's close this for now as the original issue was resolved and there's nothing else that can/should be done (other than me fixing my device :D )
Got it, thanks for looking into this and especially for setting up the CI stuff for this thing! I'll go ahead and release the other fix together with that debug log export thing for now then. If you find any more issues with it after you mange to fix whatever this Google Play issue is, feel free to let me know!
Activity
wanderdev0 commentedon Jul 17, 2025
Oh this is an interesting issue. Thank you for the thorough solution idea for this, I'll just need to find the time to sit down and test it out with the emulator then.
Flole998 commentedon Jul 17, 2025
If you manage to compile an apk and send it to me or upload it here I could also test it on my device :) I just don't have a buildenv setup at the moment.
wanderdev0 commentedon Jul 17, 2025
I'll try to see if I can get that done over the weekend as currently I'm a bit preoccupied with work and don't have access to my Android Studio laptop, lol. Much obliged if you will find the time for this on your end! 🙏
Flole998 commentedon Jul 17, 2025
I might prepare a PR to use Github Actions to run builds on this Repo :D Thats probably faster than trying to get Android Studio and whatnot setup :D
Flole998 commentedon Jul 17, 2025
When it runs the linter using gradle there are 11 errors, most seem to be "missing constraints". See https://github.com/Flole998/OpenTagViewer/actions/runs/16355671169/job/46213298814
I will disable the linter for now, but this should be fixed eventually.
wanderdev0 commentedon Jul 17, 2025
Oh damn I didn't even check if they had an Android build template thing for that here. That's actually really nice, thanks for setting it up! And yeah thank you for pointing out the constraints thing, I think I just ignored those errors in IntelliJ lol
Flole998 commentedon Jul 18, 2025
I've managed to run a build now and also did the change that I wanted to a separate branch. The builds need a few more tweaks to actually produce usable builds though. The current build crashes as it can't find the google map secret, but I do get much further in the setup process now. The release is completely unsigned and probably the debug builds will be signed with differing keys for each run. So there's still quite some work that needs to be done so everyone can benefit from those builds.
As I don't have a way to setup an airtag (no iPhone/iPad, only a MacBook) I can't do much testing anyways, maybe I'll dive into the setup process or the key download process one day and figure out how to setup airtags without an iOS device (or as a first step: Skip the manual key extraction process by somehow getting the keys just like the mac is getting them).
wanderdev0 commentedon Jul 19, 2025
Right @Flole998 I have a branch (see above) with the fix I think you meant.
I think it would be a nice idea to just set up a dev build thing in this Actions Pipeline if we can get that to work for sure. Makes things much less miserable. E.g. the whole flow I have right now for working on the exporter UI for MacOS is extremely annoying. I guess Android is a bit less so, but nonetheless.
So RE: the token.
The Google maps token lives in a weird local file that I have per some suggestion from the Android guide for the Google Maps Java SDK... Which ideally I don't want to put in the Github itself because I don't want some idiot with a scraper bot to steal it and mess with it in some way I don't expect... even though the token is locked out (mostly) and only has access to the Google Maps Java SDK. Maybe they have a "private variables" system on here? Not immediately sure. I'm a bit put off of the idea of messing with CI/CD outside of my job haha
I think when you work with a debug build in android you also get an unsigned build. It's not recognised as the same app as the production one. So I guess having it unsigned for dev purposes is fine as that's what you get in the "full dev environment" too.
Flole998 commentedon Jul 19, 2025
I also have that in my fork, and it does indeed fix the issue. It will build once you open a PR as I didn't want to build every branch. If thats something you want, just remove the filter from the workflow (its pretty obvious which one).
Yup, you can generate a private variable and during build just inject it into a file. If it doesn't fit into a variable (there is a size limit) or if you want private binary data the usual way of doing it is using an encrypted file and placing the decryption key in a variable.
I wasn't really sure about that but I think you are right. I thought that maybe debug builds were signed by a different developer/build machine specific (and not app specific) key but now that I think about it again that might have been Apple where its done this way. TLDR: The current approach is probably fine.
wanderdev0 commentedon Jul 19, 2025
Let me try to glue all of these ideas together tomorrow alongside the other feature I added for people having issues fetching the AirTag data. I guess for me the bar to do this is low enough at this point that I can afford to sit down and make it all work 😅 (thank you for your patience!)
Flole998 commentedon Jul 19, 2025
No worries, take your time :) I don't have any way to set up my airtag anyways (no iOS device), so no need to rush :D
wanderdev0 commentedon Jul 20, 2025
Oh damn @Flole998 so I am tweaking the CI setup since whatever I guess I am invested now. And I am surprised about how much stuff is apparently available for free in GitHub actions for OSS projects. They have versioned MacOS boxes for free?!
6 remaining items
wanderdev0 commentedon Jul 22, 2025
@Flole998
Hi, so I tried to give just using a LineageOS emulator a shot per this guide to also be able to fix your UI issue while I am at it, but that is basically taking forever to just clone (presumably the first build will also be at least an hour). So not sure when I will get around to actually be able to run everything completely.
Regarding your Google play services missing error, do you still have the full error msg? I could try looking around for what it might be in that case. But yeah, I double-checked and I don't think my code is generating this error directly.
Flole998 commentedon Jul 22, 2025
It's not your code for sure, in my case it's "GooglePlayServices not available due to error 9", which is reported by some library. I have never seen that before so I really have no clue why that's happening and if it's maybe related to the cronet thing or not. I probably have to do more testing if I want to get to the bottom of this.
wanderdev0 commentedon Jul 22, 2025
I think Google Play Sevices is more than likely related to the google map/geolocation. Cronet is just the web browser/networking side of things (it's google's optimised HTTP client thing that they also use in/for Chrome).
Maybe if I implemented alternate map support like requested in #16 that might make this more "fixable" by default. But... no idea about the geolocation part in that case though (which has 2 parts: your phone's current location and decoding coordinates to an address on the map), since that goes via google play services too AFAIK.
Flole998 commentedon Jul 22, 2025
There is another message though related to some google play cronet provider missing. This is so weird as I never had issues, I have the full google apps installed (not some privacy focused fork or whatever), PlayStore works, Google Maps works and even Google Wallet is happy and not complaining about anything being wrong. No other App has ever complained about this.
I was just about to suggest that openstreetmap could be an alternative :D Do the coordinates have to be decoded to an address? If thats not available just render the pin at the coordinates and don't display an address. The phones current location is also optional (although that should also work on my phone). So if you really want to you could probably make this app work on devices without google play services, just with slightly limited functionality.
wanderdev0 commentedon Jul 22, 2025
Right, yeah, I'd be totally open to just having you be able to pick a map provider you prefer!
The only barrier for this is the time investment to implement it (and I guess see what to do about stuff like
coordinates -> location nameor "current location dot").But yeah, I went with the google one initially as I had used it before in apps and it's free when used via their Java SDK so that's the only reason it's using that.
Regarding your issue though: maybe the Google Maps SDK requires some older version of Cronet somehow? I suppose it makes sense that their Maps library would depend on this as their HTTP client. And I guess you just made it past my HTTP layer with the new dependency we added but not theirs. I think you will first run into mine when you hit the login screen, and theirs only when you log in and hit the main screen and it tries to load the map.
Flole998 commentedon Jul 22, 2025
But why is it only your app that doesn't work? I guess I'll try to get some open source apps which display maps from google play and see if I can find one that works, maybe we can figure out where the difference is. This is super odd.....
wanderdev0 commentedon Jul 22, 2025
Honestly? No idea. I don't even think this app is doing anything special as far as apps using maps go. The only thing unique about it is probably using chaquopy, which has nothing to do with Google Play Store/Cronet/anything Java-level
Flole998 commentedon Jul 22, 2025
I've tested with googles official samples, they show the exact same error, so the remaining issue is apparently caused by my device. Let's close this for now as the original issue was resolved and there's nothing else that can/should be done (other than me fixing my device :D )
wanderdev0 commentedon Jul 22, 2025
Got it, thanks for looking into this and especially for setting up the CI stuff for this thing! I'll go ahead and release the other fix together with that debug log export thing for now then. If you find any more issues with it after you mange to fix whatever this Google Play issue is, feel free to let me know!
Merge pull request #22 from parawanderer/issue20/add_cronet_embedded_…
Issue wanderdev0#20: Check if this dependency might fix it for the Li…
Merge pull request wanderdev0#22 from parawanderer/issue20/add_cronet…