Merge "[RESTRICT AUTOMERGE] Use different criteria to check SIM state for different purposes" into pie-cts-dev