import type { StagingKugouKey } from '~/features/settings/keyFormats'; import { MMKVParser } from '../MMKVParser'; export function parseAndroidKugouMMKV(view: DataView): Omit[] { const mmkv = new MMKVParser(view); const result: Omit[] = []; while (!mmkv.eof) { const audioHash = mmkv.readString(); const ekey = mmkv.readStringValue(); if (audioHash.length === 0x20 && ekey) { result.push({ audioHash, ekey }); } } return result; }