Grodu Though this would be quite disruptive, you could build GrapheneOS (a userdebug build), wipe your device and flash the userdebug build, and, I expect, capture the data that way.
Or maybe pick up a used 6a on eBay to use as a development device (until support ends, which is somewhat soon).