add more Java APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-08-05 17:17:53 +02:00
parent 6c2585ab4b
commit 3e7fdac663
21 changed files with 184 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package android.webkit;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
// the only reason we need to implement this is that some app developers are such scumbags that they try to use this for tracking purposes
@@ -9,6 +10,10 @@ public class WebView extends View {
super(context);
}
public WebView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public WebSettings getSettings() {
return new WebSettings();
}
@@ -32,4 +37,8 @@ public class WebView extends View {
public void loadUrl(String url) {}
public void stopLoading() {}
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
System.out.println("loadDataWithBaseURL(" + baseUrl + ", " + data + ", " + mimeType + ", " + encoding + ", " + historyUrl + ") called");
}
}