GithubHelp home page GithubHelp logo

andrevede / waydroid_script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from casualsnek/waydroid_script

0.0 0.0 0.0 21.72 MB

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !

License: GNU General Public License v3.0

Python 99.38% Nix 0.62%

waydroid_script's Introduction

Waydroid Extras Script

Script to add GApps and other stuff to Waydroid!

Installation/Usage

Interactive terminal interface

git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py

image-20230430013103883

image-20230430013119763

image-20230430013148814

Command Line

git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
# install something
sudo venv/bin/python3 main.py install {gapps, magisk, libndk, libhoudini, nodataperm, smartdock, microg, mitm}
# uninstall something
sudo venv/bin/python3 main.py uninstall {gapps, magisk, libndk, libhoudini, nodataperm, smartdock, microg}
# get Android device ID
sudo venv/bin/python3 main.py certified
# some hacks
sudo venv/bin/python3 main.py hack {nodataperm, hidestatusbar}

Dependencies

"lzip" is required for this script to work, install it using your distribution's package manager:

Arch, Manjaro and EndeavourOS based distributions:

sudo pacman -S lzip

Debian and Ubuntu based distributions:

sudo apt install lzip

RHEL, Fedora and Rocky based distributions:

sudo dnf install lzip

openSUSE based distributions:

sudo zypper install lzip

Install OpenGapps

Open terminal and switch to the directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install gapps

Then launch waydroid with:

waydroid show-full-ui

After waydroid has finished booting, open terminal and switch to directory where "main.py" is located then run:

sudo python3 main.py google

Copy the returned numeric ID, then open "https://google.com/android/uncertified/?pli=1". Enter the ID and register it. Wait 10-20 minutes for device to get registered. Then clear Google Play Service's cache and try logging in!

Install Magisk

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install magisk

Magisk will be installed on next boot!

Zygisk and modules like LSPosed should work now.

If you want to update Magisk, Please use Direct Install into system partition or run this sript again.

This script only focuses on Magisk installation, if you need more management, please check https://github.com/nitanmarcel/waydroid-magisk

Install libndk arm translation

libndk_translation from guybrush firmware.

libndk seems to have better performance than libhoudini on AMD.

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install libndk

Install libhoudini arm translation

Intel's libhoudini for intel/AMD x86 CPU, pulled from Microsoft's WSA 11 image

houdini version: 11.0.1b_y.38765.m

houdini64 version: 11.0.1b_z.38765.m

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install libhoudini

Integrate Widevine DRM (L3)

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install widevine

Install Smart Dock

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install smartdock

Install a self-signed CA certificate

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install mitm --ca-cert mycert.pem

Granting full permission for apps data (HACK)

This is a temporary hack to combat against the apps permission issue on Android 11. Whenever an app is open it will always enable a property (persist.sys.nodataperm) to make it execute a script to grant the data full permissions (777). The correct way is to use sdcardfs or esdfs, both need to recompile the kernel or WayDroid image.

Arknights, PUNISHING: GRAY RAVEN and other games won't freeze on the black screen.

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py hack nodataperm

WARNING: Tested on lineage-18.1-20230128-VANILLA-waydroid_x86_64.img. This script will replace /system/framework/service.jar, which may prevent WayDroid from booting. If so, run sudo venv/bin/python3 main.py uninstall nodataperm to remove it.

Or you can run the following commands directly in sudo waydroid shell. In this way, every time a new game is installed, you need to run it again, but it's much less risky.

chmod 777 -R /sdcard/Android
chmod 777 -R /data/media/0/Android 
chmod 777 -R /sdcard/Android/data
chmod 777 -R /data/media/0/Android/obb 
chmod 777 -R /mnt/*/*/*/*/Android/data
chmod 777 -R /mnt/*/*/*/*/Android/obb

Install microG, Aurora Store and Aurora Droid

sudo python main.py install microg

Hide Status Bar

Before Before

After After

sudo venv/bin/python3 main.py hack hidestatusbar

Get Android ID for device registration

You need to register you device with its it before being able to use gapps, this will print out your Android ID which you can use for device registration required for Google apps: Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py certified

Star this repository if you find this useful, if you encounter problem create an issue on GitHub!

Error handling

  • Magisk installed: N/A

Check waydroid-magisk

Credits

waydroid_script's People

Contributors

ayasa520 avatar casualsnek avatar wesleyvanneck avatar quackdoc avatar s1204it avatar mak448a avatar claui avatar mkg20001 avatar axolotlek avatar mistrmochov avatar 6yntar05 avatar aleasto avatar benjamin-loison avatar brccabral avatar dgdev91 avatar jamikettunen avatar linyinfeng avatar nightfeather avatar sufandom avatar softwarerat avatar tkkcc avatar cobalt2727 avatar tutacat avatar laichiaheng avatar

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.