The match was arranged to raise money for the family of Kevin Spada, a 14-year-old who was killed by a projectile during a Copa Libertadores match between Bolivian side San Jose and Brazil's Corinthians.
The players stood with a large banner carrying the slogan "A match for peace and friendship in stadiums" before kick-off.
Leandro Damiao put Brazil ahead after three minutes with a sharp finish and Neymar made it 3-0 by the interval, scoring his first after smartly linking up with Ronaldinho to clip the ball home and his second from a low cross delivered from the right by Jadson.
Substitute Leandro fired Brazil's fourth goal in the second half after an intricate build-up.
The teams were made up of home-based players, with overseas stars unavailable.