Necessary for building against Android SDK 35. (cherry picked from commit 02aefde5d92f0f48ae8800e3f9da98f38a69cfbd)