Merge "Enable more precise background detection for partition decision"