PRAGMA cipher_migrate problem

PRAGMA cipher_migrate fails for Android Pie only. I see that the return value is 1 (inspected via cursor.getSTring(0), but I don’t know how to get additional information as to why the error is occurring.

How can I do that? Is the only way to run the pragma from the CLI using the community command line shell?