Symptom
The error message "FileTransfer Failed: [Fail]Error opening file: operation not permitted" is displayed during HAP installation.

Solution
The issue occurs because you do not have the permission to access the path where the HAP installation package is stored.
1. On Windows, move the project out of drive C and install it again.
2. On macOS, grant DevEco Studio the full disk access permission: go to System Preferences > Security & Privacy > Privacy > Full Disk Access, select DevEco Studio in the list, and restart it.