2025-03-01 16:49:27 +01:00
|
|
|
package android.webkit;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
|
|
|
|
|
class ValueCallback {}
|
|
|
|
|
|
|
|
|
|
public class CookieManager {
|
|
|
|
|
|
|
|
|
|
public static CookieManager getInstance() {
|
|
|
|
|
// HACK: disable NewPipe's WebView based PoToken generator for now
|
|
|
|
|
if (Context.this_application.getPackageName().equals("org.schabi.newpipe")) {
|
|
|
|
|
throw new RuntimeException("CookieManager not yet fully implemented");
|
|
|
|
|
}
|
2025-04-09 12:37:04 +02:00
|
|
|
try { // also handle NewPipe forks which can have a different packagename
|
|
|
|
|
Class.forName("org.schabi.newpipe.util.potoken.PoTokenWebView");
|
|
|
|
|
throw new RuntimeException("CookieManager not yet fully implemented");
|
|
|
|
|
} catch (ClassNotFoundException e) {}
|
2025-03-01 16:49:27 +01:00
|
|
|
return new CookieManager();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void removeAllCookies(ValueCallback callback) {}
|
|
|
|
|
|
|
|
|
|
public void removeSessionCookies(ValueCallback callback) {}
|
|
|
|
|
|
|
|
|
|
public void flush() {}
|
|
|
|
|
}
|