Merge "[pm] remove redundant boolean flags in PackageSetting" into main