Skip to content

Commit

Permalink
Use __loader_android_create_namespace on O+
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Oct 7, 2021
1 parent c13ef33 commit fb793f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riru/src/main/cpp/util/dl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ __loader_android_create_namespace([[maybe_unused]] const char *name,
void *DlopenExt(const char *path, int flags) {
auto info = android_dlextinfo{};

if (android_prop::GetApiLevel() >= __ANDROID_API_P__) {
if (android_prop::GetApiLevel() >= __ANDROID_API_O__) {
auto *dir = dirname(path);
auto *ns = &__loader_android_create_namespace == nullptr ? nullptr :
__loader_android_create_namespace(path, dir, nullptr,
Expand Down

0 comments on commit fb793f9

Please sign in to comment.