Android Build can not be load custom.txt #142

Open
opened 2025-10-14 16:23:03 +08:00 by p0we7 · 1 comment
p0we7 commented 2025-10-14 16:23:03 +08:00 (Migrated from github.com)

I have recently been testing a self‑hosted rdgen service. I tried building an Android client, but found that after installing the APK it cannot correctly load custom.txt.

As shown in the screenshot, I checked the compilation status by loading vscode‑server in the workflow, and custom.txt is already included in Flutter’s assets folder.

Image

How should I continue debugging? For more information, my Android phone runs LineageOS 22, does not have root access, but does have ADB access.


Additionally, I discovered the code at line 1543 in common.rs; it only loads custom.txt when debug_assertions is enabled. Could this be the reason why loading custom.txt fails?

2fbc0625de/src/common.rs (L1543)

I have recently been testing a self‑hosted rdgen service. I tried building an Android client, but found that after installing the APK it cannot correctly load `custom.txt`. As shown in the screenshot, I checked the compilation status by loading vscode‑server in the workflow, and `custom.txt` is already included in Flutter’s assets folder. <img width="556" height="439" alt="Image" src="https://github.com/user-attachments/assets/0932f038-e726-499f-b4a3-f1ff37cd1501" /> How should I continue debugging? For more information, my Android phone runs LineageOS 22, does not have root access, but does have ADB access. ---- Additionally, I discovered the code at line 1543 in common.rs; it only loads custom.txt when `debug_assertions` is enabled. Could this be the reason why loading custom.txt fails? https://github.com/rustdesk/rustdesk/blob/2fbc0625de22527b2fe7f51709f4673ab4b4b029/src/common.rs#L1543
VenimK commented 2025-10-19 22:05:46 +08:00 (Migrated from github.com)

Trying out some stuff fot that

https://github.com/VenimK/creator

Trying out some stuff fot that https://github.com/VenimK/creator
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#142