For a particular Mobile App, I am trying to understand the client-side code of an apk by decompiling the apk using Jadx-GUI. While I was going through the code, I found out interesting code snippet (shown in the image). Signature of the existing app is being compared with that of the app named "Android".
I observed this type of comparison in more than one app. I fetched the certificate details and found out that they both are different and the certificates are self-signed (they are not using Google Play Signing)
So, my question is Why are the developers comparing the signature of two different apps? Under what scenarios is this type of signature verification useful?