Android, Jetpack, Jetpack Datastore.
UpdatePreferencesWorker that extends Worker from WorkManager. The doWork method fetches or generates new data and updates the DataStore in the background. In your Activity or BroadcastReceiver, you can enqueue a periodic work request to trigger background updates. 6. Sharing Data Across Modules