Use flock() on Android

The hope is that this will fix crash reports coming in with all 0
client ids.

Android was switched to O_EXCL lockfiles in crashpad bce9a58c66a1
("Fix locking on certain Android partitions") to work around test
devices that wrote to /sdcard. However, production databases live in the
app's cache directory, which supports flock(), and the tests seem to no
longer require this.

Bug: 293610799
Change-Id: I09290182f68140f72cccdf75bc7171717c5308c8
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/8658859
Reviewed-by: Justin Cohen <justincohen@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
2 files changed
tree: 5203b00fe23cede855b7e25f9e31e019ac9a1656
  1. build/
  2. client/
  3. compat/
  4. doc/
  5. handler/
  6. infra/
  7. minidump/
  8. snapshot/
  9. test/
  10. third_party/
  11. tools/
  12. util/
  13. .clang-format
  14. .gitattributes
  15. .gitignore
  16. .gn
  17. .style.yapf
  18. AUTHORS
  19. BUILD.gn
  20. codereview.settings
  21. CONTRIBUTORS
  22. DEPS
  23. LICENSE
  24. navbar.md
  25. OWNERS
  26. package.h
  27. README.md
  28. vpython.toml
  29. vpython.toml.uv.lock
README.md

Crashpad

Crashpad is a crash-reporting system.

Documentation

Source Code

Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.

Other Links