Bump Android minimum supported API to 26 (Android O) [crashpad/crashpad : main]

9 views
Skip to first unread message

Andrew Grieve (Gerrit)

unread,
Jun 1, 2026, 8:25:15 PM (4 days ago) Jun 1
to Andrew Grieve, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
Attention needed from Mark Mentovai

Andrew Grieve added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Andrew Grieve . resolved

Looks like there are no android trybots, but I did at least build all targets locally.

Open in Gerrit

Related details

Attention is currently required from:
  • Mark Mentovai
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
Gerrit-Change-Number: 7891185
Gerrit-PatchSet: 3
Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
Gerrit-Comment-Date: Tue, 02 Jun 2026 00:25:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Mark Mentovai (Gerrit)

unread,
Jun 2, 2026, 9:40:59 AM (4 days ago) Jun 2
to Andrew Grieve, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
Attention needed from Andrew Grieve

Mark Mentovai added 8 comments

File client/crashpad_client_linux.cc
Line 65, Patchset 5 (Latest):#if __ANDROID_MIN_SDK_VERSION__ < 26
Mark Mentovai . unresolved

Do you need to `#include` something for this?

Line 66, Patchset 5 (Latest):#error "Crashpad requires Android API 26 or above."
Mark Mentovai . unresolved

You don’t need the "quotes".

Line 65, Patchset 5 (Latest):#if __ANDROID_MIN_SDK_VERSION__ < 26
#error "Crashpad requires Android API 26 or above."
#endif
Mark Mentovai . unresolved

Actually, I don’t think we need this at all.

We don’t do this for other OS platforms, we didn’t do it for Android before this, and this seems like a weird place to put it. Chances are decent that if someone tries building with an older version, they won’t even see this, because enough other things will break that this message will either be buried or the build won’t even have progressed to this file so it won’t even appear at all.

File compat/BUILD.gn
Line 115, Patchset 5 (Parent): "android/sys/user.h",
Mark Mentovai . unresolved

I think we only have this because the NDK’s `<sys/user.h>` was broken and needed something else to be `#include`d first. Is that still the case? If so, can we ask the NDK to be fixed?

File compat/android/elf.h
Line 22, Patchset 5 (Latest):#if !defined(ELF32_ST_VISIBILITY)
#define ELF32_ST_VISIBILITY(other) ((other) & 0x3)
#endif

#if !defined(ELF64_ST_VISIBILITY)
#define ELF64_ST_VISIBILITY(other) ELF32_ST_VISIBILITY(other)
#endif
Mark Mentovai . unresolved

NDK still doesn’t have these? Can we ask for them to be added?

Line 20, Patchset 5 (Latest):#include <android/api-level.h>
Mark Mentovai . unresolved

No longer used.

File doc/developing.md
Line 155, Patchset 5 (Parent):32-bit platforms. See Chrome’s
[`build/config/android/config.gni`](https://chromium.googlesource.com/chromium/src/+/main/build/config/android/config.gni)
which sets `android32_ndk_api_level` and `android64_ndk_api_level`.
Mark Mentovai . unresolved

I think that this part of the comment, which tells people where to find a good value for the current API level, is still helpful.

Line 163, Patchset 5 (Parent):android_api_level = 21
Mark Mentovai . unresolved

No need to specify manually anymore?

Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Grieve
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
    Gerrit-Change-Number: 7891185
    Gerrit-PatchSet: 5
    Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
    Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
    Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
    Gerrit-Comment-Date: Tue, 02 Jun 2026 13:40:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Mark Mentovai (Gerrit)

    unread,
    Jun 2, 2026, 9:41:59 AM (4 days ago) Jun 2
    to Andrew Grieve, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
    Attention needed from Andrew Grieve

    Mark Mentovai added 3 comments

    Commit Message
    Line 9, Patchset 5 (Latest):Note: Chrome's minSdkVersion is Q right now, so bumping to O seems
    Mark Mentovai . unresolved

    Give the number that corresponds to Q also.

    Line 11, Patchset 5 (Latest):
    Mark Mentovai . unresolved

    Also include a note that you’re updating mini_chromium.

    Line 12, Patchset 5 (Latest):Bug: chromium:425948259, chromium:40875565
    Mark Mentovai . unresolved

    chromium: tags are no longer needed, because the bug namespace has been merged.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andrew Grieve
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
    Gerrit-Change-Number: 7891185
    Gerrit-PatchSet: 5
    Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
    Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
    Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
    Gerrit-Comment-Date: Tue, 02 Jun 2026 13:41:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Andrew Grieve (Gerrit)

    unread,
    Jun 2, 2026, 3:47:08 PM (4 days ago) Jun 2
    to Andrew Grieve, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
    Attention needed from Mark Mentovai

    Andrew Grieve voted and added 11 comments

    Votes added by Andrew Grieve

    Commit-Queue+1

    11 comments

    Commit Message
    Line 9, Patchset 5:Note: Chrome's minSdkVersion is Q right now, so bumping to O seems
    Mark Mentovai . resolved

    Give the number that corresponds to Q also.

    Andrew Grieve

    Done

    Line 11, Patchset 5:
    Mark Mentovai . resolved

    Also include a note that you’re updating mini_chromium.

    Andrew Grieve

    Done

    Line 12, Patchset 5:Bug: chromium:425948259, chromium:40875565
    Mark Mentovai . resolved

    chromium: tags are no longer needed, because the bug namespace has been merged.

    Andrew Grieve

    Done

    File client/crashpad_client_linux.cc
    Line 65, Patchset 5:#if __ANDROID_MIN_SDK_VERSION__ < 26
    Mark Mentovai . resolved

    Do you need to `#include` something for this?

    Andrew Grieve

    No, the compiler set it.

    Line 66, Patchset 5:#error "Crashpad requires Android API 26 or above."
    Mark Mentovai . resolved

    You don’t need the "quotes".

    Andrew Grieve

    Removed.

    Line 65, Patchset 5:#if __ANDROID_MIN_SDK_VERSION__ < 26

    #error "Crashpad requires Android API 26 or above."
    #endif
    Mark Mentovai . resolved

    Actually, I don’t think we need this at all.

    We don’t do this for other OS platforms, we didn’t do it for Android before this, and this seems like a weird place to put it. Chances are decent that if someone tries building with an older version, they won’t even see this, because enough other things will break that this message will either be buried or the build won’t even have progressed to this file so it won’t even appear at all.

    Andrew Grieve

    Removed.

    File compat/BUILD.gn
    Line 115, Patchset 5 (Parent): "android/sys/user.h",
    Mark Mentovai . resolved

    I think we only have this because the NDK’s `<sys/user.h>` was broken and needed something else to be `#include`d first. Is that still the case? If so, can we ask the NDK to be fixed?

    Andrew Grieve

    Seems to work without it. Deleted!

    File compat/android/elf.h
    Line 22, Patchset 5:#if !defined(ELF32_ST_VISIBILITY)

    #define ELF32_ST_VISIBILITY(other) ((other) & 0x3)
    #endif

    #if !defined(ELF64_ST_VISIBILITY)
    #define ELF64_ST_VISIBILITY(other) ELF32_ST_VISIBILITY(other)
    #endif
    Mark Mentovai . resolved

    NDK still doesn’t have these? Can we ask for them to be added?

    Andrew Grieve

    Filed a bug and added a comment with a link to it.

    Line 20, Patchset 5:#include <android/api-level.h>
    Mark Mentovai . resolved

    No longer used.

    Andrew Grieve

    Done

    File doc/developing.md
    Line 155, Patchset 5 (Parent):32-bit platforms. See Chrome’s
    [`build/config/android/config.gni`](https://chromium.googlesource.com/chromium/src/+/main/build/config/android/config.gni)
    which sets `android32_ndk_api_level` and `android64_ndk_api_level`.
    Mark Mentovai . resolved

    I think that this part of the comment, which tells people where to find a good value for the current API level, is still helpful.

    Andrew Grieve

    Done

    Line 163, Patchset 5 (Parent):android_api_level = 21
    Mark Mentovai . resolved

    No need to specify manually anymore?

    Andrew Grieve

    No, since I updated the default in `mini_chromium`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mark Mentovai
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 9
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
      Gerrit-Comment-Date: Tue, 02 Jun 2026 19:47:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
      unsatisfied_requirement
      open
      diffy

      Andrew Grieve (Gerrit)

      unread,
      Jun 2, 2026, 5:36:32 PM (4 days ago) Jun 2
      to Andrew Grieve, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
      Attention needed from Andrew Grieve and Mark Mentovai

      Message from Andrew Grieve

      Set Ready For Review

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andrew Grieve
      • Mark Mentovai
      Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 12
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
      Gerrit-Comment-Date: Tue, 02 Jun 2026 21:36:30 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy

      Andrew Grieve (Gerrit)

      unread,
      Jun 2, 2026, 5:36:49 PM (4 days ago) Jun 2
      to Andrew Grieve, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
      Attention needed from Mark Mentovai

      Andrew Grieve voted and added 1 comment

      Votes added by Andrew Grieve

      Commit-Queue+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 12 (Latest):
      Andrew Grieve . resolved

      Looks like mini_chromium was rolled separately, so removed from CL.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mark Mentovai
      Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 12
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
      Gerrit-Comment-Date: Tue, 02 Jun 2026 21:36:46 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      open
      diffy

      Mark Mentovai (Gerrit)

      unread,
      Jun 3, 2026, 9:45:29 AM (3 days ago) Jun 3
      to Andrew Grieve, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
      Attention needed from Andrew Grieve

      Mark Mentovai voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andrew Grieve
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 12
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
      Gerrit-Comment-Date: Wed, 03 Jun 2026 13:45:26 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Andrew Grieve (Gerrit)

      unread,
      Jun 3, 2026, 2:45:24 PM (3 days ago) Jun 3
      to Andrew Grieve, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org

      Andrew Grieve voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 12
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Comment-Date: Wed, 03 Jun 2026 18:45:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      crashpad-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

      unread,
      Jun 3, 2026, 2:45:32 PM (3 days ago) Jun 3
      to Andrew Grieve, Mark Mentovai, crashp...@chromium.org

      crashpa...@luci-project-accounts.iam.gserviceaccount.com submitted the change

      Change information

      Commit message:
      Bump Android minimum supported API to 26 (Android O)

      Chrome's minSdkVersion is Q (API 29) right now, so bumping to O seems
      reasonable.
      Bug: 425948259, 40875565
      Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Reviewed-by: Mark Mentovai <ma...@chromium.org>
      Commit-Queue: Andrew Grieve <agr...@chromium.org>
      Files:
      • M client/crashpad_client_linux_test.cc
      • M compat/BUILD.gn
      • D compat/android/dlfcn_internal.cc
      • D compat/android/dlfcn_internal.h
      • M compat/android/elf.h
      • D compat/android/linux/elf.h
      • D compat/android/linux/prctl.h
      • D compat/android/linux/ptrace.h
      • D compat/android/sched.h
      • D compat/android/sys/epoll.cc
      • D compat/android/sys/epoll.h
      • D compat/android/sys/mman.h
      • D compat/android/sys/mman_mmap.cc
      • D compat/android/sys/syscall.h
      • D compat/android/sys/user.h
      • M doc/developing.md
      • M handler/linux/exception_handler_server_test.cc
      • M snapshot/linux/process_reader_linux_test.cc
      • M test/scoped_set_thread_name_posix.cc
      • M util/linux/exception_handler_client.cc
      • M util/linux/initial_signal_dispositions.cc
      • M util/linux/thread_info.h
      Change size: L
      Delta: 22 files changed, 12 insertions(+), 774 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Mark Mentovai
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I3d17eca0dd864dfa16daeabc98790adaa8c03aed
      Gerrit-Change-Number: 7891185
      Gerrit-PatchSet: 13
      Gerrit-Owner: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages