api-impl: stubs and fixes for latest WhatsApp version

This commit is contained in:
Pierre-Hugues Husson
2024-10-28 19:06:17 +01:00
committed by Julian Winkler
parent 09a38f9a28
commit c81442321e
35 changed files with 261 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
package android.net;
class Network {}
import android.os.Handler;
public class ConnectivityManager {
@@ -26,4 +26,11 @@ public class ConnectivityManager {
public NetworkInfo[] getAllNetworkInfo() {
return new NetworkInfo[] { getActiveNetworkInfo() };
}
public Network getActiveNetwork() {
return new Network();
}
public void registerDefaultNetworkCallback(NetworkCallback cb, Handler hdl) {}
}