• Re: Mapping a folder in a device to a drive

    From Paul@21:1/5 to Mr. Man-wai Chang on Fri Sep 20 04:49:13 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Fri, 9/20/2024 12:49 AM, Mr. Man-wai Chang wrote:
    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    This sounds like a Google problem. Why not phone
    them up and ask ? :-)

    You're using a USB cable, MTP protocol, and now
    expect SUBST to work.

    (You used an Android dialog to enable MTP access)

    And on your screen, it looks like this.

    https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2014/07/mtp-device-in-windows-explorer-on-windows-8.png?q=50&fit=crop&w=750&dpr=1.5

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From knuttle@21:1/5 to Paul on Fri Sep 20 07:44:20 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On 09/20/2024 4:49 AM, Paul wrote:
    On Fri, 9/20/2024 12:49 AM, Mr. Man-wai Chang wrote:
    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    This sounds like a Google problem. Why not phone
    them up and ask ? :-)

    You're using a USB cable, MTP protocol, and now
    expect SUBST to work.

    (You used an Android dialog to enable MTP access)

    And on your screen, it looks like this.

    https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2014/07/mtp-device-in-windows-explorer-on-windows-8.png?q=50&fit=crop&w=750&dpr=1.5

    Paul

    In the native File Explorer screen; Click the This PC, and then the
    Computer Tab. In the Computer Tab, click Map Network Drive, Map
    Network Drive.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From knuttle@21:1/5 to Mr. Man-wai Chang on Fri Sep 20 15:55:03 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On 09/20/2024 12:52 PM, Mr. Man-wai Chang wrote:
    On 20/9/2024 4:49 pm, Paul wrote:

    This sounds like a Google problem. Why not phone
    them up and ask ? :-)


    I tried, but failed! :)

    You're using a USB cable, MTP protocol, and now
    expect SUBST to work.

    (You used an Android dialog to enable MTP access)

    Seemed that it's deprecated? USB Mass Storage???

    I think I saw "PTP" in USB mode of the Android phone...

    usb - Drive letter for MTP connection under Windows - Android
    Enthusiasts Stack Exchange <https://android.stackexchange.com/questions/22979/drive-letter-for-mtp- connection-under-windows>
    This is from Google. I thought you were talking about a LAN drive, it
    you are connected through USB, or other.

    Setting Drive Letter

    Right click Start and then choose Disk Management.
    Login as Administrator.
    Look at drives in the lower pane.
    Right-click the drive that is in conflict.
    Choose Change Drive Letter and Paths.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Mr. Man-wai Chang on Fri Sep 20 20:15:53 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Mr. Man-wai Chang wrote on Fri, 20 Sep 2024 12:49:33 +0800 :

    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    I mount the entire Android linux file system to Windows as a drive every
    day - but - I don't use the Windows SUBST command to do that linux mount.
    https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg

    This is what I use every day on Windows 10(via a batch script, of course):
    net use I: \\192.168.0.2@8000\DavWWWRoot /USER:foo bar
    net use X: \\192.168.0.2@9000\DavWWWRoot
    Which is nicely summarized for you in this set of my own screenshots.
    <https://i.postimg.cc/1zrmSmQc/davroot.jpg>

    I add a few Win10 tricks to make external sd card syspath easier since you often use the Android linux command line to operate Android over Windows.
    <https://i.postimg.cc/W3V7D7xc/webdav.jpg>

    And, of course, I set the USB (or Wi-Fi) file transfer for the connection.
    <https://i.postimg.cc/JnDTWH9M/usb01.jpg>

    Here are just some representative examples of how Android === Windows/Linux
    <https://i.postimg.cc/6371SxNd/mountandroidonwindows.jpg> Android mounted
    <https://i.postimg.cc/k5F8sLbc/filesys01.jpg> Starting WebDAV servers
    <https://i.postimg.cc/RZtw6WC2/filesys02.jpg> Mount Android system filesys
    <https://i.postimg.cc/Zngy0SGT/filesys03.jpg> Look at /etc/resolv.conf
    <https://i.postimg.cc/nzFmPTKt/filesys04.jpg> Can use the command line
    <https://i.postimg.cc/PJF1ZZwn/filesys05.jpg> Look at the dnsproxy file
    <https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Both sdcards mounted
    <https://i.postimg.cc/cJLK1wt0/webdav07.jpg> Mount the entire filesystem
    <https://i.postimg.cc/qv6HJ7GN/webdav08.jpg> Each sdcard is a drive letter
    <https://i.postimg.cc/D0qMxTMB/webdav09.jpg> FOSS general purpose solution
    <https://i.postimg.cc/wM4Z45pN/webdav10.jpg> Free Android WebDAV servers
    <https://i.postimg.cc/BQyRxCN9/webdav11.jpg> Mount sdcards read & write
    <https://i.postimg.cc/yYWwgGmy/webdav12.jpg> As Windows drive letters
    <https://i.postimg.cc/QtbR1GY0/webdav13.jpg> Over Wi-Fi on your home LAN
    <https://i.postimg.cc/JhjpnRgh/webdav14.jpg> Mirroring Android on Windows
    <https://i.postimg.cc/gcKXV6F7/webdav16.jpg> A third free WebDAV server

    Once set up correctly, the Android file system is just a drive on Windows.
    <https://i.postimg.cc/hjkVFyqJ/scrcpy07.jpg> Android mnt as drive letter
    Such that you can slide APKs from Windows and they auto-install on Android.
    <https://i.postimg.cc/wvsbcNBz/scrcpy05.jpg> Drag APK from Windows

    The Windows (or Linux) keyboard, mouse, clipboard and sound cards all work perfectly with Android mirrored onto your PC monitor, using FOSS software.
    <https://i.postimg.cc/5NrK7jtg/scrcpy16.jpg> powershell hide-console trick

    One question I have of the linux experts is WHY, without being rooted, when
    I mount the Android internal sdcard onto Windows, I can read most of the Android root filesystem, and write to some of the root filesystem, but not
    all? <https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg>

    What's the difference?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to knuttle on Fri Sep 20 17:22:27 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Fri, 9/20/2024 3:55 PM, knuttle wrote:
    On 09/20/2024 12:52 PM, Mr. Man-wai Chang wrote:
    On 20/9/2024 4:49 pm, Paul wrote:

    This sounds like a Google problem. Why not phone
    them up and ask ? :-)


    I tried, but failed! :)

    You're using a USB cable, MTP protocol, and now
    expect SUBST to work.

    (You used an Android dialog to enable MTP access)

    Seemed that it's deprecated? USB Mass Storage???

    I think I saw "PTP" in USB mode of the Android phone...

    usb - Drive letter for MTP connection under Windows - Android Enthusiasts Stack Exchange
    <https://android.stackexchange.com/questions/22979/drive-letter-for-mtp- connection-under-windows>
    This is from Google.  I thought you were talking about a LAN drive, it you are connected through USB, or other.

    Setting Drive Letter

        Right click Start and then choose Disk Management.
        Login as Administrator.
        Look at drives in the lower pane.
        Right-click the drive that is in conflict.
        Choose Change Drive Letter and Paths.

    Yes. But does that "icon" appear in the place where
    you need it to appear ? Since the item is not a "disk",
    it has no reason to appear in Disk Management.

    I can't take pictures for this one, because I don't own a Smart Phone.
    and my camera uses USB Mass Storage, which is different.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Andrew on Fri Sep 20 18:04:13 2024
    XPost: alt.comp.os.windows-11, comp.mobile.android

    On Fri, 9/20/2024 4:15 PM, Andrew wrote:
    Mr. Man-wai Chang wrote on Fri, 20 Sep 2024 12:49:33 +0800 :

    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    I mount the entire Android linux file system to Windows as a drive every
    day - but - I don't use the Windows SUBST command to do that linux mount. https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg

    This is what I use every day on Windows 10(via a batch script, of course): net use I: \\192.168.0.2@8000\DavWWWRoot /USER:foo bar net use X: \\192.168.0.2@9000\DavWWWRoot Which is nicely summarized for you in this set of my own screenshots.
    <https://i.postimg.cc/1zrmSmQc/davroot.jpg>

    I add a few Win10 tricks to make external sd card syspath easier since you often use the Android linux command line to operate Android over Windows. <https://i.postimg.cc/W3V7D7xc/webdav.jpg>

    And, of course, I set the USB (or Wi-Fi) file transfer for the connection. <https://i.postimg.cc/JnDTWH9M/usb01.jpg>

    Here are just some representative examples of how Android === Windows/Linux <https://i.postimg.cc/6371SxNd/mountandroidonwindows.jpg> Android mounted <https://i.postimg.cc/k5F8sLbc/filesys01.jpg> Starting WebDAV servers <https://i.postimg.cc/RZtw6WC2/filesys02.jpg> Mount Android system filesys <https://i.postimg.cc/Zngy0SGT/filesys03.jpg> Look at /etc/resolv.conf <https://i.postimg.cc/nzFmPTKt/filesys04.jpg> Can use the command line <https://i.postimg.cc/PJF1ZZwn/filesys05.jpg> Look at the dnsproxy file <https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Both sdcards mounted <https://i.postimg.cc/cJLK1wt0/webdav07.jpg> Mount the entire filesystem <https://i.postimg.cc/qv6HJ7GN/webdav08.jpg> Each sdcard is a drive letter <https://i.postimg.cc/D0qMxTMB/webdav09.jpg> FOSS general purpose solution <https://i.postimg.cc/wM4Z45pN/webdav10.jpg> Free Android WebDAV servers
    <https://i.postimg.cc/BQyRxCN9/webdav11.jpg> Mount sdcards read & write <https://i.postimg.cc/yYWwgGmy/webdav12.jpg> As Windows drive letters <https://i.postimg.cc/QtbR1GY0/webdav13.jpg> Over Wi-Fi on your home LAN <https://i.postimg.cc/JhjpnRgh/webdav14.jpg> Mirroring Android on Windows <https://i.postimg.cc/gcKXV6F7/webdav16.jpg> A third free WebDAV server

    Once set up correctly, the Android file system is just a drive on Windows. <https://i.postimg.cc/hjkVFyqJ/scrcpy07.jpg> Android mnt as drive letter
    Such that you can slide APKs from Windows and they auto-install on Android. <https://i.postimg.cc/wvsbcNBz/scrcpy05.jpg> Drag APK from Windows

    The Windows (or Linux) keyboard, mouse, clipboard and sound cards all work perfectly with Android mirrored onto your PC monitor, using FOSS software. <https://i.postimg.cc/5NrK7jtg/scrcpy16.jpg> powershell hide-console trick

    One question I have of the linux experts is WHY, without being rooted, when
    I mount the Android internal sdcard onto Windows, I can read most of the Android root filesystem, and write to some of the root filesystem, but not all? <https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg>

    What's the difference?

    You're using webdav to allow the file system to be exported like it was a file share.
    And that is working over Wifi, which I don't think the OP wants.

    Another method is Android ADB (SDK). That is for the USB cable and Developer Mode (not rooted).

    https://stackoverflow.com/questions/20834241/how-to-use-adb-command-to-push-a-file-on-device-without-sd-card

    It's a good thing Man-wai enjoys complicated solutions. Isn't that what using
    a phone is all about ?

    *******

    I can't explain the details of Android for you, except to say that
    Google loves complicated file system mounting schemes. They like
    to have a ton of partitions. When other OSes are capable of
    putting the entire design in a single partition.

    You can put mounts on top of mounts, and apply permissions
    to them, such that the mount point is not "readable" by an external
    user. Any folder can be used as a mount point.

    A file like /etc/mtab , keeps track of the mounts which are currently in place. (Have been applied in a sense.) But depending on what the designer wants,
    you can also make mounts invisible from a logging perspective. The loopback mounts in Ubuntu, have been made invisible (because they were annoying to
    the eye, in certain contexts, and the mounts were caused by the Snap
    packaging subsystem).

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Paul on Sat Sep 21 02:00:47 2024
    XPost: alt.comp.os.windows-11, comp.mobile.android

    Paul wrote on Fri, 20 Sep 2024 18:04:13 -0400 :

    One question I have of the linux experts is WHY, without being rooted, when >> I mount the Android internal sdcard onto Windows, I can read most of the
    Android root filesystem, and write to some of the root filesystem, but not >> all? <https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg>

    What's the difference?

    You're using webdav to allow the file system to be exported like it was a file share.
    And that is working over Wifi, which I don't think the OP wants.

    Yes. I read the OP multiple times, and wanted to help Man-Wai, but for the
    life of me I couldn't understand why he wanted to use the SUBST command
    when all it seems he wants to do is mount "something" to a drive letter.

    That "something" I also couldn't figure out for the life of me, but it sure looked like an old Android phone (i.e., Nokia) so I took the leap to
    "assume" it was a phone - in which case, the method I provided should work
    (if the "something" is, indeed a phone).

    Another method is Android ADB (SDK). That is for the USB cable and Developer Mode (not rooted).
    https://stackoverflow.com/questions/20834241/how-to-use-adb-command-to-push-a-file-on-device-without-sd-card

    Yes, adb is wonderful for working with Android from Windows or Linux
    such as when they want to edit the HOSTS file on Android from a PC.
    <https://www.howtogeek.com/140576/how-to-edit-the-hosts-file-on-android-and-block-web-sites/>

    Many people complain they can't "see" the Android HOSTS file without being rooted; but they can using the "pull" complement to "push" to get it.
    <https://xdaforums.com/t/where-is-the-hosts-file-in-android.514698/>

    adb pull /system/etc/hosts . (as /etc is a symlink on Android)
    adb push adb push hosts /system/etc/hosts

    Here they use Android Linux commands to mount the filesystem.
    <https://xdaforums.com/t/editing-host-file.4345167/>
    adb shell
    su
    mount -o rw,remount /system
    adb push C:\platform-tools\hosts /system/etc/

    It's a good thing Man-wai enjoys complicated solutions.
    Isn't that what using a phone is all about ?

    What I love is that the phone mounts as a drive on Windows.
    Then all the normal Windows commands work on the phone.

    Amazingly, you can read more with adb than you can from the phone itself.
    Why would a PC be able to see more than the phone? Dunno. But it does.

    I can't explain the details of Android for you, except to say that
    Google loves complicated file system mounting schemes. They like
    to have a ton of partitions. When other OSes are capable of
    putting the entire design in a single partition.

    You can put mounts on top of mounts, and apply permissions
    to them, such that the mount point is not "readable" by an external
    user. Any folder can be used as a mount point.

    A file like /etc/mtab , keeps track of the mounts which are currently in place.
    (Have been applied in a sense.) But depending on what the designer wants,
    you can also make mounts invisible from a logging perspective. The loopback mounts in Ubuntu, have been made invisible (because they were annoying to
    the eye, in certain contexts, and the mounts were caused by the Snap packaging subsystem).

    Apparently TWRP allows non-rooted Android phones to read/write the entire
    file system but I, myself, have never installed TWRP so I don't know how.
    <https://play.google.com/store/apps/details?id=me.twrp.twrpapp>

    It allows you to directly access the Linux file system of Android.
    *How to access files in the Android root file system without root*
    <https://gist.github.com/makenova/dba94f69e8f11d9e0eb4>

    Bear in mind that Android concurrently runs almost any Linux distro
    even without being rooted - but again - I have not gone there myself.
    <https://andronix.app/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to Mr. Man-wai Chang on Sat Sep 21 10:59:13 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Fri, 20 Sep 2024 12:49:33 +0800, Mr. Man-wai Chang wrote:
    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    SUBST will only work for real file system path. e.g. physical drives, and network drives.

    Some paths seen via Explorer, are shell paths. i.e. virtual paths which only exist in shell context. e.g. paths of Control Panel applets, MTP devices

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Fri Sep 20 21:54:47 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On 9/20/24 20:59, JJ wrote:
    On Fri, 20 Sep 2024 12:49:33 +0800, Mr. Man-wai Chang wrote:
    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
    (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    SUBST will only work for real file system path. e.g. physical drives, and network drives.

    Some paths seen via Explorer, are shell paths. i.e. virtual paths which only exist in shell context. e.g. paths of Control Panel applets, MTP devices



    Try this:
    https://www.mtpdrive.com/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to All on Sat Sep 21 03:17:38 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Sat, 9/21/2024 12:54 AM, T wrote:
    On 9/20/24 20:59, JJ wrote:
    On Fri, 20 Sep 2024 12:49:33 +0800, Mr. Man-wai Chang wrote:
    How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive >>> (e.g. E:\)?

    Something like:

    subst e: "This PC\Nokia 1234\Internal shared storage\"

    I tried the subst command but it reported "Path not found"!

    SUBST will only work for real file system path. e.g. physical drives, and
    network drives.

    Some paths seen via Explorer, are shell paths. i.e. virtual paths which only >> exist in shell context. e.g. paths of Control Panel applets, MTP devices



    Try this:
    https://www.mtpdrive.com/

    That's Dokan based.

    I don't know if there are any knowledgeable reviews of that layer or not.

    https://github.com/dokan-dev/dokany/discussions/1237

    It's like an IFS (installable file system) or a FUSE. It allows
    doing stuff like mtpdrive, among other things.

    Usually, Dokan products are distributed to a relatively small number
    of customers. And there isn't a lot of casual comment out there
    about how well it works.

    "Dokany – User mode file system library for windows with FUSE Wrapper"

    https://news.ycombinator.com/item?id=12554024

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From knuttle@21:1/5 to All on Sat Sep 21 07:46:58 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    T24gMDkvMjAvMjAyNCA1OjIyIFBNLCBQYXVsIHdyb3RlOg0KPiBPbiBGcmksIDkvMjAvMjAy NCAzOjU1IFBNLCBrbnV0dGxlIHdyb3RlOg0KPj4gT24gMDkvMjAvMjAyNCAxMjo1MiBQTSwg TXIuIE1hbi13YWkgQ2hhbmcgd3JvdGU6DQo+Pj4gT24gMjAvOS8yMDI0IDQ6NDkgcG0sIFBh dWwgd3JvdGU6DQo+Pj4+DQo+Pj4+IFRoaXMgc291bmRzIGxpa2UgYSBHb29nbGUgcHJvYmxl bS4gV2h5IG5vdCBwaG9uZQ0KPj4+PiB0aGVtIHVwIGFuZCBhc2sgPyA6LSkNCj4+Pg0KPj4+ DQo+Pj4gSSB0cmllZCwgYnV0IGZhaWxlZCEgOikNCj4+Pg0KPj4+PiBZb3UncmUgdXNpbmcg YSBVU0IgY2FibGUsIE1UUCBwcm90b2NvbCwgYW5kIG5vdw0KPj4+PiBleHBlY3QgU1VCU1Qg dG8gd29yay4NCj4+Pj4NCj4+Pj4gKFlvdSB1c2VkIGFuIEFuZHJvaWQgZGlhbG9nIHRvIGVu YWJsZSBNVFAgYWNjZXNzKQ0KPj4+DQo+Pj4gU2VlbWVkIHRoYXQgaXQncyBkZXByZWNhdGVk PyBVU0IgTWFzcyBTdG9yYWdlPz8/DQo+Pj4NCj4+PiBJIHRoaW5rIEkgc2F3ICJQVFAiIGlu IFVTQiBtb2RlIG9mIHRoZSBBbmRyb2lkIHBob25lLi4uDQo+Pj4NCj4+PiB1c2IgLSBEcml2 ZSBsZXR0ZXIgZm9yIE1UUCBjb25uZWN0aW9uIHVuZGVyIFdpbmRvd3MgLSBBbmRyb2lkIEVu dGh1c2lhc3RzIFN0YWNrIEV4Y2hhbmdlDQo+Pj4gPGh0dHBzOi8vYW5kcm9pZC5zdGFja2V4 Y2hhbmdlLmNvbS9xdWVzdGlvbnMvMjI5NzkvZHJpdmUtbGV0dGVyLWZvci1tdHAtIGNvbm5l Y3Rpb24tdW5kZXItd2luZG93cz4NCj4+IFRoaXMgaXMgZnJvbSBHb29nbGUuwqAgSSB0aG91 Z2h0IHlvdSB3ZXJlIHRhbGtpbmcgYWJvdXQgYSBMQU4gZHJpdmUsIGl0IHlvdSBhcmUgY29u bmVjdGVkIHRocm91Z2ggVVNCLCBvciBvdGhlci4NCj4+DQo+PiBTZXR0aW5nIERyaXZlIExl dHRlcg0KPj4NCj4+ICDCoMKgwqAgUmlnaHQgY2xpY2sgU3RhcnQgYW5kIHRoZW4gY2hvb3Nl IERpc2sgTWFuYWdlbWVudC4NCj4+ICDCoMKgwqAgTG9naW4gYXMgQWRtaW5pc3RyYXRvci4N Cj4+ICDCoMKgwqAgTG9vayBhdCBkcml2ZXMgaW4gdGhlIGxvd2VyIHBhbmUuDQo+PiAgwqDC oMKgIFJpZ2h0LWNsaWNrIHRoZSBkcml2ZSB0aGF0IGlzIGluIGNvbmZsaWN0Lg0KPj4gIMKg wqDCoCBDaG9vc2UgQ2hhbmdlIERyaXZlIExldHRlciBhbmQgUGF0aHMuDQo+IA0KPiBZZXMu IEJ1dCBkb2VzIHRoYXQgImljb24iIGFwcGVhciBpbiB0aGUgcGxhY2Ugd2hlcmUNCj4geW91 IG5lZWQgaXQgdG8gYXBwZWFyID8gU2luY2UgdGhlIGl0ZW0gaXMgbm90IGEgImRpc2siLA0K PiBpdCBoYXMgbm8gcmVhc29uIHRvIGFwcGVhciBpbiBEaXNrIE1hbmFnZW1lbnQuDQo+IA0K PiBJIGNhbid0IHRha2UgcGljdHVyZXMgZm9yIHRoaXMgb25lLCBiZWNhdXNlIEkgZG9uJ3Qg b3duIGEgU21hcnQgUGhvbmUuDQo+IGFuZCBteSBjYW1lcmEgdXNlcyBVU0IgTWFzcyBTdG9y YWdlLCB3aGljaCBpcyBkaWZmZXJlbnQuDQo+IA0KPiAgICAgUGF1bA0KPiANCiAgV2hhdCBp cyB0aGUgZGV2aWNlIHlvdSBhcmUgdHJ5aW5nIHRvIGFjY2Vzcz8gICBJcyBpdCBkaXJlY3Rs eSANCmNvbm5lY3RlZCB0byB0aGUgY29tcHV0ZXIgdGhyb3VnaCBVU0Igb3Igb3RoZXIgcG9y dHM/ICBBcmUgeW91IHRyeWluZyB0byANCmFjY2VzcyB0aGUgZGV2aWNlIHRocm91Z2ggdGhl IExBTg0K

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to knuttle on Sat Sep 21 11:19:06 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Sat, 9/21/2024 7:46 AM, knuttle wrote:

    What is the device you are trying to access?  
    Is it directly connected to the computer through USB or other ports?
    Are you trying to access the device through the LAN

    Man-wai has an Android phone on a USB cable to his computer.

    The protocol would be MTP (Media Transfer Protocol), not UMS (USB Mass Storage).

    If this was USB Mass Storage, there would be a driver letter, plus a Disk Management entry.

    In the My Computer window, the icon has no drive letter.
    You might see a DCIM folder inside the icon, for example,
    for the Android emulation of a camera interface. DCIM is the folder
    where the smartphone pictures are stored, just like on a digital camera.

    This would be reasonably close to what it looks like.
    Vista+ should be able to do it like this. WinXP needed a driver.
    Apparently in Win10, some users had to manually load the MTP driver themselves :-/ Ick.

    https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2014/07/mtp-device-in-windows-explorer-on-windows-8.png?q=50&fit=crop&w=750&dpr=1.5

    If you want to fit a drive letter to it, it's not the kind of
    setup that supports that.

    *******

    It means searching for arcane recipes to get the access you want.
    Dokan is mentioned here, with the usual caveats about issues with
    particular Dokany releases.

    Note that the last item, Powershell can gain access. So it may be
    possible to script the MTP device, even though it does not have
    a drive letter.

    https://superuser.com/questions/369959/how-do-i-access-mtp-devices-on-the-command-line-in-windows

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From david@21:1/5 to All on Sat Sep 21 16:32:03 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    Using <news:vcmo6f$1l1ao$1@toylet.eternal-september.org>, Mr. Man-wai Chang wrote:

    On 21/9/2024 7:46 pm, knuttle wrote:
    What is the device you are trying to access? Is it directly
    connected to the computer through USB or other ports? Are you trying to
    access the device through the LAN

    It's just an Android 14 smartphone. Was curious whether its internal
    storage could be accessed as a SUBST drive in Windows 10. The File
    Explorer mounted it, but not in Command Prompt.

    I know I could just use a SD card. :)

    Maybe ftpuse will work?

    https://www.ferrobackup.com/map-ftp-as-disk.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Mr. Man-wai Chang on Sat Sep 21 22:24:24 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Mr. Man-wai Chang wrote on Sat, 21 Sep 2024 23:24:34 +0800 :

    This is what I use every day on Windows 10(via a batch script, of course): >> net use I: \\192.168.0.2@8000\DavWWWRoot /USER:foo bar
    net use X: \\192.168.0.2@9000\DavWWWRoot
    Which is nicely summarized for you in this set of my own screenshots.
    <https://i.postimg.cc/1zrmSmQc/davroot.jpg>

    Thanks. This solution involves the use of networking.

    Assuming your Nokia "something" is an Android phone... below
    are all the methods I know of to "seamlessly connect" it to a PC.

    1. You can connect the Android phone to Windows 10 by Bluetooth,
    by Wi-Fi (over the LAN or by ad hoc Wi-Fi) or by USB cable.

    Most people just plug the phone into Windows (just like any other
    USB device) and Windows automatically installs the driver for it.
    *Install OEM USB drivers*
    <https://developer.android.com/studio/run/oem-usb>

    If the correct driver isn't installed, every manufacturer provides it.
    Acer -> https://www.acer.com/worldwide/support/
    Alcatel -> https://www.alcatelmobile.com/support/
    Asus -> https://www.asus.com/support/Download-Center/
    Blackberry -> https://swdownloads.blackberry.com/Downloads/entry.do?code=4EE0932F46276313B51570F46266A608
    Dell -> https://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml
    FCNT -> https://www.fcnt.com/support/develop/#anc-03
    HTC -> https://www.htc.com/support
    Huawei -> https://consumer.huawei.com/en/support/index.htm
    Intel -> https://www.intel.com/software/android
    Kyocera -> https://kyoceramobile.com/support/drivers/
    Lenovo -> https://support.lenovo.com/us/en/GlobalProductSelector
    LGE -> https://www.lg.com/us/support/software-firmware
    Motorola -> https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/
    MTK -> http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip
    Samsung -> https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
    Sharp -> http://k-tai.sharp.co.jp/support/
    Sony -> https://developer.sonymobile.com/downloads/drivers/
    Toshiba -> https://support.toshiba.com/sscontent?docId=4001814
    Xiaomi -> https://web.vip.miui.com/page/info/mio/mio/detail?postId=18464849&app_version=dev.20051
    ZTE -> http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442

    2. Either way (BT, Wi-Fi or USB) there are a multitude of connection tools.
    Offhand, some of the Android/Windows file-sharing solutions are
    AirDroid <https://www.airdroid.com/personal/>
    ADB <https://developer.android.com/tools/adb>
    AFT MTP client <https://whoozle.github.io/android-file-transfer-linux/>
    DirectNetDrive <http://www.directnet-drive.net/>
    FTPUse <https://www.ferrobackup.com/download/FtpUseInst.exe>
    Fb-adb Android Linux shell <https://github.com/facebook/fb-adb>
    Ftpuse <https://www.ferrobackup.com/map-ftp-as-disk.html>
    Go-mtpfs MTP FUSE filesystem <https://github.com/hanwen/go-mtpfs>
    Gphotofs Camera Linux mount <http://www.gphoto.org/proj/gphotofs/>
    JMTP FS <https://github.com/JasonFerrara/jmtpfs>
    KDEconnect <https://play.google.com/store/apps/details?id=org.kde.kdeconnect>
    Kies Connect <https://www.samsung.com/africa_en/support/kies/>
    LibIconv <http://gnuwin32.sourceforge.net/packages/libiconv.htm>
    LibMTP <https://github.com/hanwen/go-mtpfs>
    LibMTP <https://sourceforge.net/projects/libmtp/>
    LibMTP library MTP implementation <http://libmtp.sourceforge.net>
    LibUSB Win32 <http://libusb-win32.sourceforge.net/>
    LibUsbK <https://sourceforge.net/projects/libusb-win32/>
    LibiConv <http://gnuwin32.sourceforge.net/packages/libiconv.htm>
    MTP support on KDE <https://cgit.kde.org/kio-mtp.git>
    MTPDrive <http://mtpdrive.com/download.html>
    MTPSync <https://www.adebenham.com/mtpsync/>
    MTPdude <http://mtpdude.sourceforge.net>
    MTPfs FUSE filesystem <https://www.adebenham.com/mtpfs/>
    NetDrive 1.3.2.0 <https://filehippo.com/download_netdrive/12615/>
    NetDrive 3.6.571 <http://netdrive.net/ (deprecated)
    Nitroshare <https://play.google.com/store/apps/details?id=net.nitroshare.android>
    PhoneLink <https://www.samsung.com/us/support/answer/ANS00083910/>
    SFTP Net Drive <https://www.nsoftware.com/sftp/netdrive/>
    SideSync <https://play.google.com/store/apps/details?id=com.sidesync.freeapp>
    SMB Cifs (client) X-Plore <https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore>
    SMB Cifs (root) <https://play.google.com/store/apps/details?id=com.imperioustech.www.sambaserver>
    Scrcpy/sndcpy <https://github.com/Genymobile/scrcpy>
    Termux copy <https://github.com/termux>
    WebDav <https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver>
    WebDrive <https://webdrive.com/download/>
    XNJB Mac OS X GUI <http://www.wentnet.com/projects/xnjb/>
    (this is mostly offhand so I likely missed as many as I listed)

    Personally, for myself, I'd mount the entire Android filesystem onto
    Windows as a read/write Windows drive letter over Wi-Fi using WebDav.

    See also FTPUse above which also creates a Windows networked share.

    Or, if I'm running commands from Windows to disable, install or
    otherwise manipulate applications, I use adb over Wi-Fi or USB.

    If I'm already using adb, then I may as well use screencopy and
    soundcopy to do _all_ the Android manipulations from the PC alone.

    But most people just plug the Android phone into Windows to drag and
    drop any file in the user partition between the devices using that PC.

    3. Of those, plenty are ad hoc Wi-Fi & USB file-sharing solutions.
    Kies Connect <https://www.samsung.com/africa_en/support/kies/>
    Nitroshare <https://play.google.com/store/apps/details?id=net.nitroshare.android>
    KDEconnect <https://play.google.com/store/apps/details?id=org.kde.kdeconnect>
    FTPUse <https://www.ferrobackup.com/download/FtpUseInst.exe>

    I've used every single one of them, where my suggestion is NitroShare
    because of its simplicity (but all work, just in different ways).

    4. You can set up Android to act differently whenever you connect to USB
    Android12 Settings > Developer options > Default USB configuration
    (o) Transferring files <---- AFAIK, this is the default
    (_) USB tethering
    (_) MIDI
    (_) Transferring images
    (_) Charging phone only
    I wouldn't change this from the default of "Transferring files).

    5. Of course, you can do everything using just adb (on Wi-Fi or USB).

    First, find the name of the desired package:
    C:\> adb shell pm list packages | findStr /i "osmand"
    C:\> adb shell pm list packages <--- list all packages on the device
    C:\> adb shell pm list packages -f -3 <--- list third-party packages
    C:\> adb shell pm list packages -d <--- list only the disabled packages
    C:\> adb shell pm list packages -s <--- list only the system packages
    C:\> adb shell pm list packages -u <--- list only uninstalled packages
    C:\> adb shell dumpsys package packages <--- list package information
    C:\> adb shell pm dump net.osmand.plus <--- list info on a package

    Find out the full path to the desired package:
    C:\> adb shell pm path net.osmand.plus

    Copy the installer (which is always saved on Android!) to Windows.
    C:\> adb pull /data/app/long-nasty-path-net.osmand.plus/osmand-base.apk

    With this method you can copy all the APKs over in one robocopy command.
    C:\> adb shell dumpsys package packages | findStr /i ".apk$"
    The result is every app ever installed gets a Windows backup of its APK.

    Stop the desired package:
    C:\> adb shell am force-stop net.osmand.plus

    Disable the desired package:
    C:\> adb shell pm disable-user --user 0 net.osmand.plus

    Remove the desired package:
    C:\> adb shell pm uninstall --user 0 net.osmand.plus

    Note if adb can see it, then adb can copy it over to Windows.
    C:\> adb pull "/data/data/com.pkg.test/files/" .

    Even if you're not rooted (most people aren't) you can copy your
    Windows HOSTS file to Android if you know a few of the tricks.
    <https://superuser.com/questions/938751/i-am-trying-to-push-the-file-using-adb-to-my-android-device>

    Note also that "local adb" eliminates the need for the Windows PC.
    <https://play.google.com/store/apps/details?id=com.draco.ladb>

    5. Most Android phones have an sdslot so another option is to use
    Android to put the video onto that sd card and pop it into the PC.

    Having tested every single file copy method ever proposed on both
    the Windows and Android newsgroups, my recommendation is simple:
    a. Connect your Android phone to Windows by USB (for KISS simplicity).
    b. If the phone doesn't show up in "My Computer" install OEM drivers.
    c. Usually that works

    If you can't get the OEM drivers to work, then I'd try the WebDav
    servers on Android (unfortunately SMB servers on Android have issues).

    If you can't get the WebDav servers to work, then I'd use adb with scrcpy/sndcpy which completely mirrors the phone onto the PC.

    That's mostly what I do all day every day.

    One advantage is my phone becomes 20 inches tall by 9 inches wide
    on my computer monitor - and I can use the mouse, keyboard & clipboard.

    Also, the sound is the one coming out of the computer and not the
    phone - so I can loudly watch all the YouTube videos I want using either NewPipe or PipePipe (which is YouTube but without ever seeing an ad).
    <https://newpipe.net>
    <https://f-droid.org/en/packages/org.schabi.newpipe/>

    <https://github.com/InfinityLoop1308/PipePipe>
    <https://f-droid.org/en/packages/InfinityLoop1309.NewPipeEnhanced/>

    The microphone though, is delayed, for reasons unknown to me,
    which I've never been able to resolve so I turn one source off.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to Paul on Sun Sep 22 07:29:26 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Sat, 21 Sep 2024 03:17:38 -0400, Paul wrote:

    That's Dokan based.

    I don't know if there are any knowledgeable reviews of that layer or not.

    https://github.com/dokan-dev/dokany/discussions/1237

    It's like an IFS (installable file system) or a FUSE. It allows
    doing stuff like mtpdrive, among other things.

    Usually, Dokan products are distributed to a relatively small number
    of customers. And there isn't a lot of casual comment out there
    about how well it works.

    "Dokany ¡V User mode file system library for windows with FUSE Wrapper"

    https://news.ycombinator.com/item?id=12554024

    Paul

    Dokan is a pain in the ass to setup. I can't argue its potential of
    providing user-mode based file system driver. I was actually hoping to use
    it to implement my own FS driver. But the setup... ugh.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Quincy the fifth@21:1/5 to Paul on Sun Sep 22 04:15:07 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Sat, 21 Sep 2024 11:19:06 -0400, Paul wrote:

    What is the device you are trying to access?  
    Is it directly connected to the computer through USB or other ports?
    Are you trying to access the device through the LAN

    Man-wai has an Android phone on a USB cable to his computer.

    The protocol would be MTP (Media Transfer Protocol), not UMS (USB Mass Storage).

    If it's a Nokia phone, then the drivers are missing for some reason. https://stackoverflow.com/questions/61961648/nokia-2-2-usb-drivers-for-use-with-android-studio

    That question suggests the universal drivers for the missing Nokia ones. https://adb.clockworkmod.com/

    This says there is no official Nokia driver web page for the phone. https://www.quora.com/How-do-I-install-a-Nokia-USB-driver

    It looks like lots of people are looking for the missing Nokia drivers. https://xdaforums.com/t/nokia-usb-driver-h.3821355/

    Although I can find supposed Nokia drivers on non-Nokia sites. https://www.ytechb.com/download-nokia-usb-driver/ https://nokia-connectivity-cable-driver.en.uptodown.com/windows/download

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From knuttle@21:1/5 to All on Sat Sep 21 21:16:44 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    T24gMDkvMjEvMjAyNCA2OjMyIFBNLCBkYXZpZCB3cm90ZToNCj4gVXNpbmcgPG5ld3M6dmNt bzZmJDFsMWFvJDFAdG95bGV0LmV0ZXJuYWwtc2VwdGVtYmVyLm9yZz4sIE1yLiBNYW4td2Fp IENoYW5nDQo+IHdyb3RlOg0KPiANCj4+IE9uIDIxLzkvMjAyNCA3OjQ2IHBtLCBrbnV0dGxl IHdyb3RlOg0KPj4+IMKgwqAgV2hhdCBpcyB0aGUgZGV2aWNlIHlvdSBhcmUgdHJ5aW5nIHRv IGFjY2Vzcz/CoMKgIElzIGl0IGRpcmVjdGx5DQo+Pj4gY29ubmVjdGVkIHRvIHRoZSBjb21w dXRlciB0aHJvdWdoIFVTQiBvciBvdGhlciBwb3J0cz/CoCBBcmUgeW91IHRyeWluZyB0bw0K Pj4+IGFjY2VzcyB0aGUgZGV2aWNlIHRocm91Z2ggdGhlIExBTg0KPj4NCj4+IEl0J3MganVz dCBhbiBBbmRyb2lkIDE0IHNtYXJ0cGhvbmUuIFdhcyBjdXJpb3VzIHdoZXRoZXIgaXRzIGlu dGVybmFsIA0KPj4gc3RvcmFnZSBjb3VsZCBiZSBhY2Nlc3NlZCBhcyBhIFNVQlNUIGRyaXZl IGluIFdpbmRvd3MgMTAuIFRoZSBGaWxlIA0KPj4gRXhwbG9yZXIgbW91bnRlZCBpdCwgYnV0 IG5vdCBpbiBDb21tYW5kIFByb21wdC4NCj4+DQo+PiBJIGtub3cgSSBjb3VsZCBqdXN0IHVz ZSBhIFNEIGNhcmQuIDopDQo+IA0KPiBNYXliZSBmdHB1c2Ugd2lsbCB3b3JrPw0KPiANCj4g aHR0cHM6Ly93d3cuZmVycm9iYWNrdXAuY29tL21hcC1mdHAtYXMtZGlzay5odG1sDQpVbmxl c3MgeW91IGhhdmUgYSBsb3Qgb2YgdmVyeSBsYXJnZSBmaWxlcyB0byBleGNoYW5nZSwgSSBm aW5kIHRoYXQgDQpCbHVldG9vdGggaXMgdGhlIGVhc2VzdCB3YXkgdG8gdHJhbnNmZXIgZmls ZXMgYmV0d2VlbiBteSB3aW5kb3dzIA0KY29tcHV0ZXIgbmFkIG15IE1vdG9yb2wgQW5kcm9p ZCBwaG9uZS4NCg0KVGhlcmUgaXMgbm8gcHJvYmxhbWF0aWMgc2V0IHVwLiAgT25jZSBwYWly ZWQgc3Vic2VxdWVudCB0cmFuc2ZlcnMgZ28gDQpyZWxhdGl2ZWx5IHF1aWNrLiAgQ2xpY2sg dGhlIGZpbGUgc2VsZWN0IEJsdWV0b290aCwgYW5kIGFjY2VwdCBpdCBvbiB0aGUgDQpyZWNp ZXZpbmcgZGV2aWNlLg0K

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to knuttle on Sun Sep 22 02:28:24 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    On Sat, 9/21/2024 9:16 PM, knuttle wrote:
    On 09/21/2024 6:32 PM, david wrote:
    Using <news:vcmo6f$1l1ao$1@toylet.eternal-september.org>, Mr. Man-wai Chang >> wrote:

    On 21/9/2024 7:46 pm, knuttle wrote:
       What is the device you are trying to access?   Is it directly
    connected to the computer through USB or other ports?  Are you trying to >>>> access the device through the LAN

    It's just an Android 14 smartphone. Was curious whether its internal storage could be accessed as a SUBST drive in Windows 10. The File Explorer mounted it, but not in Command Prompt.

    I know I could just use a SD card. :)

    Maybe ftpuse will work?

    https://www.ferrobackup.com/map-ftp-as-disk.html
    Unless you have a lot of very large files to exchange, I find that Bluetooth is the easest way to transfer files between my windows computer nad my Motorol Android phone.

    There is no problamatic set up.  Once paired subsequent transfers go relatively quick.  Click the file select Bluetooth, and accept it on the recieving device.

    75KB/sec or so.

    It's best to take a stopwatch, and make note of the time it takes
    for the BT transfer, then measure the bulk size of all that was transferred, divide the two to get the kilobytes per second of the thing. When file
    sharing over BT, I've had a couple indicators be off by as much as a
    factor of 4 versus the real transfer speed. A lot of the other parts
    of Windows, the transfer speeds are "more normal". But I think people
    have occasionally seen ridiculously high measurements made (100000 MB/sec
    or something).

    75KB/sec is the same transfer speed as a floppy diskette (as a rough metric).

    Transfer over a USB2 cable, could go faster, but it depends on
    what protocol is being used. A large folder of files, might end up
    being quite slow to transfer, because MTP directory information could be exchanged over and over again. MTP is not an overly efficient protocol.
    I don't know how ADB transfers work, to make a comment about them.

    *******

    You could (try) to plug a USB to Ethernet cable into your phone, and
    use a wired network connection. But the testing of such adapters
    (whether the USB2 ASIX or the USB3 ASIX), is definitely for the brave.
    For example, two people with the exact same model of phone, got different results using the same Ethernet adapter purchase.

    The considered opinion on transfer options being WebDAV or FTP, if
    you had some kind of secure network connection. I prefer to keep signals
    on cables, rather than RF means (because I can see my neighbors electronics from here when I scan, and I don't want to be seen even remotely close
    to his stuff!).

    https://stackoverflow.com/questions/64910317/mount-mtp-device-on-windows

    Someone there got an mtpmount to work, but that's basically mtpdrive
    "without the support". It still uses Dokany as near as I can tell from
    the description. And then you need the exact right version of Dokany
    for things to work. And Dokany is only going to continue to work,
    as long as Windows Defender tolerates it.

    It would be easier to use the phone from Linux, and just boot up a
    Linux for a phone session. Maybe then you'd get some amount of
    the file system to appear. If Windows Phone support features were used,
    I would expect only the DCIM portion to be accessible, and no reason
    for the access to be useful (drive letter).

    Microsoft could do their own MTPmount using a native win32 method if
    they wanted. They have 7000 developers after all... If Linux can do it,
    so can they.

    WSL2/WSLg does not have a strong /dev component, so you cannot trick
    the machine into gaining access to the phone that way. For example, the graphics stack is not accelerated, it's a software stack.

    *******

    You could install VirtualBox in Windows, put Linux in a VirtualBox Guest,
    use USB passthru, to route the phone USB connector to the Linux Guest,
    then use MTPfs in Linux to gain access to the phone. Perfectly do-able.
    But I doubt Man-wai wants this much trouble for a mere phone session.
    I routinely do stupid stuff like that :-) But I can't test any of
    this, because there is no smartphone here to test with.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Mr. Man-wai Chang on Sun Sep 22 18:07:46 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Mr. Man-wai Chang wrote on Sun, 22 Sep 2024 21:46:28 +0800 :

    Assuming your Nokia "something" is an Android phone... below
    are all the methods I know of to "seamlessly connect" it to a PC.

    Thank you....

    I'm always here, as is Paul and as are others, to help people out.
    I suspect the lack of the "correct" drive "could" be the issue you face.

    It's odd that only Nokia doesn't supply its own Android USB drivers.
    <https://www.google.com/search?q=nokia+windows+android+driver>

    Personally, I long ago forgot that the SUBST command even existed, so
    here's a description of how to use SUBST in various circumtances.
    <https://winaero.com/create-virtual-drive-from-a-folder-in-windows-10/>

    For most of us who forgot about the SUBST command long ago, here are
    examples of people mounting drives using SUBST in cmd & powershell.
    <https://serverfault.com/questions/24400/in-windows-how-to-mount-folder-as-a-drive>

    A search for the OP shows also that there is a "Virtual SUBST" program.
    <https://www.ntwind.com/software/visual-subst.html>
    "Visual Subst provides you with a clean, simple and distraction-free
    user interface where you can manage all your virtual and network drives
    at once. It solves four main issues with the built-in 'SUBST' and
    'NET USE' commands: it enables editable drive labels, creates UAC drives
    for elevated applications, manages Recycle Bin for deleted items
    and it restores virtual drives after reboots."

    This shows a guy with the opposite problem, in that he has the SUBST drive
    and wants to get rid of it for his Android phone working with Windows.
    <https://forums.unrealengine.com/t/local-disk-z-appeared-after-building-for-android/397713/8>

    And this shows a guy on Android who is told SUBST was worse than Dokany
    but that Round-sync was better (although it seems to mount SMB shares).
    <https://community.cryptomator.org/t/unable-to-share-vault-on-local-network-when-using-winfsp-local-drive/12398/3>

    Here is the Round Sync - Rclone for Android web page for those who care:
    <https://github.com/newhinton/Round-Sync>

    I downloaded it, to test it for the OP, but I'm going on a trip so I won't
    have results until later - but the OP might want to take a look at it.
    <https://github.com/newhinton/Round-Sync/releases/tag/v2.5.6>
    <https://github.com/newhinton/Round-Sync/releases/download/v2.5.6/roundsync_v2.5.6-oss-universal-release.apk>
    Name: roundsync_v2.5.6-oss-universal-release.apk
    Size: 116786852 bytes (111 MiB)
    SHA256: F6827968A7D234CD5440F5C5CCD37F944D4E96C33180EBECEBBBE96992CDCE2F

    It seems naturally intuitive to use SMB with Windows - so it's worth a try.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tom Del Rosso@21:1/5 to Andrew on Mon Sep 23 17:41:46 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Andrew wrote:

    I'm always here, as is Paul and as are others, to help people out.

    Where is here for you? I'm posting in alt.msdos.batch.nt.


    It's odd that only Nokia doesn't supply its own Android USB drivers.

    I think it's odd that it needs a special driver when my flip phone of 20
    years ago would simply emulate a USB drive, so it didn't need a special
    driver. I know MTP works like a client-server database to prevent file corruption, but I don't see why the Windows version of the MTP protocol
    can't include the ability to assign a drive letter, since Windows
    depends on letters.


    Personally, I long ago forgot that the SUBST command even existed, so

    In alt.msdos.batch.nt we haven't even forgotten the REPLACE command but
    XCOPY /U works better.

    I even remember trying RECOVER on floppies but it never worked. Norton Utilities had an equivalent that did work.


    A search for the OP shows also that there is a "Virtual SUBST"
    program. <https://www.ntwind.com/software/visual-subst.html>
    "Visual Subst provides you with a clean, simple and distraction-free
    user interface where you can manage all your virtual and network
    drives at once. It solves four main issues with the built-in
    'SUBST' and 'NET USE' commands: it enables editable drive labels,
    creates UAC drives for elevated applications, manages Recycle Bin
    for deleted items and it restores virtual drives after reboots."

    This shows a guy with the opposite problem, in that he has the SUBST
    drive and wants to get rid of it for his Android phone working with
    Windows. <https://forums.unrealengine.com/t/local-disk-z-appeared-after-building-for-android/397713/8>

    And this shows a guy on Android who is told SUBST was worse than
    Dokany but that Round-sync was better (although it seems to mount SMB shares). <https://community.cryptomator.org/t/unable-to-share-vault-on-local-network-when-using-winfsp-local-drive/12398/3>

    Here is the Round Sync - Rclone for Android web page for those who
    care: <https://github.com/newhinton/Round-Sync>

    I downloaded it, to test it for the OP, but I'm going on a trip so I
    won't have results until later - but the OP might want to take a look
    at it. <https://github.com/newhinton/Round-Sync/releases/tag/v2.5.6> <https://github.com/newhinton/Round-Sync/releases/download/v2.5.6/roundsync_v2.5.6-oss-universal-release.apk>
    Name: roundsync_v2.5.6-oss-universal-release.apk
    Size: 116786852 bytes (111 MiB)
    SHA256:
    F6827968A7D234CD5440F5C5CCD37F944D4E96C33180EBECEBBBE96992CDCE2F
    It seems naturally intuitive to use SMB with Windows - so it's worth
    a try.



    --
    Defund the Thought Police

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Tom Del Rosso on Tue Sep 24 14:33:17 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Tom Del Rosso wrote on Mon, 23 Sep 2024 17:41:46 -0400 :

    It's odd that only Nokia doesn't supply its own Android USB drivers.

    I think it's odd that it needs a special driver when my flip phone of 20 years ago would simply emulate a USB drive, so it didn't need a special driver. I know MTP works like a client-server database to prevent file corruption, but I don't see why the Windows version of the MTP protocol
    can't include the ability to assign a drive letter, since Windows
    depends on letters.

    Well, let's clarify that word "needs" since my experience has been that
    almost everything I plug into Windows that needs a driver, gets one.

    The question here, is when things aren't working, do you have the "right" driver, and the answer is that Nokia doesn't seem to make that driver.

    So the OP is stuck with whatever driver that Windows felt was appropriate. Obviously, my suggestion is the generic driver suggested by Google for adb.

    That's because adb does everything you could want a program to do, although just plugging an Android phone into Windows pretty much works for everyone.

    As far as I recall, we still don't know the OP's Android USB settings.
    <https://i.postimg.cc/JnDTWH9M/usb01.jpg> USB default settings

    Personally, I long ago forgot that the SUBST command even existed, so

    In alt.msdos.batch.nt we haven't even forgotten the REPLACE command but
    XCOPY /U works better.

    Yeah, I forget about XCOPY & ROBOCOPY myself, and I wrote, oh, way back in
    the 90's I guess, entire twenty page tutorials on how to use DEBUG better.

    I even remember trying RECOVER on floppies but it never worked. Norton Utilities had an equivalent that did work.

    I don't even remember RECOVER, but I do remember losing every file and then gaining them back, minus the first character & minus the long file names.

    Someone recently posted this powershell, though, for listing files in the
    order they were created, which is useful when datestamps are necessary.
    powershell
    get-childItem | sort-object -prop lastWriteTimeUtc | forEach { "{0} {1}" -f $_.lastWriteTimeUtc.toString("yyyyMMddHHmmssffff"), $_.name } > dated.txt

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Mr. Man-wai Chang on Tue Sep 24 18:34:33 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Mr. Man-wai Chang wrote on Tue, 24 Sep 2024 22:52:03 +0800 :

    As far as I recall, we still don't know the OP's Android USB settings.
    <https://i.postimg.cc/JnDTWH9M/usb01.jpg> USB default settings

    Give me some time... too many ideas to try. :)

    My suggestion is to try only one. WebDav. It's the best, in my experience.

    I've tested *every* (free) suggestion (which didn't require making an
    account) that was ever suggested (to my knowledge) on the Windows
    newsgroup, so my advice below is based on this one question only:
    "How could I map "This PC\Nokia 1234\Internal shared storage\"
    to a drive (e.g. E:\)?"

    By that question, I "assume" you mean:
    "How could I map an Android phone filesystem to a Windows drive letter?"

    That one question, I've been doing for years, where this newsgroup has
    helped me do that, so to give back to the newsgroup, my suggestion is this:

    1. Install any free WebDav server on your Android phone, where I recommend:
    <https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver>
    I notice it says it has ads. I don't see ads. I never see ads.
    My version may be older or it could be my DNS server ad blocking.

    There are other free WebDAV servers but that's the simplest, AFAIK.

    2. Set it up the simplest way possible - use all the defaults as one
    mistake in a path will screw you. Don't set up login/password either.
    Wait until it's working fine before adding those complexities.

    Note that nowhere does it say anywhere in any of these program
    notes that they all default to "DavWWWRoot" meaning the home share.

    3. Mount that default home share onto Windows, where I suggest you
    set up Android Wi-Fi to your home LAN to be a static IP address.
    C:\> net use P: \\192.168.0.2@8080\DavWWWRoot

    Now your internal sd card is mounted as drive "P:" on Windows.
    From there, you can get as fancy as you want to get.

    For example, I've found I need a second WebDAV server to mount the external sdcard, and then you need to know the Android linux path to that card,
    which is why I format all my sdcards with the same volume label.

    One of the accidentally amazing things about mounting Android file systems
    onto Windows as a drive letter is, for some reason, even though you're not rooted, you can read (and write to) most of the file system, even parts
    which you can't even see directly from the phone itself.

    If someone can explain that magic to me, I'd love to know why that happens.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Powell@21:1/5 to Andrew on Wed Sep 25 01:09:32 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    On Tue, 24 Sep 2024 22:51:28 -0000 (UTC), Andrew wrote:

    It's actually surprisingly shocking that not only is "DavWWWRoot"
    universally used by all WebDav servers (AFAIK), but NONE of them seem to
    tell you that. WTF?

    The reason is that DavWWWRoot has absolutely nothing to do with Android.

    Nor does DavWWWRoot have anything to do with the Android Webdav server APK.
    You could grep Android Webdave server source code & you'd never find it.

    Nobody on Android knows about it but those on Windows use it all the time.

    It's a Windows-only keyword so only people who know Windows know of it. https://community.fabric.microsoft.com/t5/Desktop/What-exactly-is-DavWWWRoot/td-p/1827535

    Everyone who knows Windows well has been using it for years though. https://answers.microsoft.com/en-us/msoffice/forum/all/sharepoint-explorer-mapping-folders-via-davwwwroot/7e121644-d3df-4001-a624-c5b7d6541013

    It's just not something Android users have come across before. https://stackoverflow.com/questions/21706142/what-is-davwwwroot

    DavWWWRoot is a special keyword recognized by Windows Shell. There is no
    such folder on your WebDAV server and you should not create it. You also
    will not find any DavWWWRoot name in requests to your server. The
    DavWWWRoot keyword tells the Windows Mini-Redirector driver, which handles WebDAV requests, that you are connecting to the root of WebDAV server.

    So if you knew Windows like everyone else does, you'd have known that the reason it's not mentioned anywhere in your Android documentation is that
    it's a common Windows variable (much like %Path% & %Comspec% are).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Andrew on Tue Sep 24 22:51:28 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    Andrew wrote on Tue, 24 Sep 2024 18:34:33 -0000 (UTC) :

    Note that nowhere does it say anywhere in any of these program
    notes that they all default to "DavWWWRoot" meaning the home share.

    To the OP, I can't stress how IMPORTANT that sentence is above, as not
    knowing that sentence cost me probably days (elapsed time) in getting the solution to work because you're at the mercy of file specifications and how they may differ between Android and Windows when you mount your sd card.

    It's actually surprisingly shocking that not only is "DavWWWRoot"
    universally used by all WebDav servers (AFAIK), but NONE of them seem to
    tell you that. WTF?

    I don't get it - but it cost me a lot of time NOT knowing that keyword.

    It shows up nowhere in the settings. Nowhere in the help. Nowhere.
    You are supposed to magically know it.

    Now you know this is the *simplest* connection you can perform:
    net use E: \\192.168.0.2@8080\DavWWWRoot

    But there's a lot more you can do once you get that simple setup going.
    net use /?
    The syntax of this command is:

    NET USE
    [devicename | *] [\\computername\sharename[\volume] [password | *]]
    [/USER:[domainname\]username]
    [/USER:[dotted domain name\]username]
    [/USER:[username@dotted domain name]
    [/SMARTCARD]
    [/SAVECRED]
    [/REQUIREINTEGRITY]
    [/REQUIREPRIVACY]
    [/WRITETHROUGH]
    [[/DELETE] | [/PERSISTENT:{YES | NO}]]

    NET USE {devicename | *} [password | *] /HOME

    NET USE [/PERSISTENT:{YES | NO}]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Powell@21:1/5 to Mr. Man-wai Chang on Wed Sep 25 16:20:36 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt, comp.mobile.android
    XPost: alt.os.linux

    On Wed, 25 Sep 2024 18:25:13 +0800, Mr. Man-wai Chang wrote:

    Well... I just don't understand why the Command Prompt cannot do
    whatever File Explorer is doing, including merely a drive letter for a
    folder visible to File Explorer via a command. Maybe Powershell is the
    new hope? I dunno....

    It's unrelated to Android nor iOS. :)

    DavWWWRoot is a special keyword recognized by Windows Shell so you should
    be able to do what you want, if you run a webdav server on Windows.

    Have I done that? No. But why shouldn't you be able to run a Windows webdav server & set DavWWWRoot to the desired nokia device on the command line?

    Maybe you can install & test a Windows webdav server from this listing. https://medevel.com/15-os-webdav-servers/

    After the Windows webdav server is running, I see batch mount scripts here. https://help.nextcloud.com/t/2023-which-is-the-best-free-webdav-client-with-drive-letter-assignation-windows/157294/3

    This says you need to set the registry BasicAuthLevel Value data to 2. https://www.thewindowsclub.com/how-to-map-webdav-in-windows

    Let us know how it works, as I see no reason (yet) why it shouldn't work to mount anything you can see in the Windows file explorer as a drive letter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Konrad@21:1/5 to All on Fri Oct 4 16:06:58 2024
    XPost: alt.comp.os.windows-11, alt.msdos.batch.nt

    Hi,

    I'm doing this via WLAN.
    On the Android site I run CX file explorer, and start his FTP server.
    On Windows I run RaiDrive.
    That works very well. Also file timestamps and attributes have the
    correct values.

    Regards
    Konrad

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)