os_get_option() is a wrapper for getenv() that checks properties in Android. It should be a no-op for other OS but will allow full use of env vars in Android. The environment variable names are automatically renamed by os_get_option() and the order of precedence thus becomes: 1. getenv (non-Android) 2. debug.mesa.* (Android) 3. vendor.mesa.* (Android) 4. mesa.* (Android, as a fallback for older versions) Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37587>