As per the documentation, they say
This interface is deprecated. the feature is now obsolete. Installs with missing splits are now blocked on devices which have Play Protect active or run on Android 10.
But what about the device which don't have Play Protect active and which are not android 10? This shitty documentation also don't clearly mention is it just android 10 or android 10 and higher versions. Because i tested on android 12 and it didn't block anything as they say.
I need this below code to prevent from crashing, and it does work but the methods are deprecated. (ps: below pic is old but the code is same)