What's the best practice to check the validity of an APK expansion obb in case i'm using a zip file ?
If you are using zip as your OBB payload, you can use APK Expansion ZIP library loaded at
/extras/google/google_market_apk_expansion/
Which contains 3 directories:
/downloader_library - library used to download OBB
/zip_file - library providing helper functions to use a ZIP OBB file
/downloader_sample - sample for using both downloader_library and zip_file
If you check the source code in /downloader_sample you'll obtain Google sample code that does validation by doing the following (after checking that OBB file exists):
Obvious if your OBB file is large it'll take a bit of time, so you'll want to do it just once and store the validation result for future reference.
You can find a quite complete Android Dev article on this here.