How can I disable usb charging on Android phone (Nexus 5) I use my Nexus 5 as development device, so I plug-in and plug-out into computer usb very often.
What makes me worried is that too many this way "li-on" battery charging cycles get wasted too fast.

My Nexus 5 is rooted.
I want it to charge only when connected to wall socket.

I saw there are similar questions but I haven't found any concrete solution yet.
Apart "sync only cable". but does it really exists?

Thanks in advance
Don't worry about battery. There is nothing like fixed cycle count counter. Plugging it very often is actually better than cycling it 10%->100%->10%->100%.