Add ConnectivityManager with connectionType property and PackageManager to know if application has permission
Update qmltypes