Skip to content

Commit 170ce6e

Browse files
authored
fix: faulty android detection
Closes: xerial#1287
1 parent 524ac3a commit 170ce6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/sqlite/util/OSInfo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ private static boolean isRunningAndroid() {
124124
// We don't use libc/libm/libdl because that has changed what directory its pointing to and
125125
// OEMs implement the symlink that allows backwards compatibility
126126
// for apps that use the old path differently, which may cause this check to fail because
127-
// common undocumented behaviour. See
127+
// of common undocumented behaviour. See
128128
// https://developer.android.com/about/versions/10/behavior-changes-all#bionic
129-
File androidGLES = new File("/system/lib/libGLESv1_CM");
130-
File android64GLES = new File("/system/lib64/libGLESv1_CM");
129+
File androidGLES = new File("/system/lib/libGLESv1_CM.so");
130+
File android64GLES = new File("/system/lib64/libGLESv1_CM.so");
131131

132132
return android64GLES.exists() || androidGLES.exists();
133133
}

0 commit comments

Comments
 (0)