Merge "Use Build.IS_EMULATOR to detect if a device is emulator" into main