I simply wouldn’t do that, i will have a cable just for charging flashlight. If you are worrying about safety for normal consumers: i think manufacturers can have solution for this