Merge "Condition background record restriction on Sdk" into tm-dev