Giter Site home page Giter Site logo

Comments (5)

casualsnek avatar casualsnek commented on June 2, 2024

https://github.com/electrikjesus/waydroid_script/blob/s-x86/waydroid_extras.py#L166
changing:
shutil.copytree(os.path.join(app_src_dir, app), os.path.join(sys_image_mount, "system", "priv-app", app), dirs_exist_ok=True)

to

shutil.copytree(os.path.join(app_src_dir, app), os.path.join(sys_image_mount, "system", "spp", app), dirs_exist_ok=True)

should move apk to the spp directory instead of priv-app directory,
( if i got your question correctly,(English is not my primary language) )

from waydroid_script.

electrikjesus avatar electrikjesus commented on June 2, 2024

Kinda, I am trying to figure out a way to get it to detect if the archive has the apk in nodpi/app or nodpi/priv-app, and have it place it in the correct destination from there.

from waydroid_script.

electrikjesus avatar electrikjesus commented on June 2, 2024

This could also help the same issue with Magisk wanting to run from app instead of priv-app too

from waydroid_script.

casualsnek avatar casualsnek commented on June 2, 2024

Kinda, I am trying to figure out a way to get it to detect if the archive has the apk in nodpi/app or nodpi/priv-app, and have it place it in the correct destination from there.

https://github.com/electrikjesus/waydroid_script/blob/s-x86/waydroid_extras.py#L163

app_priv = os.listdir(os.path.join(extract_to, "appunpack", app_name, "nodpi"))[0]

After this variable gets assigned you can check if it's equals 'priv-app' or just 'app'.

https://github.com/electrikjesus/waydroid_script/blob/s-x86/waydroid_extras.py#L166

shutil.copytree(os.path.join(app_src_dir, app), os.path.join(sys_image_mount, "system", "priv-app", app), dirs_exist_ok=True)

Just replacing "priv-app" in above line directly to app_priv variable so that it looks like this should work :

shutil.copytree(os.path.join(app_src_dir, app), os.path.join(sys_image_mount, "system", app_priv, app), dirs_exist_ok=True)

( Now i will also modify my script to put the apps in their correct place thanks ! )

from waydroid_script.

electrikjesus avatar electrikjesus commented on June 2, 2024

That works. Although depending on the gapps package, it does get caught up when it comes across a "common" folder it wasn't expecting.

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.