This is theoretically legit but not doable under practical conditions. You would need a very fast dash and assume they don't have to make you clear immigrations. I have seen transfer signs in PVG but never actually seen a counter so cannot comment on the presence of one.
When at HKG, your check in can be tagged to HND
And 368 and 367 are on the same rotation.