[GH-ISSUE #6071] [Issue]: Android APK repeatedly redirects to new startup instances instead of launching the browser wrapper #3365

Closed
opened 2026-10-21 06:02:21 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6071

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Android, Marinara Engine does not consistently launch the browser wrapper as described by the APK guide. After configuring Termux with allow-external-apps enabled, pressing Start redirects to a new startup instance, while the wrapper option disappears and the app starts inside the APK after restarting.

Expected behavior

Pressing Start should reliably launch the existing browser wrapper and allow normal file import/export without manually entering code or a secret phrase.

Actual behavior

The app initially redirected to Termux and failed until allow-external-apps was enabled. It then redirected to a new startup instance on every Start press; a previously successful browser link stopped working, the wrapper option disappeared, and restarting Marinara Engine caused it to start inside the app instead.

Steps to reproduce

  1. Follow the Android APK guide.
  2. Launch Marinara Engine and observe that it redirects to Termux; enable allow-external-apps as required.
  3. Press Start in Marinara Engine.
  4. Observe that it redirects to a new startup instance instead of reliably opening the browser wrapper.
  5. Restart only the Marinara Engine app and observe that it starts inside the app and the wrapper option is no longer available.

Environment

  • Marinara Engine version: Not provided
  • Install type: installer
  • OS + version: Android; version not provided
  • Browser or app shell: Marinara Engine Android APK, Termux, and Chrome

Logs, screenshots, or video

Two screenshots were attached: Termux startup output (https://cdn.discordapp.com/attachments/1547712851374772234/1547712851664183356/Screenshot_20260911_044656_Termux.jpg?ex=6aa5bcea&is=6aa46b6a&hm=b35f31cc837fb133c32b4ef8c9c08c9f55a72a7d2c132e30dc1746166cc9e97a&) and Chrome behavior (https://cdn.discordapp.com/attachments/1547712851374772234/1547712852180074588/Screenshot_20260911_044813_Chrome.jpg?ex=6aa5bceb&is=6aa46b6b&hm=a8a11c719e281502bdc7f4b4da705375f3790091ad0fc49339567c07c13e820e&). No support diagnostics were provided.

Additional context

The user reported being able to test cards and lorebooks once before the wrapper stopped launching. They want to use Marinara Engine on Android and avoid manually entering code or a secret phrase, as well as avoid moving usage to PC. The APK guide required allow-external-apps to be enabled.

Discord thread: The Android APK is not User-Friendly
Discord thread link: https://discord.com/channels/1417099416812392641/1547712851374772234
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-09-10T20:58:18.882Z] KwinShii: I followed the entire APK Guide word by word, suffered several hours of the app itself redirecting to Termux only to fail because allow-external-apps wasn't set to true which I finally did fix.

But now it just redirects to a new start up instance every time I click start in the Marinara Engine, as is shown in Photo 1. Photo 2 was me trying to see if trying the previous link (when it launched successfully on browser **once**) would work (defeating the purpose of this all being automated if I have to do everything by **hand**) only for it to now show what Photo 2 is showing.

Unlike earlier when I was able to at least test my card and lorebook for rp (which has hundreds of issues I have yet to get to because of this first issue), i can't even get the app to launch the wrapper version as before, the option is completely gone. 

Upon restarting just the ME app, it now reloads and has the thing start thete, when my entire frustration for several hours was to **avoid having it on the app so I can import/export files completely)**.

No. I will not and never consider manually inputting any code or "secret phrase" just to get it on browser each time I need to use ME as the solution.

I am not moving all of my usage of it to PC either, it defeats the purpose of me doing it relaxed on the bed and not needing to be at my PC also, thanks.

[attached image 1: https://cdn.discordapp.com/attachments/1547712851374772234/1547712851664183356/Screenshot_20260911_044656_Termux.jpg?ex=6aa5bcea&is=6aa46b6a&hm=b35f31cc837fb133c32b4ef8c9c08c9f55a72a7d2c132e30dc1746166cc9e97a&]
[attached image 2: https://cdn.discordapp.com/attachments/1547712851374772234/1547712852180074588/Screenshot_20260911_044813_Chrome.jpg?ex=6aa5bceb&is=6aa46b6b&hm=a8a11c719e281502bdc7f4b4da705375f3790091ad0fc49339567c07c13e820e&]
[Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1547712851374772234]

[2026-09-10T20:58:19.840Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1547712855393046608]

[2026-09-11T19:01:49.109Z] Marinara: The Android APK is user hostile.
[Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1548045922007519353]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6071 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Android, Marinara Engine does not consistently launch the browser wrapper as described by the APK guide. After configuring Termux with allow-external-apps enabled, pressing Start redirects to a new startup instance, while the wrapper option disappears and the app starts inside the APK after restarting. ## Expected behavior Pressing Start should reliably launch the existing browser wrapper and allow normal file import/export without manually entering code or a secret phrase. ## Actual behavior The app initially redirected to Termux and failed until allow-external-apps was enabled. It then redirected to a new startup instance on every Start press; a previously successful browser link stopped working, the wrapper option disappeared, and restarting Marinara Engine caused it to start inside the app instead. ## Steps to reproduce 1. Follow the Android APK guide. 2. Launch Marinara Engine and observe that it redirects to Termux; enable allow-external-apps as required. 3. Press Start in Marinara Engine. 4. Observe that it redirects to a new startup instance instead of reliably opening the browser wrapper. 5. Restart only the Marinara Engine app and observe that it starts inside the app and the wrapper option is no longer available. ## Environment - Marinara Engine version: Not provided - Install type: installer - OS + version: Android; version not provided - Browser or app shell: Marinara Engine Android APK, Termux, and Chrome ## Logs, screenshots, or video Two screenshots were attached: Termux startup output (https://cdn.discordapp.com/attachments/1547712851374772234/1547712851664183356/Screenshot_20260911_044656_Termux.jpg?ex=6aa5bcea&is=6aa46b6a&hm=b35f31cc837fb133c32b4ef8c9c08c9f55a72a7d2c132e30dc1746166cc9e97a&) and Chrome behavior (https://cdn.discordapp.com/attachments/1547712851374772234/1547712852180074588/Screenshot_20260911_044813_Chrome.jpg?ex=6aa5bceb&is=6aa46b6b&hm=a8a11c719e281502bdc7f4b4da705375f3790091ad0fc49339567c07c13e820e&). No support diagnostics were provided. ## Additional context The user reported being able to test cards and lorebooks once before the wrapper stopped launching. They want to use Marinara Engine on Android and avoid manually entering code or a secret phrase, as well as avoid moving usage to PC. The APK guide required allow-external-apps to be enabled. Discord thread: The Android APK is not User-Friendly Discord thread link: https://discord.com/channels/1417099416812392641/1547712851374772234 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-09-10T20:58:18.882Z] KwinShii: I followed the entire APK Guide word by word, suffered several hours of the app itself redirecting to Termux only to fail because allow-external-apps wasn't set to true which I finally did fix. But now it just redirects to a new start up instance every time I click start in the Marinara Engine, as is shown in Photo 1. Photo 2 was me trying to see if trying the previous link (when it launched successfully on browser **once**) would work (defeating the purpose of this all being automated if I have to do everything by **hand**) only for it to now show what Photo 2 is showing. Unlike earlier when I was able to at least test my card and lorebook for rp (which has hundreds of issues I have yet to get to because of this first issue), i can't even get the app to launch the wrapper version as before, the option is completely gone. Upon restarting just the ME app, it now reloads and has the thing start thete, when my entire frustration for several hours was to **avoid having it on the app so I can import/export files completely)**. No. I will not and never consider manually inputting any code or "secret phrase" just to get it on browser each time I need to use ME as the solution. I am not moving all of my usage of it to PC either, it defeats the purpose of me doing it relaxed on the bed and not needing to be at my PC also, thanks. [attached image 1: https://cdn.discordapp.com/attachments/1547712851374772234/1547712851664183356/Screenshot_20260911_044656_Termux.jpg?ex=6aa5bcea&is=6aa46b6a&hm=b35f31cc837fb133c32b4ef8c9c08c9f55a72a7d2c132e30dc1746166cc9e97a&] [attached image 2: https://cdn.discordapp.com/attachments/1547712851374772234/1547712852180074588/Screenshot_20260911_044813_Chrome.jpg?ex=6aa5bceb&is=6aa46b6b&hm=a8a11c719e281502bdc7f4b4da705375f3790091ad0fc49339567c07c13e820e&] [Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1547712851374772234] [2026-09-10T20:58:19.840Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1547712855393046608] [2026-09-11T19:01:49.109Z] Marinara: The Android APK is user hostile. [Discord message: https://discord.com/channels/1417099416812392641/1547712851374772234/1548045922007519353] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:02:21 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.

<!-- gh-comment-id:5644874892 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Fixed in #6072, merged into staging.

Android now remembers app/browser launch, signs browser entry in automatically with an expiring one-use ticket, and checks for an authenticated running server before starting Termux again. The launcher is accessible from APK settings. Both the updated Engine and a rebuilt APK are required. Debug APK compilation and Chromium/WebKit authentication checks passed; physical-device permission/start/import-export verification remains a manual check.

<!-- gh-comment-id:5645730630 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Fixed in #6072, merged into `staging`. Android now remembers app/browser launch, signs browser entry in automatically with an expiring one-use ticket, and checks for an authenticated running server before starting Termux again. The launcher is accessible from APK settings. Both the updated Engine and a rebuilt APK are required. Debug APK compilation and Chromium/WebKit authentication checks passed; physical-device permission/start/import-export verification remains a manual check.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3365
No description provided.