-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
Minimal flavor contains gms #2153
Comments
Probably got introduced while we were working on the Wear OS app: Line 159 in 18453a1
|
Hi @dshokouhi and thanks for your work, but even after your fix both the beta version and the FDROID build still have a gms class. |
Are you sure you used the correct beta build? When I look at the link above it seems to still use the production version and not the beta. This change will not be in production until the app is ready and we are not sure when the next release is going to be as we have features that need testing. https://github.com/home-assistant/android/releases/tag/beta-1936-69ccb1ef I do not see this class being used in the project at all. |
Hi @dshokouhi and thanks for your reply. See for example Analysis of the Last Beta Using Virus Total; It appears under Activities. I think it's been sucked into APK from somewhere else I could not figure out where it came from. |
Reopening. When I do a global search in the Is this a new scanner being introduced? I noticed on the F-Droid page the APK listed there already has these GMS issues but we have not seen any reports of crashes due to the dependency. In fact anything that relies on a Google Service is specifically hidden from the minimal so it will not function nor should the code be touched. |
ok have an idea on how to remove it, for the |
debug APK is ready to see if this change actually worked :) can you give it a try in the tool? https://github.com/home-assistant/android/actions/runs/1719666250 |
I've already checked, he's still there :( , I think it comes from one of the dependencies. |
If it makes sense, then it also appears in Although this line is there within This lines mean anything to you?
|
Found the issue I believe. I ran the following gradle command that spits out all dependencies and where they come from
Looks like the culprit is still android wear :) which makes sense because it just recently got added in past couple of months. Makes sense as to why this is the issue because this dependency is used to communicate between watch and phone which does indeed use google servers IIRC.
The permission you mentioned has always been there but the dependency it needs is part of the full implementation otherwise we wouldve seen a complaint a year ago :) According to this report even
|
ok hope this one works :) https://github.com/home-assistant/android/actions/runs/1720017632 🤞 |
Maybe because of this line? in |
Doesnt seem like it, the quest manifest still picks it up (should've check that before submitting my PR) 😕 I wonder if this pre-existed all the Wear OS stuff we did. Is there anyway you can check an older build like from January 2021? |
Actually test a build before this PR: #1588 based on the description on github this might be it https://github.com/google/ExoPlayer/tree/dev-v2/extensions/cronet the problem is that our video player uses this and it impacts webview so this will be a rather large change and I am unfamiliar with exoplayer. |
You're probably right, this first appeared in version |
@dshokouhi The page you linked does mention an option for users without Play Services, couldn't we just change the existing dependency to a full version dependency, and use the embedded or fallback dependency on the minimal/quest build? Their documentation says that the usage is the same for full/embedded versions and only slightly different for fallback. |
When I tried that it failed to build minimal/quest due to the import missing. We may need to create a base version and split it up that way because of the import. Not 100% on that though. |
Looking at the documentation once again, it states that you need to add an additional dependency for the embedded version. You probably replaced the existing dependency (like I also assumed in the previous comment)? For some reason Google put the
the full and minimal app builds compile for me without any changes and seem to work fine. I'll see if I can embed a HLS stream which is the only place where this dependency is used in the coming days to actually see if it still works. |
yea I only moved it because the import in WebView relies on it: https://github.com/home-assistant/android/blob/master/app/src/main/java/io/homeassistant/companion/android/webview/WebViewActivity.kt#L55 I had a feeling it was a misunderstanding on my part :(
if they compile without complaint thats a good sign then, I dont have a device that supports exoplayer here. I think as long as the app loads and cameras still stream it should be ok? In this case we probably still need to move Thanks for taking a closer look at this :) |
I don't have any cameras that stream either but just did some testing. In
Yes, that still would add a Play Services dependency as your Gradle command shows. Changing it to Looking at the merged manifest in Android Studio I don't see the |
Home Assistant Android version:
2022.1.1
Description of problem:
The minimal flavor contains google mobile services (gms), in recent versions, it probably comes from somewhere else because I did not find it in the code, you can see more here
The text was updated successfully, but these errors were encountered: