From 64f72c68ebc9daa84b1b46f24fb4b0b07c0506e8 Mon Sep 17 00:00:00 2001 From: lollilol <38194372+lollilol@users.noreply.github.com> Date: Tue, 7 May 2024 00:48:04 +0200 Subject: [PATCH] mount /sdcard/ android apps without root access can only access /sdcard/ --- src/service/plugins/sftp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/plugins/sftp.js b/src/service/plugins/sftp.js index 2789ff36d..b9b869ffb 100644 --- a/src/service/plugins/sftp.js +++ b/src/service/plugins/sftp.js @@ -222,7 +222,7 @@ const SFTPPlugin = GObject.registerClass({ // This is the actual call to mount the device const host = this.device.channel.host; - const uri = `sftp://${host}:${packet.body.port}/`; + const uri = `sftp://${host}:${packet.body.port}/sdcard/`; const file = Gio.File.new_for_uri(uri); await file.mount_enclosing_volume(GLib.PRIORITY_DEFAULT, op,