Android implementations vary by manufacturer (Samsung, Pixel, etc.), but the standard methodology is as follows: