[android][gradle] packaging headers in aars for publishing (#40392)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40392
Test Plan: Imported from OSS
Differential Revision: D22167757
Pulled By: IvanKobzarev
fbshipit-source-id: 363319c64933382c0b0ddce65624fe5a4602da26