e-mission / e-mission-docs

Repository for docs and issues. If you need help, please file an issue here. Public conversations are better for open source projects than private email.
https://e-mission.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
15 stars 32 forks source link

install app on lineageOS? #599

Open PatGendre opened 3 years ago

PatGendre commented 3 years ago

Hi @shankari we have one tester whose phone is on lineageOS, a free and open-source operating system based on the Android mobile platform. He could install and launch the app, however the tracking doesn't (nothing can been seen on the journal).

Although we did not investigate long for the moment as he could use another phone for the current preliminary test, do you have any idea why the tracking would not to work on this Android variant, do you want us to send you e.g. the phone logs ?

shankari commented 3 years ago

@PatGendre I have not tried to run e-mission on lineageOS before. It does work on proprietary forks of android - e.g. xiaomi, huawei, etc, after allowing background operation, of course.

My current guess is that this may be due to the lack of Google Play Services, which we use for geofencing, fused location and activity recognition. LineageOS does support OpenGApps (https://wiki.lineageos.org/gapps.html), but they are not installed by default, and I am not sure whether your user has installed them.

I should be able to tell for sure from the phone logs.

PatGendre commented 3 years ago

Hi thanks for your reply, the user cannot send logs from app because the "share" button does not appear on his profile screen :-( so I attach a few screenschots from the logs he can see in the dev zone.

Open Gapps is not installed on his phone, he has "microG Services Core" installed, which seems similar. Should he install Open Gapps instead?

photo_2021-01-12_17-52-08 photo_2021-01-12_17-52-05 photo_2021-01-12_17-52-04 photo_2021-01-12_17-52-00

shankari commented 3 years ago

hm, so it looks like the geofence service is working, so at least some Google Play services are working. After that, does he have anything from LocationChangeIntentService?

I am very surprised that he doesn't have access to Email Log in the profile. Can he send the profile screenshot as well?

shankari commented 3 years ago

Ah he doesn't need to use "Share", he should use "Email Log".

PatGendre commented 3 years ago

Here is a screenshot when he clicks on "e-mail logs" : when he clicks on OK, the pop-up closes but nothing happens.

photo_2021-01-14_13-28-22 ..

shankari commented 3 years ago

Does he have an email app configured on the phone?

PatGendre commented 3 years ago

Hi @shankari yes he has an email app (presumably not Gmail)

shankari commented 3 years ago

hm, after he tries to send email and nothing happens, can he "view logs" to see what happened? I believe that the email composer plugin just tries to use mailto: to launch the default email handler (whatever it is).

shankari commented 3 years ago

@PatGendre due to many issues with emailing logs from the phone, I have implemented an alternate solution to send phone logs to me (https://github.com/e-mission/e-mission-docs/issues/609). There is a new docker container that can be deployed on the server that accepts file uploads and a new button on the phone UI that allows people to send it (details in the issue above).

If you can use that mechanism to get me the logs from lineageOS, I am happy to take a look.

PatGendre commented 3 years ago

@shankari thanks! On the short term I don't think we'll find the time to do this, but I keep the idea in my list and tell you if we can work on it later on...