It's a hybrid Vordova based app. Trying to click a picture and show a thumbnail. It works on most devices, but this particular model of Samsung A03 does not work. Did multiple software updates and have reached the latest Android 13 and it still doesn't work.
In adb logcat below error is present. In chrome inspect it simply says No Image Selected.
MediaProvider: java.lang.IllegalArgumentException: Primary directory null not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
I have seen many answers related to changes in Android 11/12/13 permission set ups. However, it works fine on many other Android 10/11/12/13 devices.
Any idea what this could be?
Tried to add the permissions for READ_MEDIA_IMAGES in the Android Manifest XML file. This did not help. The app targets SDK 32 and min SDK 22 as required by Google. This issue is in the new build target SDK 32 and with updated plugins.
With the old builds targeting Android 28,29, the app is working fine on this device.