Djokovic will face Jan-Lennard Struff for a spot in the round of 16. The German needed one hour and 40 minutes to move past American Michael Mmoh 6-2, 6-2, 7-5.
Earlier, sixth seed Petra Kvitova of the Czech Republic edged past Ukraine's Kateryna Kozlova 7-6 (3), 6-2, and eighth seed Petra Martic of Croatia beat fellow Ukrainian Kateryna Bondarenko 6-3, 6-4 to also advance into third round. Enditem
"I was really focused each game and each point. Especially against top players, one point can make the difference. So I had to stay very calm and keep going," the world number 50 added.
The hosts added their third goal when Daniel Sampaio latched onto Marco Antonio's pass to slot home in stoppage time.
"In the end it got too dark to go for 6.15 meters and I felt it was unsafe to continue any further," said the world silver medalist. "I felt I was in the zone. But you have to be prudent."
Duan Liuyu sent a long-distance shot off the cross-bar in the 45th minute, while Marouane Fellaini saw his header hit the post in frustration in the 61st minute. Enditem
"TCL is honored to enter into this new cooperation with FIBA for the next four years," Wei Yuki, vice president of TCL said. "Working together again with FIBA, TCL will continue to accelerate their international presence and contribute to the development and progress of global basketball." Enditem
He doubled Flamengo's lead with a low shot that rebounded in off the post before Rodriguinho pegged a goal back for the hosts.
TCL, founded in 1981, is one of the leading consumer electronics companies in China and has expanded its business to over 160 countries and regions worldwide.
"My team was fantastic during the whole race. Today I felt very good, my legs were really good, until the attack I could ride easily. Also, I was very motivated. Many people supported me along the roads, and I want to thank everyone," Valter said after the race.
"This is not the way I'd imagined taking the yellow jersey," Yates said, "If I'm honest, no one wants to take the jersey like this."