suspend fun downloadTrack(trackId: String, trackUrl: String): DownloadResult return withContext(Dispatchers.IO) try // 1. Define the destination file // Using private storage prevents external access (DRM-lite approach) val fileName = "$trackId.mp3" val directory = context.filesDir // Internal private storage val file = File(directory, fileName)