summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupHelpers.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2024-03-12 07:44:27 +0000
committer Suprabh Shukla <suprabh@google.com> 2024-03-13 23:50:27 +0000
commit0fa9120b8f72916951b2d070afd6c3dfd3c13f77 (patch)
treef976bf5e76cd3429d74aa0ed221c9838e870cd1e /libs/androidfw/BackupHelpers.cpp
parent557303d3d779deed91d280e9599d8de2db55b1ff (diff)
Clear dns cache when restoring network access
Sometimes apps need to wait for network rules to be updated before some of their lifecycle events can be dispatched. This happens specifically before resuming activities today. Because the process-level InetAddress library can cache dns failures, we need to clear its cache so that the app can resume making valid dns queries as soon as any of its activities resume. Test: Manual Bug: 237556596 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c431def111f22952fe43aa04d48439c6432d50b6) Merged-In: Ia99a43731801078ec8d67cf17fbfee9c329b6e96 Change-Id: Ia99a43731801078ec8d67cf17fbfee9c329b6e96
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
0 files changed, 0 insertions, 0 deletions