Hi Ranjit,
No, you cannot restore flash from an Aruba switch to HP (HPE now). Different switch vendors have different code versions so flash's are incompatible. Just FYI, Aruba and HPE are one company now.
Thanks,
Jay
Aruba, A Hewlett Packard Enterprise Company