Add function to upload and modify manifest

Change-Id: I0388218e1d04c98ef5dd6052b38a1fd6f7cdb30c