sorry. I believe that this cannot be done with out asking user permission also google rules changed a lot
But I want to ask permission from the user to do and there are many apps on google play store which can perform this function so I don’t think it’s illegal if you take permission from the user.