Setup:
Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
# Requires pdfminer, icalendar | |
# both are easy_install'able | |
import itertools, re | |
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer.converter import TextConverter | |
from pdfminer.layout import LAParams | |
from pdfminer.pdfpage import PDFPage | |
from cStringIO import StringIO | |
from datetime import date, time, datetime, timedelta |
#!/bin/sh | |
# place this file at: /etc/hotplug.d/iface/99-login-fon | |
# Configurations | |
FON_USERNAME=email%40domain.com | |
FON_PASSWORD=123456 | |
FON_DELAY_UP=3 | |
COOKIE_JAR_PATH=/tmp/nos-fon-cookie-jar.$INTERFACE | |
. /lib/functions.sh |
This will configure QEMU to expose a tmp105 temperature sensor on the i2c-0 bus on x86_64. The temterature sensor can have its temperature set from the host OS, and the temperature can be read from the Linux client OS using the lm75 kernel module.
For convenience, we will be emulating an x86 system. The x86 configuations which QEMU ships with do not contain the tmp105 sensor we will be using, so first we need to enable it.
Assuming you have the qemu sources in the qemu
directory:
# cd qemu