aboutsummaryrefslogtreecommitdiffstats
path: root/libnos/debug.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Transport: timeout after 60 secondsAndrew Scull2018-07-181-0/+1
| | | | | | | | | | If the app doesn't respond within 60 seconds then we give up on it. It may finish at some point in the future but we'll just have to see next time we call in as there isn't a way to have the app abort the call. Bug: 110758319 Test: TransportTest.Timeout Change-Id: I1448df0a266515c813868f5f9327d25ecb7e933f
* Transport protocol v1 -- masterAndrew Scull2018-07-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | This adds CRC-16 checksums for the call_application() function. The command from the master includes and additional packet containing the CRC which the slave can verify. The status from the slave after an app has processed the command included the CRC of the reply data and the status message itself. The protocol is backward compatible by detecting the v0 protocol from the status response and ignoring any CRCs. In the event of a CRC failure when reading the status or response data, the read operation is retried 3 times. In the event of a CRC failure of the request, the transaction is restarted a maximum of 3 times. Bug: 66104849 Bug: 80133226 Test: TransportTest Test: Update Android and unlock, update Citadel and can still unlock, reboot and unlock again Change-Id: If0d37ee492ecddcc17c4dbde3ca992698a48a5e7
* nos_call_application returns error code.Andrew Scull2017-10-111-0/+1
| | | | | | | Instead of killing the process, it logs the error and returns an error code. Change-Id: Ia71ccf6fc5a93abf7a07dd7d8004d779df0b46cb
* Reduce platform specific port size.Andrew Scull2017-10-091-0/+47
- nos_device_open() standard API - NuggetClient uses the linked libnos_datagram Change-Id: I9cd06148cdd3884458b1d4ddf8ce0448149899d4