App Lounge: Fixed WorkManager stucks on error
Description
Fixed: WorkManager stucks if app install face any error.
Issue(s)
Test environment
Gradle build against 5371-update_all_stuck branch, install the apk into the device
Test procedures
Technical details
The scenario was created by throwing an exception intentionally from install process of PackageManager. The work manager was unaware of this exception as this install process part started from a Broadcast receiver event. Now install process part starts from App Install Worker and Worker is able to catch the exception. Now Worker's work execution is controlled by a mutex as well.
Screenshots
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation
Edited by Hasib Prince