There is an official HERE example exactly for that usecase (offline mapdata download, update and checking for updates) on https://tcs.ext.here.com/mobilesdk_examples
Direct links:
- Android: https://tcs.ext.here.com/sdk_examples/MapDownloader.zip
- iOS: https://tcs.ext.here.com/sdk_examples/OfflineMaps.zip