Giter Site home page Giter Site logo

Comments (5)

casualsnek avatar casualsnek commented on June 9, 2024 1

/tmp is cleared across reboots. At least on Arch Linux, it is actually a tmpfs that is on RAM. Every time I re-init waydroid and reinstall libhoudini, the script re-downloads the tarball. Perhaps it would be better if the downloaded files are placed in persistent directories, such as /var/cache and /var/tmp.

Thanks, i think i could use XDG_CACHE_DIR/waydroid_script for storing the downloaded files !

BTW, some common external downloaders, such as wget and aria2, would be more robust and allow continuation.
I think it can be done with requests library instead of depending on external binaries !

I will probably push the changes you mentioned today :)

from waydroid_script.

casualsnek avatar casualsnek commented on June 9, 2024

I just pushed a change that should download file in /home/user/.cache/waydroid_script/downloads directory, can you check if its working fine and close the issue if your issue is solved with the new change !

from waydroid_script.

SamLukeYes avatar SamLukeYes commented on June 9, 2024

I just pushed a change that should download file in /home/user/.cache/waydroid_script/downloads directory, can you check if its working fine and close the issue if your issue is solved with the new change !

Hmm, I tried installing Magisk for testing. The downloaded files exists in ~/.cache/waydroid_script/downloads as expected, but there's still something wrong:

==> Installing magisk now ...
Traceback (most recent call last):
  File "/usr/bin/waydroid-extras", line 595, in <module>
    main()
  File "/usr/bin/waydroid-extras", line 590, in main
    install_magisk()
  File "/usr/bin/waydroid-extras", line 507, in install_magisk
    shutil.copyfile(os.path.join(extract_to, arch_dir, "magiskinit{arch}".format(arch=arch)),
  File "/usr/lib/python3.10/shutil.py", line 256, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/waydroidimage/sbin/magiskinit'

from waydroid_script.

casualsnek avatar casualsnek commented on June 9, 2024

I just pushed a change that should download file in /home/user/.cache/waydroid_script/downloads directory, can you check if its working fine and close the issue if your issue is solved with the new change !

Hmm, I tried installing Magisk for testing. The downloaded files exists in ~/.cache/waydroid_script/downloads as expected, but there's still something wrong:

==> Installing magisk now ...
Traceback (most recent call last):
  File "/usr/bin/waydroid-extras", line 595, in <module>
    main()
  File "/usr/bin/waydroid-extras", line 590, in main
    install_magisk()
  File "/usr/bin/waydroid-extras", line 507, in install_magisk
    shutil.copyfile(os.path.join(extract_to, arch_dir, "magiskinit{arch}".format(arch=arch)),
  File "/usr/lib/python3.10/shutil.py", line 256, in copyfile
    with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/waydroidimage/sbin/magiskinit'

are you using android 11 images ? Since i have not got magisk to work properly on a11, i have not made magisk installation compatible with a11 ! This error is most likely due to missing sbin directory on android 11

from waydroid_script.

SamLukeYes avatar SamLukeYes commented on June 9, 2024

Oh yes, I'm using the Android 11 image. Tried installing libhoudini later, and it works as expected.

from waydroid_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.