casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.53k stars 147 forks source link

Latest libhoudini? #55

Open gasacchi opened 1 year ago

gasacchi commented 1 year ago

Just wondering if this script use lastest libhoudini, came across this post on reddit Latest Waydroid image now runs "Genshin Impact" on x86 Linux PC quote from OP in comment section:

You can downlaod lastest Android 11 images from Waydroid's sourceforge. Then follow this video to install custom Waydroid images. Remember to install libhoudini using casualsnek's scripts. Plus here is the newer version of libhoudini extracted from WSA.

i don't really know how it works, and i don't know if this can be use with this script. just want to share what i found.

Thank for the script btw, still try to play some game (Nikke goddess victory / Artery Gear) on waydroid) hope it'll run 😄

Etaash-mathamsetty commented 1 year ago

Just wondering if this script use lastest libhoudini, came across this post on reddit Latest Waydroid image now runs "Genshin Impact" on x86 Linux PC quote from OP in comment section:

You can downlaod lastest Android 11 images from Waydroid's sourceforge. Then follow this video to install custom Waydroid images. Remember to install libhoudini using casualsnek's scripts. Plus here is the newer version of libhoudini extracted from WSA.

i don't really know how it works, and i don't know if this can be use with this script. just want to share what i found.

Thank for the script btw, still try to play some game (Nikke goddess victory / Artery Gear) on waydroid) hope it'll run smile

I think it can be used in the script, somebody just has to upload a zipped version of the system folder and modify the python script to use it

ayasa520 commented 1 year ago

There is already a fork that does this, but it uses a third-party url https://github.com/LegacyGamerHD/waydroid_script

chenxiex commented 1 year ago

I have read the post, but I think what the poster really means is that the newer version of libhoudini is optional. I think the more important things may be the special script he mentioned later. It will be good that this script can update to the latest libhoudini, though. plus, waydroid now support android 11 as stable image. so i suppose the custom image isn't needed.

casualsnek commented 1 year ago

I have not updated the script because i don't use waydroid right now and adding script with untested version does not seem like a good idea to me !

ayasa520 commented 1 year ago

If you haven't solved it yet, you can watch the video he posted on bilibili. Chinese may not be very understandable though. https://www.bilibili.com/video/BV1vt4y1K7rw

Or you can refer to the text version. https://ivonblog.com/posts/waydroid-android11-custom-images/

chenxiex commented 1 year ago

If you haven't solved it yet, you can watch the video he posted on bilibili. Chinese may not be very understandable though. https://www.bilibili.com/video/BV1vt4y1K7rw

Or you can refer to the text version. https://ivonblog.com/posts/waydroid-android11-custom-images/

I have read the blog and tried it out. I will explain howto in English.

First, waydroid have officially support android 11 a few days ago, so upgrade your image to the newest version sudo waydroid upgrade

Second, install the libhoudini from wsa.

  1. prepare the libhoudini file
    
    git clone https://github.com/natsumerinchan/libhoudini-package.git

cd libhoudini-package

zip -r libhoudini.zip system

2. get the md5sum of the file, write it down.
`md5sum libhoudini.zip`
3. move the file to the folder where waydroid_script can find it
`sudo mv  libhoudini.zip ~/.cache/waydroid_script/downloads/`
4. edit the `install_houdin()` line in waydroid_scipt and replace the `act_md5` value with the md5sum you get above
5. follow the README of waydroid_script to install the libhoudini.

Now you have already installed the new libhoudini. But if you want to run Genshin impact, here are some extra steps.
1. push the script from ilhan-athn7 to waydroid using adb

cd ~

git clone https://github.com/ilhan-athn7/WSA_houdini_A12.1.git

adb connect <Waydroid's IP>:5555

adb -s <Waydroid's IP>:5555 push ~/WSA_houdini_A12.1/GI_affinity_workaround/* /sdcard

you can get waydroid's IP in the settings app in waydroid.
plus, if you play the Chinese version of Genshin Impact, you should edit the script and replace the package name with the real package name in advance. for example, replace all the "com.miHoYo.GenshinImpact" with "com.miHoYo.Yuanshen"
2. run the script in waydroid shell

sudo waydroid shell

cd /sdcard sh Genshin_start.sh

this will start Genshin Impact and limit it to use only 2 cores, thus avoiding crashes in loading process
when the loading process end and you see the door, remove the limit:

sh Genshin_8core.sh


now enjoy the game! the highest quality runs fluently on my intel core i7-1165g7 laptop. the only pity is that you can't map your keyboard to play the game. so the best experience need a touchscreen.