Merge "relocate applypatch; check patch integrity"