UsbGps4Droid icon indicating copy to clipboard operation
UsbGps4Droid copied to clipboard

gps week number rollover fix

Open NH-Networks opened this issue 3 years ago • 8 comments

can you implement a gps week number rollover fix ??

NH-Networks avatar Jun 03 '21 12:06 NH-Networks

I don't know what this means, can you provide more detail?

freshollie avatar Jun 03 '21 13:06 freshollie

https://forum.xda-developers.com/t/joying-intel-sofia-head-unit-is-pulling-a-2001-date-from-gps-and-does-not-obey-network-time.4286581/#post-85124649

i'm hoping your tool can fix this... and will work with the gps...

see here also

https://github.com/pizzaMan5000/Android_GPS_Time_Sync/commit/48a7436b2af9877d3a7e2906041f533cfa291ed3

NH-Networks avatar Jun 03 '21 13:06 NH-Networks

If you have root access, this app can set the system time to the GPS time. Not 100% sure this will stop the system from still using the inbuilt GPS time though.

freshollie avatar Jun 03 '21 13:06 freshollie

If you have root access, this app can set the system time to the GPS time. Not 100% sure this will stop the system from still using the inbuilt GPS time though.

i have root access, the problem is that the time from gps is incorrect due to that bug and 1024 weeks need to be added, see java code example

NH-Networks avatar Jun 03 '21 13:06 NH-Networks

I saw, but is this specific app causing this? If not, I think this app will not have the same issues as described

freshollie avatar Jun 03 '21 13:06 freshollie

No it's not app related, that app needs a fix also in code but i have no idea how... changes are needed in decompiled smali files i guess...

But time sync can be turned off in settings so that app will no overrule it... now i only need a other app that runs as a service that prevent time and date to fall back to "today date - 1024 weeks"

for more info on the issue see here:

https://www.reddit.com/r/LineageOS/comments/edz2oa/gps_week_number_rollover_bug_can_it_be_solved_in/

NH-Networks avatar Jun 03 '21 13:06 NH-Networks

Ah, tbh I've just had a look at my code and I don't even parse the "date" only the UTC time, so I don't think there is anything I can fix here.

freshollie avatar Jun 03 '21 13:06 freshollie

Ah, tbh I've just had a look at my code and I don't even parse the "date" only the UTC time, so I don't think there is anything I can fix here.

ah dammit, had my hopes up that you tool could help me out, if you don't mind me asking is there anything you can do to help me out?

NH-Networks avatar Jun 03 '21 13:06 NH-Networks