add APIs needed for non legacy NewPipe version

This commit is contained in:
Julian Winkler
2023-09-12 23:18:47 +02:00
parent 399cf87254
commit f5fc993484
78 changed files with 2458 additions and 147 deletions

View File

@@ -1,6 +1,9 @@
package android.net;
public class ConnectivityManager {
public class NetworkCallback {}
public NetworkInfo getNetworkInfo(int networkType) {
return null; // this means the network type is not supported, which should make properly coded apps cease any attempts to use network-related APIs
}

View File

@@ -145,6 +145,10 @@ public class Uri {
}
}
public String getScheme() {
return uri.getScheme();
}
@Override
public String toString() {
return String.valueOf(uri);

View File

@@ -0,0 +1,8 @@
package android.net.http;
import javax.net.ssl.X509TrustManager;
public class X509TrustManagerExtensions {
public X509TrustManagerExtensions(X509TrustManager tm) {}
}

View File

@@ -0,0 +1,4 @@
package android.net.nsd;
public class NsdManager {
}