How to Make a USB No-data Charger Cable




Introduction: How to Make a USB No-data Charger Cable

Your USB charged devices can be attacked through the USB port while charging. This has been demonstrated at Blackhat 2013 (, and documented on the web under the general term "Juice Jacking". See for example:

How can we protect ourselves against malicious public charging stations or cheap iphone chargers sold on chinese websites? One of the answers is to make a USB cable which can only feed power to the USB device without any ability to transfer data. This is suprisingly easy to do so let's get starting!

Step 1: Shopping List and Tools

We will need:

  • a micro USB cable which has a micro USB plug at one end and a micro USB socket at the other end. Purchase at your favorite chinese vendor.
  • duct tape

Tools & skills:

  • paper cutter
  • l33t cable surgery skills :)

Step 2: The Incision

We need to make a short incision along the length of the USB cable using the paper cutter. It can be a bit tricky as you need to be careful not to cut the USB wires and at the same time cut through the whole insulation which can be thick.

One way I found that works is to first make a shallow cut and make it gradually deeper until you can feel the knife moving smoothly when it's tip gets to the empty space between the insulation and the wires. In case you are not sure you can do this properly take some old keyboard or mouse cable and practice.

Also, it's good to buy two USB cables so that you won't have to wait for a new one when you make a mistake. They are dirt cheap so it's a good idea to have a backup.

Step 3: Open and Inspect

Open and inspect the cut to see if the USB wires that we care about are not damaged. We have to leave the red and black wires as they provide the power. The other wires (white and green) are the data lines.

Step 4: Cut the Data Wires

Simply cut the data wires leaving the power wires intact.

Step 5: Finish Up

Seal the incision with a bit of duct tape.

Step 6: Test

Connect the device to your PC using the cable you've made. If the device starts to charge but the operating system doesn't see the new device plugged in your cable works! How to check if your operating system detects the device or not?



  • Metalworking Contest

    Metalworking Contest
  • Creative Misuse Contest

    Creative Misuse Contest
  • Fix It! Contest

    Fix It! Contest

25 Discussions

"White and purple"? I have to ask, and without meaning any offense,
does the author of this post suffer from any sort of colorblindness
issues? The fourth wire in a standard USB cable is green, not purple, and in fact the image right above that text clearly shows a green wire sticking out of the sliced-open cable.

Perhaps it was merely a mistake, but regardless — for anyone following this guide, "purple" should be "green".

2 replies

I do suffer from colorblindness. Already fixed the guide, wikipedia also mentions the standard data cable colors as being green and white
Thanks for the heads up :).

I thought that might be it. :-) My dad dealt with that. "Are these socks black or brown?" "...They're navy blue." "Oh." Happy to help! (I can't believe nobody mentioned it for 2 years...)

USB data pins shortened work fine in Iphones 6 and up.

Can I put a rocker or slider switch between one of the data cables so I can turn data transmission on or off?

1 reply

This may not work (cause transmission errors) for High-Speed data transfer. It might work for Low or Normal speed. Please check, I'm curious :).

Can I put a rocker or slider switch between one of the data cables so I can switch data transmission on and off? (Also, this is my original idea, i didnt steal it)

The USB standard provides for notifying the device that it can fast charge if it sees that the data pins on the device end of the cable are shorted together. Apple is non-standard in this respect, but rewiring cables this way has worked with all my Android devices (4 Samsung phones and 2 Amazon Kindle Fires).

Yes, the Fire is an Android, just stripped of Google Play - which can be added back in on 5th generation and later Fires - go to XDA Forums at and download and run the four apk installation files there - a tip of the hat to the eBook Reader Blog for that link).

Very cool and props on the l33t skills :-) will apple products give the stupid "not certified" error - any idea?

2 replies

I thought "certified" was only for Lightning cables, or Lightning-to-USB adapter cables? You definitely don't want to try this hack with a Lightning cable, even if it's USB on one end.

I do not know, I don't own any Apple hardware. If I will meet someone who has though I will try to remember to check.

it took 3 months to decide the information is too technical for you? Just move on and buy a 50 cent cable off ali without understanding if that's what you want.

The four resistor thing is for apple devices. The direct connection of data wires was the chinese makers who started this whole fast charge thing off so the europeans had to change it and added a 200 ohm resistor. A 200 ohm resistor should be ok for the early chinese standard, the direct connection would probably be ok to charge on most set ups, but perhaps not all. As an aside some phones switch wifi off when charging but you can fool your phone by using the 200 ohm resistor cable and it will still work. Important- the resistor (200 ohm) is phone side of the cable, the matching two wires on the supply side should *not* be connected together. Only connect the resistor side of the cable to a phone, never to the USB supply.

Apple phones will need some array of resistors.

Samsung Galaxy S2 requires D+ and D- to be shorted in order to charge at full power (battery usage should show AC)

Interesting comments about the additional components needed.

A few years back, I bought a couple of those multi-purpose power supplies which have the changeable power connectors to suit most laptops. They also have a USB power out as well, with a range of power connectors, which meant I had a couple of micro-USB plugs. I recycled an old Palm charger and a 5 volt power supply from some long gone device into phone chargers. They just have the two wires for +5 V and 0 V.

They work fine with all our phones which are Samsung, HTC and Nokia, which range from a year or two old to about four or five years.

The Palm charger seen below has been "double" adapted: It has a Euro adapter super-glued over the US pins and a micro-USB plug on the cable. The Palm fell apart about two years ago.

Palm charger.jpg

Proste a zarazem genialne w swojej prostocie ;)

To jeden z powodów dla ktorych uzywam mojego power banku kiedy jadę gdzieś. Lepiej nie ufać darmowemu ładowaniu smartfona w galerii czy innym miejscu

good looking hack.

connecting D+ and D- of device side may enable highspeed charge.

some device requires appropriate pullup/pulldown of shorted D+ and D-.

for galaxy tab, 33k ohm to Vcc and 10k ohm to GND, resulting D+ and D- at 1.16V.

but be aware: power source without appropriate current limit circuit may burn.

very good way for protection..if i rememver correctly..some mobiles do need a voltage at data pins also we use a 100ohm resistor on data pins

1 reply