Using the TermuxConstants.TERMUX_FILES_DIR variable to get full path TermuxConstants.TERMUX_FILES_DIR_PATH/api/am-socket.