Hi,
I'm tring to set DSP env path in Android native code,
bool SetAdspLibraryPath(std::string nativeLibPath) { std::stringstream path; path << nativeLibPath << ";/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp"; return setenv("ADSP_LIBRARY_PATH", path.str().c_str(), 1 /*override*/) == 0; }
After that logcat output:
E vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3087: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
E vendor/qcom/proprietary/adsprpc/src/log_config.c:576:Error : Unable to add watcher for folder /vendor/lib/rfsa/adsp : errno is Permission denied
How to get permissions for these system dirs?
Thanks for reply!
Dear developer,
Could you pls help to disable your selinux permission with commands of "setenforce 0" and run it again?
If it works with above settings, that's to way you need to add permission to your app.
BR.
Wei
Dear Weihuan,
Thank you for your reply.
But I have other question. Which permission(s) need be set in my Android app? Would you give me a hint please?
BR
Dear weihuan,
I tired to disable selinux on my android device by command 'adb shell setenforce 0 '.
The device show 'setenforce: Couldn't set enforcing status to '0': Permission denied'.
On Android development offical site:
Caution: Permissive mode is not supported on production devices. CTS tests confirm enforcing mode is enabled.
So how to disable selinux on released/retailed products?
Thanks
BR