You know that one dot at the end of a sentence is enough?
You don't upload source files to the device (at least it had no practical use) but compiled binaries.
You need a rooted phone.
you have more chance to find a propriate answer.
I guess you can do it with the nandroid feature option from some custom bootloader.
Are you sure you know what you are doing and know how to fix things you mess up and you don't mind you lose your warranty?