From 287a9a4523baf0e52497e6cb216cfb36fd23c80c Mon Sep 17 00:00:00 2001 From: MrPiglr Date: Thu, 12 Feb 2026 12:46:46 -0700 Subject: [PATCH] fix(webview): use test_script_head.html to isolate script in head --- .../main/assets/public/test_script_head.html | 33 +++++++++++++++++++ .../main/java/com/aethex/os/MainActivity.java | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 android/app/src/main/assets/public/test_script_head.html diff --git a/android/app/src/main/assets/public/test_script_head.html b/android/app/src/main/assets/public/test_script_head.html new file mode 100644 index 0000000..24cfbb4 --- /dev/null +++ b/android/app/src/main/assets/public/test_script_head.html @@ -0,0 +1,33 @@ + + + + + Test Script Head + + + + +
+

TEST SCRIPT HEAD LOADED (Orange)

+

If you see this, script in HEAD is safe.

+
+ + + \ No newline at end of file diff --git a/android/app/src/main/java/com/aethex/os/MainActivity.java b/android/app/src/main/java/com/aethex/os/MainActivity.java index 56e64a7..946fcb4 100644 --- a/android/app/src/main/java/com/aethex/os/MainActivity.java +++ b/android/app/src/main/java/com/aethex/os/MainActivity.java @@ -70,6 +70,6 @@ public class MainActivity extends BridgeActivity { // SWITCH TO REAL APP // Using "file:///android_asset/public/" base path which matches the physical structure // AND ensuring we load index.html - webView.loadUrl("file:///android_asset/public/test_red.html"); + webView.loadUrl("file:///android_asset/public/test_script_head.html"); } }