android_stub: fix update-android-headers.sh for libbacktrace

libbacktrace is gone in Android 14. If needed, one could add support for
libunwindstack going forward.

Acked-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41373>
This commit is contained in:
Yiwei Zhang 2026-05-05 14:26:10 -07:00 committed by Marge Bot
parent 02c1f657a0
commit b9028f379b

View file

@ -12,7 +12,6 @@ if [ ! -d platform-hardware-libhardware ]; then
git clone --depth 1 https://android.googlesource.com/platform/hardware/libhardware platform-hardware-libhardware
git clone --depth 1 https://android.googlesource.com/platform/system/core platform-system-core
git clone --depth 1 https://android.googlesource.com/platform/system/logging platform-system-logging
git clone --depth 1 https://android.googlesource.com/platform/system/unwinding platform-system-unwinding
fi
dest=include/android_stub
@ -21,6 +20,13 @@ dest=include/android_stub
cp -av ${dest}/system/window.h platform-system-core/libsystem/include/system
# Persist the frozen libbacktrace header for backward compatibility, since the
# support has been dropped in Android 15.
#
# TODO: add support for libunwindstack
mkdir -p platform-system-unwinding/libbacktrace/include
cp -av ${dest}/backtrace platform-system-unwinding/libbacktrace/include/
rm -rf ${dest}
mkdir ${dest}