Follow these steps to enable caller ID on Xiaomi phones running MIUI
Settings -> Additional settings -> Battery & Performance -> Manage Apps Battery Usage -> Choose Eyecon -> No restrictions
Settings -> Permissions -> Auto-run management
Settings -> Additional settings -> Battery & Performance -> Power -> Settings button -> Disable internet -> Never