Add missing permissions and imports. Also fix reply->response intent extra data.