Hi, Always mention MIUI version while posting any issue. For this issue don't do 100% optimization through security app because when security app fully optimized then it disables the developer option.