Initial a10 (minsdk=29) support
All checks were successful
eden-license / license-header (pull_request) Successful in 20s

This commit is contained in:
Allison Cunha 2025-09-27 10:53:39 -03:00 committed by crueter
parent c725641f13
commit 48528155a7
2 changed files with 11 additions and 1 deletions

View file

@ -59,7 +59,7 @@ android {
defaultConfig {
// TODO If this is ever modified, change application_id in strings.xml
applicationId = "dev.eden.eden_emulator"
minSdk = 30
minSdk = 29
targetSdk = 36
versionName = getGitVersion()

View file

@ -56,6 +56,16 @@
#include "common/host_memory.h"
#include "common/logging/log.h"
#if defined(__ANDROID__) && __ANDROID_API__ < 30
#include <sys/syscall.h>
#ifndef MFD_CLOEXEC
#define MFD_CLOEXEC 0x0001U
#endif
static int memfd_create(const char* name, unsigned int flags) {
return syscall(__NR_memfd_create, name, flags);
}
#endif
namespace Common {
constexpr size_t PageAlignment = 0x1000;