If rear glass is replaced on Z5 premium is warranty still valid
Making any kind of replacement/repair on your phone will void the warranty.