I was reading this article about task hijacking on Android: https://blog.dixitaditya.com/android-task-hijacking/
I tried the recommend fix but can still reproduce the issue. I also tried specifying package names of Instagram, Gmail app as android:taskAffinity value in the malicious app's Android Manifest and it redirected me to malicious app after clicking Instagram, Gmail. So, how come Gmail and Instagram is vulnerable to this or am i mistaking somewhere?
Is there a proper fix for this issue on Android?