Brazil came from behind to claim a 2-1 win over Ecuador in an international friendly in Sweden.
The contest was a friendly in name only, as both sides battled hard from the outset and Ecuador had Luis Valencia sent off for throwing an elbow.
The Ecuadorians took an early lead through Felix Borja, who beat Brazil keeper Gomes to a cross to head his side in front.
Brazil, unbeaten under Dunga, responded superbly with Robinho orchestrating play and going close with a dipping volley.
The tide appearing to be turning Brazil's way when Valencia saw red on the half hour for a needless elbow on Dudu.
The Samba stars laid siege to the Ecuador goal and were rewarded with a leveller just before the break, as Fred pounced on a terrible clearance from Giovanni Espinoza to fire home.
Kaka, Ronaldinho and Maicon all went close for Brazil before the former netted the winner 17 minutes from time.
The Milan man stabbed home to cap a fine move which contained a shot against the bar and a superb save from Cristian Mora before Kaka volleyed home a superb cut-back from Ronaldinho.
Ronaldinho has been criticised in the media in recent weeks, but he looked close to his peak after arriving as a half-time substitute and crashed a free kick against the bar in the final ten minutes.
The performance pleased Brazil coach Dunga, as he noted: "We're definitely on the right track and this match confirms it.
"We played good opposition here. The most important thing is to create a great squad. It's not all about the 11 players on the field."