You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My name is Alejandro Mazuera-Rozo, I am a PhD Student at Universidad de los Andes, and at Università della Svizzera italiana. I am part of a research on the usage of network libraries within android apps. As a result of this we identified that there is a missing validation of network connection within a method since some network operations are being performed in it.
As you might know, a device may not be connected to a network. In order to get such information see https://developer.android.com/reference/android/net/ConnectivityManager. Therefore it is recommended to identify whether the device has a network connection available before performing a network operation.
In order to address this issue we recommend you to visit:
Note: public NetworkInfo getActiveNetworkInfo () returns details about the currently active default data network. When connected, this network is the default route for outgoing connections. You should always check NetworkInfo#isConnected() before initiating network traffic, it requires Manifest.permission.ACCESS_NETWORK_STATE. However, isConnected() was deprecated in API level 29, one could instead use the ConnectivityManager.NetworkCallback API to learn about connectivity changes, to be more specific the onAvailable() method.
Potential Code Location not verifying network connection before performing a network request:
Dear Developer!
My name is Alejandro Mazuera-Rozo, I am a PhD Student at Universidad de los Andes, and at Università della Svizzera italiana. I am part of a research on the usage of network libraries within android apps. As a result of this we identified that there is a missing validation of network connection within a method since some network operations are being performed in it.
As you might know, a device may not be connected to a network. In order to get such information see https://developer.android.com/reference/android/net/ConnectivityManager. Therefore it is recommended to identify whether the device has a network connection available before performing a network operation.
In order to address this issue we recommend you to visit:
Note:
public NetworkInfo getActiveNetworkInfo ()
returns details about the currently active default data network. When connected, this network is the default route for outgoing connections. You should always checkNetworkInfo#isConnected()
before initiating network traffic, it requiresManifest.permission.ACCESS_NETWORK_STATE
. However,isConnected()
was deprecated inAPI level 29
, one could instead use theConnectivityManager.NetworkCallback
API to learn about connectivity changes, to be more specific theonAvailable()
method.Potential Code Location not verifying network connection before performing a network request:
hacs/app/src/main/kotlin/io/mainframe/hacs/cashbox/BaseCashboxTask.kt
Lines 46 to 73 in c92d4c7
The text was updated successfully, but these errors were encountered: