Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85893499 authored by bohu's avatar bohu
Browse files

emulator: update EGL emulation library path

Change it from system/ to vendor/, due to
treble requirement.

Test: build sdk_phone_x86-eng, boot emulator
and surfaceflinger should not complain missing
emulation library and emulator should boot to
homescreen.

Change-Id: I08c5ac22358e464c5522deef93cd40ec3bc508c9
parent 1a155247
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -327,17 +327,17 @@ static void* load_system_driver(const char* kind) {
            switch (emulationStatus) {
            switch (emulationStatus) {
                case 0:
                case 0:
#if defined(__LP64__)
#if defined(__LP64__)
                    result = "/system/lib64/egl/libGLES_android.so";
                    result = "/vendor/lib64/egl/libGLES_android.so";
#else
#else
                    result = "/system/lib/egl/libGLES_android.so";
                    result = "/vendor/lib/egl/libGLES_android.so";
#endif
#endif
                    return result;
                    return result;
                case 1:
                case 1:
                    // Use host-side OpenGL through the "emulation" library
                    // Use host-side OpenGL through the "emulation" library
#if defined(__LP64__)
#if defined(__LP64__)
                    result = std::string("/system/lib64/egl/lib") + kind + "_emulation.so";
                    result = std::string("/vendor/lib64/egl/lib") + kind + "_emulation.so";
#else
#else
                    result = std::string("/system/lib/egl/lib") + kind + "_emulation.so";
                    result = std::string("/vendor/lib/egl/lib") + kind + "_emulation.so";
#endif
#endif
                    return result;
                    return result;
                default:
                default: