Not ‘City of God’.
I recall a kid was on the beach the majority of the time and made friends with a teen who may have lived or had a hideout in an upturned boat and dug into sand.
I believe tins of cannabis washed up on the beach.
That’s about it. Have looked for this film for 10+ years, and not sure what the production date was.