Is there is any security risks if I enabled developer options in android phone (by clicking 7 times on build number)? Are there any risks when this option is showed in menu but switched off by toggle button?
No, there is no (technical) security problem with developer settings enabled. The reason why they are usually disabled is that they aren't important for regular users and some of the options can be dangerous, if used incorrectly. Not dangerous as in security, but your phone could do weird things because you enabled some option.
Sometimes, clicking this automatically enables developer options. Do not worry. The steps are easy for disabling.
We assume that you have already clicked 7 times.
- Click "developer options".
- Slide the on-off switch at the top to off.
- Now your phone is like it used to be.
Note: step 2 might be slightly different depending on the OS of your phone.