I have two apps, say App A and App B, App A call tries to invoke a service in App B using intent, I don't want to allow App A if it does not belong to a certain list of allowed app names, is there a way to find out the name of the app which is calling my service in App B.
PS: I am using AIDL bound service to communicate between the two apps, App A has an activity that calls upon service in App B, getReferrer() is not available in service, I have checked with API level 22 also.