-
Notifications
You must be signed in to change notification settings - Fork 352
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
feat: Log GnssAntennInfo to JSON file #443
Conversation
TODO: * Test on Android 11 device (or emulator?)
Also cleanup of CSV file logger
Tested Google Play version in Pixel 4 with Android 11 build RP1A.200720.009 and Antenna Info is not checkeable. |
Tested with Google Play version on Pixel 5 with Android 11 build RD1A.200810.021.A1 and getting "cloud not open file" exception. Solved the exception with adding With that I got a nice looking JSON file with all data. |
@Jakazuuu I've updated the above test build links with a few fixes, would you mind trying again and seeing if everything works as expected? |
@barbeau Sure! I'll test it later the day and give you an update! |
@barbeau I just tested the updated APK. The issue with the storage is fixed. Also the missing Another bug is, when checking more than one "File Output", I got a toast notification with "Logging to new file: %1$s, .json". |
Thanks @Jakazuuu!
Ah, good catch, I just posted a new test build that should fix this.
What UI steps did you take when the file wasn't missing the
Do you mean when you close the app using the back button? I added something that might fix this to the new test build, if you could try testing again. The three main scenarios to test while logging CSV and JSON files would be:
|
# Conflicts: # GPSTest/src/main/java/com/android/gpstest/io/FileLogger.java
Hi @barbeau, I tested the new build and everything is working now! Thank you very much. I tested the three main scenarios with activated NMEA and AntennaInfo logging.
Clicking back, stops logging without an error. 👍
Also, this one is working like intended. For my Pixel 5 its resume logging to the old files. 👍
Here the files are attached to the email and the logger starts with new files. 👍
Yes, that was exactly what I meant! |
Thanks @Jakazuuu, I appreciate you testing it! |
This PR implements logging of GnssAntennInfo to a JSON file.
Closes #419.
TODO:
]
Does anyone have an Android 11 device that would be willing to run a test build and see if this works? A Pixel 4a is the only Android 11 device I have access to and it doesn't support GnssAntennaInfo.
Test builds:
In the test build, you can check support by going to GPSTest "Settings->Logging and Output" and see if the "Antenna Info" is checkable or if it's grayed out.
After you check the box and return to the Status screen, the app should create a new JSON log file in the "gnss_log" folder on your device. If you could share that file, it would be awesome. And, if your device w/ Android 11 doesn't support the feature, please let me know.