Fred scored the only goal of the game as Brazil completed their World Cup preparations with a hard-fought 1-0 win over Serbia.
The Selecao were struggling to break down their European opponents when, in the 58th minute, the forward expertly controlled a long ball forward from Thiago Silva before prodding home.
Brazil had chances to add to their tally but were ultimately forced to settle for a narrow win.
Having not been tested by Panama in midweek, the World Cup hosts were at full-strength for the clash against Ljubinko Drulovic's side.
They were restrained for large spells, however, and coach Luiz Felipe Scolari will be aware improvement is required despite Fred's well-taken winner.
Brazil's victory may do little to fill an expectant nation with great confidence. However, with Neymar getting almost 80 minutes of action on his road to full fitness and Fred scoring his first in Brazil colours since the Confederations Cup, there are reasons for the hosts to be optimistic.
After a lively opening from both sides, Aleksandar Kolarov threatened first when he struck an effort wide of Julio Cesar's left-hand post after nine minutes.
Neymar then almost benefited from a block that fortuitously landed in his path - only for Ivanovic to produce a well-timed last-ditch tackle.
A combination of tenacious and robust defending helped keep Brazil's forwards well shackled, although Fred was next to threaten - his dipping strike veering off target 24 minutes in.
David Luiz was forced into a hurried clearance following Kolarov's fierce delivery before Aleksandar Mitrovic wasted the best chance of the half, heading wide with the goal at his mercy.
Luiz and Thiago Silva, who will team up at Paris Saint-Germain from next season, then got mixed up close to half-time, but an offside flag rescued Brazil as Lazar Markovic converted.
Scolari swapped Oscar for Willian at the break, presumably in an effort to shake things up, but Brazil still looked somewhat out of sorts.
Indeed, Dusan Tadic perhaps could have opened the scoring for Serbia had he gambled on reaching a cross lofted into the hosts' box.
Fred subsequently ensured first blood went to Brazil, the striker cleverly chesting Thiago Silva's delivery to take Branislav Ivanovic out of the game and then prodding the ball past Vladimir Stojkovic - despite having stumbled before doing so.
Neymar, lively but far from his dangerous best, then flashed an effort over the crossbar as his side sought to make the scoreline more emphatic.
There were to be no more goals, although Serbia's Milos Jojic and Brazil forward Jo hit the woodwork in the closing stages.
Brazil open their World Cup campaign against Croatia on June 12 and will be hopeful of a more fluent display.
|Coach: Luiz Felipe Scolari|
for Oscar 46'
for Paulinho 65'
for Dani Alves 72'
for Fred 75'
for Marcelo 76'
for Neymar 81'
|Perez blow for Arsenal with striker facing eight weeks out|
|Neymar the victim of a media campaign - Rafinha|
|Cannavaro dreams of Real Madrid job|
|Alonso lauds Klopp for embracing Liverpool culture|
|Barcelona report LaLiga chief Tebas to sports court|
|MLS Review: Late goal from Valdez sees Sounders through, Impact rout DC|
|Saul committed to Simeone and Atletico|
|Ronaldo deserves to win Ballon d´Or - Cannavaro|
|Shaw eager to earn Mourinho´s trust at United|
|Neymar playing for Barca because of Messi, says father|
|Jardim questions Falcao´s stints at United and Chelsea|
|Berardi will get Italy call when system changes - Ventura|
|Lucas Vazquez delighted by ´dream´ Madrid deal|
|Scottish FA chief backs cross-border competition|
|Dortmund need Reus - Aubameyang|
|Lamela eyeing new Spurs deal|
|Tighter Watford matches are a coincidence, says Mazzarri|
|Karanka: We saved Boro from League One|
|Police investigate homophobic leaflet at West Ham|
|Spain could recall Villa, reveals Lopetegui|
|Hughes backs Bony to break Stoke duck|
|Sarri will greet Higuain ´like a son who made him angry´|
|Robben receives Netherlands recall|
|Dyche considering Gray recall for Burnley|
|Zidane was behind one of my best seasons, says Ronaldo|
|Schweinsteiger absent from United squad photo|
|Emery emphasises Thiago Silva´s importance amid Juve links|
|Ferguson: Leicester will make deep Champions League run|
|Ranieri hails ´special´ Ballon d´Or nominations for Vardy and Mahrez|
|Emery: PSG cannot rely solely on Cavani goals|
|Mourinho can match Guardiola, insists Ferguson|
|Ferguson hails Klopp: Liverpool are strong title contenders now|
|Bayern optimistic over Lewandowski renewal|
|Zubizarreta appointment confirmed by Marseille|
|Clichy: Things will click into place for Manchester City|
|Chiellini: Juventus wanted to send a message|
|Gabigol´s time will come - De Boer|
|Ronaldo: Messi and I are not friends - but we respect each other|
|Earthquake halts play in Serie A game between Pescara and Atalanta|
|Mourinho charged over Taylor comments|
|Ronaldo: I need my haters|
|Badstuber hopeful injury woes behind him|
|Kroos did not want to be rested, insists Zidane|
|Rojo was phenomenal - Mourinho|
|Seven arrests made after West Ham - Chelsea fan clashes|
|Florenzi injury blow for Roma|
|MLS Review: Galaxy, Toronto into semis|
|Beister: Victory move surprised people|
|Bilic: Cup run will help in Premier League|
|Pjaca out for up to three weeks|
|Trophies still the focus for Guardiola|
|Mignolet wants ´fair´ Karius battle|
|Ancelotti impressed by motivated Bayern|
|West Ham ´unreservedly condemn´ crowd trouble|
|Allegri praises strike duo after win over Sampdoria|
|De Boer praises two-goal Icardi after vital win|
|Chelsea were ´unlucky´ with missed chances, insists Conte|
|Mourinho: I´ve never had fans like these|
|Nacho´s goal better than my Champions League final volley - Zidane|
|Borussia Dortmund 1 Union Berlin 1 (aet, 3-0 pens): Weidenfeller shootout heroics seal progress|
|Bilic: Crowd trouble distracts from great West Ham win|
|Kompany told me he couldn´t play anymore - Guardiola|
|Liverpool and Manchester United handed home quarter-finals|
|Inter 2 Torino 1: Icardi double alleviates pressure on De Boer|
|Manchester United 1 Manchester City 0: Mata extends Guardiola´s winless run|
|West Ham 2 Chelsea 1: Crowd trouble tarnishes Hammers´ route to quarter-finals|
|Cultural Leonesa 1 Real Madrid 7: Morata and Asensio star in BBC´s absence|
|Bayern Munich 3 Augsburg 1: Green´s first goal sends holders through|
|Juventus 4 Sampdoria 1: Rapid start sets champions on their way|
|Crafty Suarez is world´s best striker - Godin|
|Mancini: Balotelli has wasted years but can bounce back|
|Rami rejected ´risky´ PSG move|
|Neymar would have cost PSG €430m, claims father|
|Sacchi warns Bayern players over Ancelotti temper|
|Valencia ´pleased´ with RFEF bottle ruling|
|Mourinho apologises to Utd fans for Chelsea thrashing|
|Barcelona lash out at ´totally reprehensible´ RFEF comments|
|Jacob leaves Marseille amid rumours of Zubizarreta appointment|
|Lavezzi added to Argentina squad as Dybala drops out|
|Del Bosque: Mourinho had a point on Conte|
|N´Zonzi in talks over Sevilla extension|
|Allardyce successor ´will not be a mercenary´ - Glenn|
|Aubameyang like a rocket, Lewandowski perfect - Riedle|
|RFEF fines Valencia, warns Barca over bottle incident|
|Wenger tells Iwobi to improve his finishing|
|Barcelona without Mathieu for three weeks|
|Kimmich draws inspiration from Xavi|
|Vazquez signs new Madrid deal|
|Higuain the best striker in the world - Nedved|
|Wolfsburg regret De Bruyne, Perisic sales|
|Parejo slams Neymar for ´inciting´ Valencia fans|
|Gundogan predicts ´very lively´ Manchester derby|
|Luis Enrique satisfied with Supercopa workout|
|Messi could join Newell´s after World Cup - Maxi Rodriguez|
|Ibrahimovic wants United to be the boss of City|
|Schmidt on the bus as Lotte book ticket for next round|
|Pogba still adapting to Premier League, says Mourinho|
|Southgate hails influence of demoted Rooney|
|Lille ready to heap more pressure on PSG as Corchia dreams big|
|I´m among top 20 LaLiga coaches, jokes Luis Enrique|
|Brattan earns Socceroos call-up|
|Pochettino pleased with Janssen|
|Klopp never questioned Sturridge quality|
|Barcelona downed by Espanyol in Supercopa|
|Heavy Milan defeat ´just a bump in the road´ - Montella|
|Pochettino wanted Liverpool debutant sent off|
|Klopp happy to entertain as Liverpool youngsters earn their spurs|
|Leverkusen dumped out by 10-man minnows|