[Hexagon] Error opening FastRPC channel

@kparzysz Thank you for your reply! I don’t have root access. So I create a temporary folder for these libraries and add the location to ADSP_LIBRARY_PATH. Now it works :

09-09 14:39:42.578 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++.so.1
09-09 14:39:42.589 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++abi.so.1

But I still get this error:

Error opening FastRPC channel

And the adb logcat:

09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 3, configured heap IDs: system (0x2000000), contig (0x10), secure (0x400), secure flags (0x80080000)
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2990: fastrpc_apps_user_init done
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1971: remote_session_control DSP info request for domain 3, thread priority -1, stack size 131072
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2378: open_device_node: no access to default device of domain 3, open thru HAL, (sess_id 0)
09-09 14:39:42.518 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2565: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:175: Reading configuration file: launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:64: fastrpc_read_config_file_from_path: Couldn't find file: /data/local/tmp/hexagon_test/adsp/launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:132: Error 45: failed for /data/local/tmp/hexagon_test/adsp/launcher_android.debugconfig with errno(No such file or directory)
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:64: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/lib/rfsa/adsp/launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:132: Error 45: failed for /vendor/lib/rfsa/adsp/launcher_android.debugconfig with errno(No such file or directory)
09-09 14:39:42.549 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2752: Created user PD on domain 3 (attrs 0x8, debug_trace 0x0)
09-09 14:39:42.553 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:474: Successfully set remote user thread priority to 192 and stack size to 131072 for domain 3
09-09 14:39:42.553 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
09-09 14:39:42.554 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:566:Error : Unable to add watcher for folder /vendor/lib/rfsa/adsp : errno is Permission denied
09-09 14:39:42.555 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:273: fastrpc_perf_init: enabled systrace 0x0 and RPC traces (kernel 0, dsp 0) with frequency 1000
09-09 14:39:42.555 21928 21931 I launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
09-09 14:39:42.555 21928 21931 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /data/local/tmp/hexagon_test/adsp/launcher_android.farf. (No such file or directory)
09-09 14:39:42.555 21928 21931 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/launcher_android.farf. (No such file or directory)
09-09 14:39:42.558 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x77bb7f40 (idx 0)
09-09 14:39:42.559 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:846: Successfully opened file liblauncher_rpc_skel.so
09-09 14:39:42.561 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0x77bb8040 (idx 1)
09-09 14:39:42.578 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++.so.1
09-09 14:39:42.589 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++abi.so.1
09-09 14:39:42.614 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1294: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror undefined symbol PLT  #275 _ZN3tvm7runtime6detail8LogFatal8GetEntryEv in ./l
09-09 14:39:42.614 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1358: Error 0x80000406: remote_handle64_open failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)

This line seems to show that I don’t have permission.

09-09 14:39:42.518 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2565: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)

Does it mean I need to root my phone?