This isn’t a “step forward in user privacy” or whatever the others here are saying. It’s a mess and very poorly executed UX. Users will tend to feel overwhelmed and just click through modals when they are presented in this way. Displaying stacks of modals is an anti-pattern. The right thing to do would have been to create a migration UX that allows quick review and audit of application permissions, presented in a tab…
So there is no database of applications that need access to read/write Documents or Pictures.
So a UI like you are suggesting is not technically possible to create.