I’m developing a system privileged app (installed under /system/priv-app) and I need to display a webpage inside the app UI.
However, when I try to use a WebView, the app crashes with:
java.lang.UnsupportedOperationException: For security reasons, WebView is not allowed in privileged processes
From what I understand, Android blocks WebView usage in privileged/system apps due to security restrictions.
My questions:
Is there any safe or approved alternative to display web content inside a system privileged app?
Is there any documented workaround, such as:
Are there any official guidelines from Google regarding how system/priv apps should display web pages?
I only need to show a simple URL (payment page), not run heavy web logic.
Any recommended approach or architectural pattern would be really helpful.
Thanks!