There are ways of maximizing your'e phones ram by removing bloatware, flashing low memory usage roms etc. but as far as physically upgrading the devices ram would involve taking apart the internals of the phone and replacing parts which in all honesty would probably brick your phone