How does an app detect a device even after re-installation?(Device is Rooted)