I have been looking at your replies at this thread, and I think you are confusing legality with ethics (at least in the nature of the law and visa regulations).
I am sure it is perfectly legal to work on something for your brother, while he earns the money off the product/app/website.