App 2.43.5: update checks log what happens
Each check writes down the networks Android sees, the server's name lookup, how a failure happened and how many reports wait, and on a failure whether the internet answers at all, to tell a SIM without data from a server that is down. The report goes to a USB stick and, once online, the server. No address or token is written. Tried on the emulator. Not tried on the car. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
@@ -85,6 +85,12 @@ final class LogOutbox {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Removes what waits under names starting with [prefix]. */
|
||||
static synchronized void dropWaiting(Context context, String prefix) {
|
||||
File dir = new File(context.getFilesDir(), DIR);
|
||||
for (String name : waiting(dir)) if (name.startsWith(prefix)) new File(dir, name).delete();
|
||||
}
|
||||
|
||||
/** Sends what waits, unless the last attempt failed less than {@link #RETRY_MS} ago. Blocking:
|
||||
* call it off the main thread. */
|
||||
static void sendIfDue(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user