I mounted a Amazon tablet beside the light switch, thought might be a good idea getting a mini adapter hide in wall to power the tablet. The setup does look okay but now I worried about potential fire and safety hazard…
Are those cheap AC-DC converter safe enough to be hidden inside the wall? Is it a good idea to wrap this adapter using electric tape?
I agree with @Troon, I would not put that in my wall. Wrapping with electrical tape might actually make it worse since it will reduce the heat dissipation.
You do have a few options that you may not have thought of:
You have ~24Vac (probably 19Vac) right above in you doorbell chime. You could rectify and reduce to 5V.
Mount a recessed outlet with built-in USB ports (UL listed of course…or equivalent)