UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Setup a shared folder between UT and Waydroid

    Scheduled Pinned Locked Moved Unsolved Waydroid
    5 Posts 3 Posters 119 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        captainfunk
        last edited by captainfunk

        Hi everyone 🙂

        I've tried to setup a shared folder between UT and waydroid so I can easily and quickly share files without using the terminal. I want to be able to use easily this share folder in the graphical app Files of Ubuntu Touch.

        I've kinda followed this link : https://docs.waydro.id/faq/setting-up-a-shared-folder

        So i have first created two directories : ~/shared and ~/.local/share/waydroid/data/media/0/shared
        Then I have done the commands :

        sudo mount --bind ~/shared ~/.local/share/waydroid/data/media/0/shared
        sudo chown phablet:phablet shared
        
        phablet@ubuntu-phablet:~$ ls -l | grep shared
        drwxrwxr-x 2 phablet phablet  4096 juin   7 01:04 shared
        phablet@ubuntu-phablet:~$ 
        

        It only works for one file, then the permissions automatically change to 1023 and I'm not authorised to continue sharing files :

        phablet@ubuntu-phablet:~$ ls -l | grep shared
        drwxrwxr-x 2    1023    1023  4096 juin   9 23:14 shared
        phablet@ubuntu-phablet:~$ 
        

        So I have to do the chown command again for every file...

        Furthermore, if I check the id command then I don't see which user is 1023 :

        phablet@ubuntu-phablet:~$ id
        uid=32011(phablet) gid=32011(phablet) groups=32011(phablet),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),30(dip),44(video),46(plugdev),105(systemd-journal),1001(radio),1002(bluetooth),1003(android_graphics),1004(android_input),1005(audio),1013(android_media),1015(sdcard_rw),1021(gps),2001(android_cache),3002(android_net3),3003(android_net),3004(android_net2),9997(android_nvram)
        phablet@ubuntu-phablet:~$ 
        

        And finally if I reboot UT I have to also re-do the mount --bind command...

        I would like to make this shared folder persistent without having to re-do those commands every time, any ideas ?

        Thanks 🙂

        Google Pixel 3a XL - 20.04 Stable (OTA-8)

        1 Reply Last reply Reply Quote 0
        • C captainfunk marked this topic as a question
        • developerbaymanD Offline
          developerbayman
          last edited by

          Does Ubuntu touch have a "autostart” feature?....if it already does not exist that could be a clickable....auto start clickable apps or run scripts.....surly someone did this already?

          AppLeeA 1 Reply Last reply Reply Quote 0
          • AppLeeA Offline
            AppLee @developerbayman
            last edited by

            @developerbayman said in Setup a shared folder between UT and Waydroid:

            Does Ubuntu touch have a "autostart” feature?....if it already does not exist that could be a clickable....auto start clickable apps or run scripts.....surly someone did this already?

            Not sure what you put behind "autostart feature", but Ubuntu Touch uses systemd to start services at boot time.

            developerbaymanD 1 Reply Last reply Reply Quote 0
            • developerbaymanD Offline
              developerbayman @AppLee
              last edited by

              @AppLee a lot of distros usually have a settling app to auto start stuff initiated by the desktop after boot Linux mint, Ubuntu....most distros and windows have one simple add program/script button add the path to the file or script and starts after desktop boots

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                captainfunk @developerbayman
                last edited by captainfunk

                @developerbayman
                Making a little script and make it autorun on startup could be a workaround to avoid doing the mount --bind command every time I reboot the phone but I don't know how to do this.
                Still, for each file that I want to copy into the shared folder I have to do the chown command again and again, that's the most problematic thing

                Google Pixel 3a XL - 20.04 Stable (OTA-8)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post