I was creating a very basic app, which gets Android Device Id with getDeviceId() function of Telephony Manager. After some research I got to know I need to ask for Permissio