Fix wifi connection and add autogrant for permissions to make geoloc work