In companion it returns the command correctly. I am having this result in an APK. But I have an idea about where the error is. I'm going to try again and tell you my results.
The problem is when I uninstall the APK on device with Android 13, it's not deleting the SQLite database... so when I install again, the app does not recreate SQLite tables and the error appears when I try to insert a record... Where do I see these files on the device with Android 13? It is a Samsung Galaxy A22...
And I'm going to test with another device with Android 13.
Well I saw the problem. In Android 13 when I uninstall the app, all cache is not deleted, so I have to do this as soon as the app is installed in the device. Problem solved.