Merge "Add the checking of the package installed state"