Managed to get android id.All other unique identification methods dont work in emulator.Changed the emulator to genymotion(fuck you adt)