'dlopen error when my library dlopen another library in Android 9

now I encountered an error when my library(**A.so, which is locate in / system/lib64) dlopen another library(**B.so, which is in /system/ etc/automotive/),and i got the dlerror: dlopen failed , library **B.so needed or dlopened by **A.so is not accessible for the namespace " default".

And I tried modifying /system/etc/public.libraries.txt,add **A.so or **B.so but it doesn't work.here is what i can find something referenced here in official link:https://source.android.com/devices/architecture/vndk/linker-namespace

Does anyone can help me now ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source