Skip to content

Bug Report: FileUtilSandboxed.SanitizePath method always fails on android targets #7160

@main-thing

Description

@main-thing

Issue Checklist

  • I have read the Contributing Guide
  • I have checked the Issues/Discussions pages to see if my issue has already been reported
  • I have properly titled my issue
  • I did not have any mods installed when I encountered this issue

Platform

Android

Browser

None

Mobile Device Model

Xiaomi Redmi 12

Mobile OS Version

Android 15

Version

0.8.3

Description (include any images, videos, errors, or crash logs)

FileUtilSandboxed.sanitizePath() method always returns "/system/bin" on android targets.

Due to this bug, all methods which call sanitizePath() in FileUtilSandboxed fail to function properly on android targets.

Steps to Reproduce

  1. create a .hxc file in any mod dir with the following content:
import funkin.modding.module.Module;
import funkin.util.FileUtilSandboxed;
import funkin.util.WindowUtil;

class BugShowcase extends Module
{
	function onCreate(event:onCreateScriptEvent):Void
    {
        super.onCreate(event);
		WindowUtil.showInformation('INFO', FileUtilSandboxed.sanitizePath("week1:week-12-leak.jpg"));
	}
}
  1. Launch Friday Night Funkin'
  2. Observe incorrect path returned via a dialog box on boot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions