As far as Android is concerned the package name uniquely identifies the app. You can therefore have multiple copies of the same app installed with different package names. Each will be regarded by Android as a different app and they will not be able to access each other's private data areas. You cannot detect or prevent this.