Giter Club home page Giter Club logo

waydroid_script's Introduction

Waydroid Extras Script

Since waydroid images with libndk/gapps/magisk and libhoudini are already available. This script has little to no use. So, i am archiving this repository. If you have any questions or queries, my Inbox is available at casualsnek(at)pm(d0t)me. Free free to send emails :)

Visits Badge

Script to add gapps and other stuff to waydroid !

Installation/Usage

"lzip" and "sqlite" 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 sqlite

Debian and Ubuntu based distributions:

sudo apt install lzip sqlite  

RHEL, Fedora and Rocky based distributions:

sudo dnf install lzip sqlite

openSUSE based distributions:

sudo zypper install lzip sqlite

Then run:

git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
sudo python3 -m pip install -r requirements.txt
sudo python3 waydroid_extras.py [-i/-g/-n/-h]

Install OpenGapps

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

sudo python3 waydroid_extras.py -g

Then restart waydroid service with command below :

sudo systemctl start waydroid-container.service

Then launch waydroid with:

waydroid show-full-ui

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

sudo python3 waydroid_extras.py -i

Copy the returned numeric ID open "https://google.com/android/uncertified/?pli=1" enter the id and register it, you may need to wait upto 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 "waydroid_extras.py" is located then run:

sudo python3 waydroid_extras.py -m

Then restart waydroid service with command below :

sudo systemctl start waydroid-container.service

Magisk will be installed on next boot ! Note That this is bootless installation and modules don't work as of now !

Install libndk arm translation

This may or may not work properly and is only for testing: Open terminal and switch to directory where "waydroid_extras.py" is located then run:

sudo python3 waydroid_extras.py -n

Then restart waydroid service with command below :

sudo systemctl start waydroid-container.service

Install libhoudini arm translation

This may or may not work properly and is only for testing: ( Much stable than libndk ) and works on android 11 images Open terminal and switch to directory where "waydroid_extras.py" is located then run:

sudo python3 waydroid_extras.py -l

Then restart waydroid service with command below :

sudo systemctl start waydroid-container.service

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 "waydroid_extras.py" is located then run:

sudo python3 waydroid_extras.py -i

Star this repository if you find this useful, if you encounter problem create a issue on github !

Error handling

In case of error, if you retry immediately and it fails with this error

==> Failed to resize image '/var/lib/waydroid/images/system.img' .. !  e2fsck 1.45.5 (07-Jan-2020)
/var/lib/waydroid/images/system.img is mounted.
e2fsck: Cannot continue, aborting.

You need to get the mounting point using df | grep waydroid. It will be something like /dev/loopXXX. Then, unmount it

sudo umount /dev/loopXXX

And re-run the script.

waydroid_script's People

Contributors

casualsnek avatar 6yntar05 avatar brccabral avatar dgdev91 avatar nightfeather avatar softwarerat 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.