For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine binary, saving it in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.
To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:
sudo tar Cfx / widevine-flash-20200124_armhf.tgz
(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)
#!/bin/sh | |
# curl -sL https://gist.githubusercontent.com/iuridiniz/8cc331f4cc22f266b6c2614bfefbd46e/raw/00-swap.sh | bash - | |
set -x -e | |
[ -e /swap ] && exit 1 | |
# create swap file | |
dd if=/dev/zero of=/swap count=2048 bs=1M | |
# format the file |
# | |
# General configuration | |
# | |
# start-default-seat = True to always start one seat if none are defined in the configuration | |
# greeter-user = User to run greeter as | |
# minimum-display-number = Minimum display number to use for X servers | |
# minimum-vt = First VT to run displays on | |
# lock-memory = True to prevent memory from being paged to disk | |
# user-authority-in-system-dir = True if session authority should be in the system location | |
# guest-account-script = Script to be run to setup guest account |
# ... more above ... | |
# wsfl bash is not a login shell | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
# ssh-agent configuration | |
if [ -z "$(pgrep ssh-agent)" ]; then | |
rm -rf /tmp/ssh-* |
#!/usr/bin/python3 | |
import http.server, ssl, argparse, re | |
from tempfile import mkdtemp | |
from shutil import rmtree | |
from contextlib import contextmanager | |
from os.path import exists, join, abspath | |
@contextmanager | |
def TemporaryDirectory(): | |
name = mkdtemp() |
# wkhtmltopdf from: http://wkhtmltopdf.org/downloads.html | |
FROM centos:7 | |
MAINTAINER Eric Siegel <[email protected]> | |
# Upgrade packages & repo | |
RUN yum -y update | |
# wkhtmltopdf's dependencies | |
RUN yum -y install zlib fontconfig freetype libX11 libXext libXrender | |
# Download x64 static build of wkhtmltox (with patched QT) |