Timeline for How to tell an Android device that only has ADB connectivity about an NTP server?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20 at 22:14 | comment | added | John Dallman | Thanks, I'll try that and edit results into question and answer. | |
Jun 20 at 20:06 | comment | added | Robert | @JohnDallman sorry I was mixing up your question with the one you have linked to. If you have root port forwarding of UDP port 123 from the device to the host PC and a NTP server running on it should be feasible. Alternatively you could check if the board support USB OTG and may be a simple USB Ethernet adapter allows you to make the device network ready. | |
Jun 20 at 18:30 | comment | added | John Dallman | I have root, but a very limited understanding of TCP and UDP. | |
Jun 20 at 17:29 | comment | added | Robert | @JohnDallman adb allows TCP and UDP port forwarding, unfortunately as you don't have root only for ports larger than 1024 (for the local port on Android side). | |
Jun 20 at 17:25 | comment | added | John Dallman | No network at all, except anything that comes through the default settings of ADB over USB, which is nothing AFAIK. The Linux host is part of the corporate network, on a company site. | |
Jun 20 at 17:20 | comment | added | Robert | @JohnDallman DHCP servers are found by all devices automatically as DHCP traffic uses broadcast communication. Do you mean "any form of Internet" or "any form of network"? There is a big difference... Anyway all Linux system have network - at least localhost. So if there is no other networking you could still try to run an ntp server on localhost (with a different port as everything below 1024 requires root). I just don't know if Android allows to use a time server on port different to 123. | |
Jun 20 at 15:47 | comment | added | John Dallman |
I may have misunderstood you. The development devices I'm using don't have any form of Internet connectivity, so they can't see ntp://time.android.com , and don't have any communication with a DHCP server at present. I thought you were commenting about a way to tell a device about the IP address of a DHCP server.
|
|
Jun 20 at 15:28 | history | answered | Robert | CC BY-SA 4.0 |