Fix error in pure 64-bit environment

In Android S preview, there’s no 32-bit libraries in x86_64 system image for emulator.

Signed-off-by: Shaka Huang <shakalaca@gmail.com>
This commit is contained in:
Shaka Huang 2021-02-22 03:28:54 -08:00 committed by topjohnwu
parent 68090943f4
commit ba1ce16b8b
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ open class MainActivity : BaseUIActivity<MainViewModel, ActivityMainMd2Binding>(
.cancellable(false) .cancellable(false)
.reveal() .reveal()
} }
}g }
private fun askForHomeShortcut() { private fun askForHomeShortcut() {
if (isRunningAsStub && !Config.askedHome && if (isRunningAsStub && !Config.askedHome &&

View File

@ -110,7 +110,7 @@ void selinux_builtin_impl() {
} }
void dload_selinux() { void dload_selinux() {
if (access("/system/lib/libselinux.so", F_OK)) if (access("/system/lib/libselinux.so", F_OK) && access("/system/lib64/libselinux.so", F_OK))
return; return;
/* We only check whether libselinux.so exists but don't dlopen. /* We only check whether libselinux.so exists but don't dlopen.
* For some reason calling symbols returned from dlsym * For some reason calling symbols returned from dlsym