migrate

Bring a WVD v1 blob forward to v2.

v1 stored the VMP blob in a trailing u16be-prefixed block; v2 keeps it inside client_id.vmp_data.

Throws

if the data is already v2, or is not a WVD file at all


fun migrate(data: String): Device

Bring a Base64-encoded WVD v1 blob forward to v2.