Plot summary
Gilfoyle confirms that fifty exploded phones had Pied Piper's app. Instead of a firmware update, Barker intends to replace 9 million smartphones in three days, at great expense. He tries to triple production with a motivational speech in China and is taken hostage by factory workers. Belson finds out and decides leave Tibet and go to China to try to get his company back. He invites Erlich, but Erlich is lazy and wants to smoke opium in his den. Gavin then gives his innkeeper enough money to house Erlich for five years and leaves Erlich in the Tibet den.
Belson negotiates Barker's release, regaining the board's trust and his position as CEO. Meanwhile, during an attempt to move Pied Piper's network to their server, Anton, the incubator's broadband is cut for unpaid bills. Richard tries to move Anton to Stanford, but the server components fall out of the truck en route. They are surprised to find their network is still running all of FGI's data. Anton backed itself up to Jian-Yang's smart refrigerator, which Gilfoyle hacked with Pied Piper's code, and the code spread to other refrigerators creating a distributed network and proving their concept. Pied Piper agrees to funding from Bream-Hall.
Credits
Adapted from Wikipedia contributors, Silicon Valley season 4. HTML formatting and reference markers removed.