Let's clear this one up: the button-mashing sequence that gets passed around — press Start, then A, A, A, B, and flip your Game Boy's power switch at high speed — is a playground legend. It does nothing.
HeartGold and SoulSilver give you a very limited supply of Master Balls through normal play, and that's by design. If you want more, the legitimate routes are trading with another player who has a spare, or using the event distributions Nintendo occasionally ran.
For the rest of your catching needs, Ultra Balls with a status condition and low HP do most of the work a Master Ball would.