Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38ff7f82e8 | ||
|
|
36a32147d9 | ||
|
|
24b018cea6 | ||
|
|
7bbfbbe759 | ||
|
|
ea1ed1e5b7 | ||
|
|
86987b87fc | ||
|
|
3dfd657dff | ||
|
|
3de27740f4 | ||
|
|
f104a113b7 | ||
|
|
ecde0100d1 | ||
|
|
710bf5058b | ||
|
|
30c05d76b8 | ||
|
|
54bd589d0e | ||
|
|
dddb2b399c | ||
|
|
12cfe20dc2 | ||
|
|
c8a017413b | ||
|
|
4da17a6cae | ||
|
|
1c5ea0d1c8 | ||
|
|
62a95b2246 | ||
|
|
7408d76b44 | ||
|
|
2dfacddde2 | ||
|
|
9fc32a6773 | ||
|
|
4a19ff485f | ||
|
|
ebf9fa3e82 | ||
|
|
fc5a5d77d8 | ||
|
|
b3996e3a5e | ||
|
|
03f833b327 | ||
|
|
ca1967e1cf | ||
|
|
7caeb1d97b | ||
|
|
66bf4aee07 | ||
|
|
73a446faed | ||
|
|
4533cfabc0 | ||
|
|
cc3178359e | ||
|
|
0735577db5 | ||
|
|
0e14aeb701 | ||
|
|
ac49ebcb62 | ||
|
|
701c7ee6c8 | ||
|
|
7f828da11f | ||
|
|
4aa19ee996 | ||
|
|
7960770fb1 | ||
|
|
d3b464ec55 | ||
|
|
8e36bceca4 | ||
|
|
2245348363 | ||
|
|
2a9538a2e4 | ||
|
|
d172c7fc55 | ||
|
|
303a0c396c | ||
|
|
3eb7a6a503 | ||
|
|
92da240e67 | ||
|
|
cb3d667882 | ||
|
|
897e236d8f | ||
|
|
c5ea192cb6 | ||
|
|
8959bbfdd4 | ||
|
|
9260c9a758 | ||
|
|
fc7ce37a73 | ||
|
|
df06fdd0e7 | ||
|
|
c2c03e5c85 | ||
|
|
4849147eac | ||
|
|
f7277f760c | ||
|
|
7a10f51cca | ||
|
|
46682e1d62 | ||
|
|
fdfd569a60 | ||
|
|
050994cc72 | ||
|
|
3af95708e3 | ||
|
|
2281b9847f | ||
|
|
a139a5d476 | ||
|
|
348134d658 | ||
|
|
e86b39a069 | ||
|
|
e24958495e | ||
|
|
1edf472442 | ||
|
|
eacc6e57e5 | ||
|
|
02cb812ece | ||
|
|
e520b913c3 | ||
|
|
956ec6d786 | ||
|
|
b5e5de53c9 | ||
|
|
a9c0b275e6 | ||
|
|
2278ede901 | ||
|
|
e438423bfb | ||
|
|
b026aa7bbb | ||
|
|
fb25a059ab | ||
|
|
16672b6534 | ||
|
|
0655ea5512 | ||
|
|
97f13828d6 | ||
|
|
cf133e31e0 | ||
|
|
23b7a197d7 | ||
|
|
2e42712d68 | ||
|
|
778139758f | ||
|
|
07ea7551ae | ||
|
|
72272dc1d4 | ||
|
|
65cca94842 | ||
|
|
8b4bfa1662 | ||
|
|
fafd7a9d69 | ||
|
|
455ba48b69 | ||
|
|
a1d0e9784b |
No files matched your search
@@ -1,40 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates the contributions table in README.md, between its markers, from the repository's
|
||||
# pull requests: one row per pull request by anyone but the owner, and a line of totals per
|
||||
# contributor. Run by the Contributions ledger workflow when a pull request is opened, merged or
|
||||
# closed, and by hand with: gh auth status && .github/scripts/contributions.sh OWNER/REPO
|
||||
set -euo pipefail
|
||||
REPO=${1:-The412Banner/SteamDeck}
|
||||
OWNER=${REPO%%/*}
|
||||
ROWS=$(gh api "repos/$REPO/pulls?state=all&per_page=100" --paginate \
|
||||
--jq '.[] | select(.user.login != "'"$OWNER"'")
|
||||
| [.user.login, .number, (.title | gsub("\\|"; "\\\\|")), (.created_at[0:10]),
|
||||
(if .merged_at then "merged " + .merged_at[0:10] elif .state == "closed" then "closed" elif .draft then "draft" else "open" end),
|
||||
.html_url] | @tsv' | sort -t"$(printf '\t')" -k1,1 -k2,2n)
|
||||
{
|
||||
echo "<!-- contributions:start -->"
|
||||
echo "_From the repository's pull requests; rewritten when one is opened, merged or closed._"
|
||||
echo
|
||||
echo "| Contributor | Pull request | Opened | State |"
|
||||
echo "|---|---|---|---|"
|
||||
if [ -z "$ROWS" ]; then
|
||||
echo "| — | none yet | | |"
|
||||
else
|
||||
while IFS=$'\t' read -r login num title opened state url; do
|
||||
echo "| [@$login](https://github.com/$login) | [#$num]($url) $title | $opened | $state |"
|
||||
done <<< "$ROWS"
|
||||
echo
|
||||
printf '%s\n' "$ROWS" | awk -F'\t' 'NF { t[$1]++; if ($5 ~ /^merged/) m[$1]++ } END { for (l in t) printf("- **@%s**: %d submitted, %d merged\n", l, t[l], m[l] + 0) }' | sort
|
||||
fi
|
||||
echo "<!-- contributions:end -->"
|
||||
} > /tmp/contributions.md
|
||||
python3 - <<'PY'
|
||||
import re
|
||||
s = open('README.md').read()
|
||||
new = open('/tmp/contributions.md').read().rstrip('\n')
|
||||
out, n = re.subn(r'<!-- contributions:start -->.*?<!-- contributions:end -->', lambda m: new, s, flags=re.S)
|
||||
if n != 1:
|
||||
raise SystemExit("README.md has no contributions markers")
|
||||
open('README.md', 'w').write(out)
|
||||
PY
|
||||
echo "README.md: contributions table rewritten"
|
||||
@@ -1,378 +0,0 @@
|
||||
name: Build APK
|
||||
|
||||
# One job: the two glibc preload libraries the session needs, then the app around them.
|
||||
# Nothing is built on a developer machine — this workflow is the only thing that produces an apk.
|
||||
#
|
||||
# This repo is private, so every minute here is billed. Three caches carry the cost of a rebuild
|
||||
# down to what actually changed:
|
||||
# • Gradle's own (dependencies, wrapper, build cache, configuration cache) via setup-gradle
|
||||
# • the CMake/ninja tree, so a Kotlin-only change does not recompile the compositor
|
||||
# • the two cross-compiled preloads, which also skips installing the cross toolchain
|
||||
# A run that changes only Kotlin should not touch the C compiler at all.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
# Documentation changes cannot alter the apk, so they do not buy a build.
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
- 'LICENSE'
|
||||
- '.gitignore'
|
||||
# A pull request against main builds by itself: the contributor's branch, as it would be once
|
||||
# merged onto main, comes back as an apk on the run without anyone here pressing a button.
|
||||
# Every push to the pull request rebuilds it and cancels the build it replaces; a draft waits
|
||||
# until it is marked ready. pull_request_target rather than pull_request: GitHub does not run
|
||||
# the latter at all while a pull request conflicts with main, and saying what conflicts is the
|
||||
# point. The workflow file is always main's; the pull request's own code is checked out below.
|
||||
pull_request_target:
|
||||
branches: [ main ]
|
||||
types: [ opened, synchronize, reopened, ready_for_review ]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
- 'LICENSE'
|
||||
- '.gitignore'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
# The pull-request report below is one comment on the pull request, kept up to date.
|
||||
pull-requests: write
|
||||
|
||||
# A newer push makes the running build pointless; stop paying for it.
|
||||
concurrency:
|
||||
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# Bump to force the preload cache to miss (e.g. after changing a compiler flag below).
|
||||
PRELOAD_CACHE_VERSION: v1
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: ${{ github.event_name != 'pull_request_target' || !github.event.pull_request.draft }}
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
# A pull request is checked out at its own head with full history, not at GitHub's merge
|
||||
# ref: that ref does not exist while the pull request conflicts with main, and the point of
|
||||
# the next step is to say so and show where.
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
|
||||
# Full history: the merge below needs it (a shallow clone refuses to merge at all).
|
||||
fetch-depth: 0
|
||||
|
||||
# The pull request as it would be once merged onto main is what gets built. When it cannot
|
||||
# be merged, the conflicting files and the conflicting hunks go into the run summary and the
|
||||
# pull-request comment, and the job stops here: there is nothing coherent to build.
|
||||
- name: Merge onto main, or say what conflicts
|
||||
if: github.event_name == 'pull_request_target'
|
||||
run: |
|
||||
set -uo pipefail
|
||||
git config user.name "ci"
|
||||
git config user.email "ci@users.noreply.github.com"
|
||||
git fetch --no-tags origin main
|
||||
BASE=$(git rev-parse --short origin/main)
|
||||
HEAD=$(git rev-parse --short HEAD)
|
||||
if git merge --no-ff --no-edit origin/main >/tmp/merge.out 2>&1; then
|
||||
{
|
||||
echo "### ✅ Mergeable"
|
||||
echo
|
||||
echo "\`$HEAD\` merges cleanly onto main (\`$BASE\`). What follows was built from the merged result."
|
||||
} > /tmp/pr-merge.md
|
||||
cat /tmp/pr-merge.md >> "$GITHUB_STEP_SUMMARY"
|
||||
exit 0
|
||||
fi
|
||||
FILES=$(git diff --name-only --diff-filter=U)
|
||||
if [ -z "$FILES" ]; then
|
||||
# The merge did not even start (git said why): quote it rather than list nothing.
|
||||
{
|
||||
echo "### ❌ Could not merge onto main (\`$BASE\`)"
|
||||
echo
|
||||
echo '```'
|
||||
cat /tmp/merge.out
|
||||
echo '```'
|
||||
} > /tmp/pr-merge.md
|
||||
cat /tmp/pr-merge.md >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "::error::git could not merge main: $(head -3 /tmp/merge.out | tr '\n' ' ')"
|
||||
exit 1
|
||||
fi
|
||||
{
|
||||
echo "### ❌ Not mergeable — conflicts with main (\`$BASE\`)"
|
||||
echo
|
||||
echo "Files that conflict:"
|
||||
echo
|
||||
for f in $FILES; do echo "- \`$f\`"; done
|
||||
echo
|
||||
echo "Each conflicting hunk, as git leaves it: \`<<<<<<< HEAD\` is this pull request, \`>>>>>>> origin/main\` is main."
|
||||
echo
|
||||
for f in $FILES; do
|
||||
echo "<details><summary><code>$f</code></summary>"
|
||||
echo
|
||||
echo '```'
|
||||
awk '/^<<<<<<< /{p=1} p{print} /^>>>>>>> /{p=0}' "$f" | head -300
|
||||
echo '```'
|
||||
echo "</details>"
|
||||
echo
|
||||
done
|
||||
echo "Not built: rebase or merge main into the branch and push again."
|
||||
} > /tmp/pr-merge.md
|
||||
cat /tmp/pr-merge.md >> "$GITHUB_STEP_SUMMARY"
|
||||
git merge --abort || true
|
||||
echo "::error::the pull request conflicts with main: $(echo $FILES | tr '\n' ' ')"
|
||||
exit 1
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
|
||||
# Caches ~/.gradle (dependencies, wrapper distribution, build cache, configuration cache)
|
||||
# and prunes what the run did not use, so the entry cannot grow without bound.
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
cache-cleanup: on-success
|
||||
|
||||
- name: Resolve the runner's NDK
|
||||
run: |
|
||||
NDK="${ANDROID_NDK_LATEST_HOME:-${ANDROID_NDK_HOME:-$ANDROID_NDK_ROOT}}"
|
||||
VERSION=$(sed -n 's/^Pkg.Revision *= *//p' "$NDK/source.properties")
|
||||
echo "NDK $VERSION at $NDK"
|
||||
echo "NDK_VERSION=$VERSION" >> "$GITHUB_ENV"
|
||||
|
||||
# ── The session's preloads ───────────────────────────────────────────────────────────
|
||||
# Both are glibc aarch64 libraries that live inside the rootfs, so they are cross-compiled
|
||||
# here rather than by the NDK. They ship in assets (not in the runtime tarball) so a fix in
|
||||
# either reaches an already-installed runtime on the next launch instead of waiting on a
|
||||
# ~790 MB runtime re-host. Their inputs change rarely, so most runs restore them.
|
||||
- name: Cache the preloads
|
||||
id: preloads
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: app/src/main/assets/linuxfs
|
||||
key: preloads-${{ env.PRELOAD_CACHE_VERSION }}-${{ hashFiles('app/src/main/cpp/fakeinput_steam.cpp', 'tools/linuxfs/preload/*.c', 'tools/linuxfs/overlay/usr/local/bin/*', 'tools/linuxfs/desktop/*') }}
|
||||
|
||||
- name: Build libfakeinput.so and libblsession.so (glibc aarch64)
|
||||
if: steps.preloads.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y -qq gcc-aarch64-linux-gnu g++-aarch64-linux-gnu >/dev/null
|
||||
D=app/src/main/assets/linuxfs
|
||||
mkdir -p "$D"
|
||||
# Statically linked C++ runtime: this is preloaded into every Steam process, and Steam
|
||||
# ships its own libstdc++ while rewriting LD_LIBRARY_PATH. Pulling the system one in
|
||||
# ahead of it is a version conflict waiting to happen. Only libc is left as a dependency.
|
||||
aarch64-linux-gnu-g++ -shared -fPIC -O2 -Wall -Wno-attributes -Wno-nonnull-compare \
|
||||
-pthread -std=c++17 -static-libstdc++ -static-libgcc \
|
||||
-o "$D/libfakeinput.so" app/src/main/cpp/fakeinput_steam.cpp -ldl
|
||||
aarch64-linux-gnu-strip --strip-unneeded "$D/libfakeinput.so"
|
||||
aarch64-linux-gnu-gcc -shared -fPIC -O2 -Wall -pthread \
|
||||
-o "$D/libblsession.so" tools/linuxfs/preload/*.c -ldl
|
||||
aarch64-linux-gnu-strip --strip-unneeded "$D/libblsession.so"
|
||||
# The session's scripts travel the same way, for the same reason.
|
||||
for script in tools/linuxfs/overlay/usr/local/bin/bannerlator-*; do
|
||||
install -Dm644 "$script" "$D/usr/local/bin/$(basename "$script")"
|
||||
done
|
||||
# And the desktop's launcher and labwc defaults, staged over the desktop package's copies.
|
||||
install -Dm644 tools/linuxfs/desktop/steamdeck-desktop "$D/usr/local/bin/steamdeck-desktop"
|
||||
install -Dm644 tools/linuxfs/desktop/autostart "$D/etc/xdg/labwc/autostart"
|
||||
install -Dm644 tools/linuxfs/desktop/rc.xml "$D/etc/xdg/labwc/rc.xml"
|
||||
install -Dm644 tools/linuxfs/desktop/panel.conf "$D/etc/xdg/lxqt/panel.conf"
|
||||
install -Dm644 tools/linuxfs/desktop/firefox-steamdeck.js "$D/usr/lib/firefox/defaults/pref/steamdeck.js"
|
||||
ls -lR "$D"
|
||||
|
||||
# Runs whether the preloads were built or restored: readelf reads any ELF whatever the host,
|
||||
# so these assertions cost nothing and need no cross toolchain.
|
||||
- name: Check the preloads
|
||||
run: |
|
||||
set -euo pipefail
|
||||
D=app/src/main/assets/linuxfs
|
||||
NEED=$(readelf -d "$D/libfakeinput.so" | sed -n 's/.*NEEDED.*\[\(.*\)\]/\1/p')
|
||||
echo "libfakeinput NEEDED: $NEED"
|
||||
for bad in libstdc++.so.6 libgcc_s.so.1; do
|
||||
if printf '%s\n' "$NEED" | grep -qx "$bad"; then
|
||||
echo "::error::libfakeinput.so links $bad — the C++ runtime must stay static"; exit 1
|
||||
fi
|
||||
done
|
||||
syms() { readelf -Ws "$1" | awk '$4 == "FUNC" && $5 == "GLOBAL" {sub(/@.*/, "", $8); print $8}'; }
|
||||
# The interposers are the whole point: if one is missing the client sees no controller.
|
||||
FAKE=$(syms "$D/libfakeinput.so")
|
||||
for sym in open openat ioctl read close poll ppoll select stat fstat access scandir; do
|
||||
grep -qx "$sym" <<<"$FAKE" || { echo "::error::libfakeinput.so does not export $sym"; exit 1; }
|
||||
done
|
||||
SESSION=$(syms "$D/libblsession.so")
|
||||
for sym in socket bind getsockname setsockopt statfs statvfs; do
|
||||
grep -qx "$sym" <<<"$SESSION" || { echo "::error::libblsession.so does not export $sym"; exit 1; }
|
||||
done
|
||||
test -f "$D/usr/local/bin/bannerlator-session"
|
||||
test -f "$D/usr/local/bin/bannerlator-proton-extra"
|
||||
echo "preloads check out"
|
||||
|
||||
# ── The native build ─────────────────────────────────────────────────────────────────
|
||||
# The compositor and adrenotools are the slowest part of a build and change least often.
|
||||
# The key pins the C sources and the NDK; the restore-key still hands an older tree to
|
||||
# ninja, which then rebuilds only the files that differ.
|
||||
- name: Cache the CMake build tree
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
app/.cxx
|
||||
app/build/intermediates/cxx
|
||||
key: cxx-${{ env.NDK_VERSION }}-${{ hashFiles('app/src/main/cpp/**') }}
|
||||
restore-keys: |
|
||||
cxx-${{ env.NDK_VERSION }}-
|
||||
|
||||
# Release, not debug: AGP quietly drops v1 (JAR) signing from a debug build once minSdk is
|
||||
# 24 or higher, and the apk has to carry all three schemes. Nothing is minified either way.
|
||||
# The whole log is kept so a failed build's errors can be quoted back on a pull request.
|
||||
- name: Build
|
||||
id: build
|
||||
run: |
|
||||
set -o pipefail
|
||||
./gradlew assembleRelease --console=plain -PndkVersion="$NDK_VERSION" 2>&1 | tee /tmp/build.log
|
||||
|
||||
- name: Describe the apk
|
||||
run: |
|
||||
set -euo pipefail
|
||||
APK=$(find app/build/outputs/apk -name '*.apk' | head -1)
|
||||
echo "apk: $APK"
|
||||
ls -l "$APK"
|
||||
sha256sum "$APK"
|
||||
unzip -l "$APK" | grep -E 'lib/arm64-v8a|assets/linuxfs' | head -30
|
||||
|
||||
# Every NEEDED of every library we ship must resolve inside the apk or on the device. The
|
||||
# first build shipped libwayland-server.so without libffi.so, and the app died on
|
||||
# System.loadLibrary the moment a session started — a check this step would have caught.
|
||||
- name: Check the native dependency closure
|
||||
run: |
|
||||
set -euo pipefail
|
||||
APK=$(find app/build/outputs/apk -name '*.apk' | head -1)
|
||||
WORK=$(mktemp -d)
|
||||
unzip -q "$APK" 'lib/arm64-v8a/*' -d "$WORK"
|
||||
cd "$WORK/lib/arm64-v8a"
|
||||
# Provided by the platform, so never packaged.
|
||||
SYSTEM="libc.so libm.so libdl.so liblog.so libandroid.so libz.so libvulkan.so
|
||||
libGLESv2.so libEGL.so libnativewindow.so libjnigraphics.so libaaudio.so
|
||||
libOpenSLES.so libmediandk.so libcamera2ndk.so libsync.so libneuralnetworks.so"
|
||||
fail=0
|
||||
for so in *.so; do
|
||||
for need in $(readelf -d "$so" | sed -n 's/.*NEEDED.*\[\(.*\)\]/\1/p'); do
|
||||
[ -f "$need" ] && continue
|
||||
# $SYSTEM spans lines; unquoted echo folds its newlines to spaces, or the last
|
||||
# name on each line could never match (libaaudio.so did not, for the relay helper).
|
||||
case " $(echo $SYSTEM) " in *" $need "*) continue ;; esac
|
||||
echo "::error::$so needs $need, which is neither in the apk nor a platform library"
|
||||
fail=1
|
||||
done
|
||||
done
|
||||
[ "$fail" = 0 ] && echo "every NEEDED resolves"
|
||||
exit $fail
|
||||
|
||||
# AGP signs with v2+v3 and drops v1 whenever minSdk is 24 or higher, and setting
|
||||
# enableV1Signing in the DSL does not move it. Re-signing here with apksigner is the one way
|
||||
# to be sure of what the apk carries: zipalign first, then all three schemes explicitly.
|
||||
- name: Sign with the testkey (v1 + v2 + v3)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
APK=$(find app/build/outputs/apk -name '*.apk' | head -1)
|
||||
TOOLS=$(find "$ANDROID_HOME/build-tools" -maxdepth 1 -type d | sort -V | tail -1)
|
||||
"$TOOLS/zipalign" -p -f 4 "$APK" "$APK.aligned"
|
||||
"$TOOLS/apksigner" sign \
|
||||
--ks keystore/testkey.p12 --ks-type PKCS12 --ks-pass pass:android \
|
||||
--ks-key-alias testkey --key-pass pass:android \
|
||||
--v1-signing-enabled true --v2-signing-enabled true --v3-signing-enabled true \
|
||||
--out "$APK" "$APK.aligned"
|
||||
rm -f "$APK.aligned" "$APK.idsig"
|
||||
|
||||
# The apk must stay installable over the last one, and on every Android version: that means
|
||||
# one stable key and all three signature schemes. Cheap to assert, easy to lose silently.
|
||||
- name: Check the signature
|
||||
run: |
|
||||
set -euo pipefail
|
||||
APK=$(find app/build/outputs/apk -name '*.apk' | head -1)
|
||||
APKSIGNER=$(find "$ANDROID_HOME/build-tools" -name apksigner | sort -V | tail -1)
|
||||
# --min-sdk-version 21: apksigner only verifies the schemes an apk's own minSdk requires,
|
||||
# so at minSdk 26 it reports v1 as false whether or not the JAR signature is there.
|
||||
# Asking it to verify from 21 makes it actually look.
|
||||
"$APKSIGNER" verify --min-sdk-version 21 --verbose --print-certs "$APK" | tee /tmp/sig.txt
|
||||
# And the files themselves, which is what an old installer reads.
|
||||
unzip -l "$APK" | grep -qE 'META-INF/.*\.(SF|RSA|DSA)$' \
|
||||
|| { echo "::error::apk carries no JAR signature files"; exit 1; }
|
||||
for scheme in "v1 scheme (JAR signing): true" "v2 scheme (APK Signature Scheme v2): true" \
|
||||
"v3 scheme (APK Signature Scheme v3): true"; do
|
||||
grep -qF "$scheme" /tmp/sig.txt || { echo "::error::apk is not signed with $scheme"; exit 1; }
|
||||
done
|
||||
grep -qi "CN=Android, OU=Android, O=Android" /tmp/sig.txt \
|
||||
|| { echo "::error::apk is not signed with the AOSP testkey"; exit 1; }
|
||||
|
||||
# ── The pull-request report ──────────────────────────────────────────────────────────
|
||||
# One comment per pull request, rewritten on every push: whether it merges, and when the
|
||||
# build failed, the compiler's own errors with paths made short. Fork pull requests carry a
|
||||
# read-only token and cannot comment; the same text is in the run summary either way.
|
||||
- name: Report on the pull request
|
||||
if: always() && github.event_name == 'pull_request_target'
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
PR: ${{ github.event.pull_request.number }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
BUILD_OUTCOME: ${{ steps.build.outcome }}
|
||||
run: |
|
||||
set -uo pipefail
|
||||
MARK="<!-- steamdeck-pr-build -->"
|
||||
{
|
||||
echo "$MARK"
|
||||
echo "## Build of this pull request"
|
||||
echo
|
||||
[ -f /tmp/pr-merge.md ] && cat /tmp/pr-merge.md
|
||||
echo
|
||||
case "$BUILD_OUTCOME" in
|
||||
success)
|
||||
echo "### ✅ Build passed"
|
||||
echo
|
||||
echo "The apk is the \`steamdeck-apk\` artifact on [this run]($RUN_URL) (signed with the same test key as every build, so it installs over any other)."
|
||||
;;
|
||||
failure)
|
||||
echo "### ❌ Build failed"
|
||||
echo
|
||||
echo "The compiler's errors ([full log]($RUN_URL)):"
|
||||
echo
|
||||
echo '```'
|
||||
{ grep -E '^e: |^w: .*error|error:|CMake Error|fatal error|ninja: error|FAILED|What went wrong|Execution failed for task|Unresolved reference|Type mismatch|Unresolved' /tmp/build.log 2>/dev/null \
|
||||
| sed -e 's#file:///home/runner/work/[^/]*/[^/]*/##' -e 's#/home/runner/work/[^/]*/[^/]*/##' \
|
||||
| grep -v '^w: ' | awk '!seen[$0]++' | head -80; } || true
|
||||
echo '```'
|
||||
echo
|
||||
echo "<details><summary>What went wrong (Gradle)</summary>"
|
||||
echo
|
||||
echo '```'
|
||||
awk '/^\* What went wrong/{p=1} /^\* Try:/{p=0} p{print}' /tmp/build.log 2>/dev/null | head -60
|
||||
echo '```'
|
||||
echo "</details>"
|
||||
;;
|
||||
skipped|cancelled)
|
||||
echo "### ⏭ Not built"
|
||||
echo
|
||||
echo "The build did not run (see above, or [the run]($RUN_URL))."
|
||||
;;
|
||||
esac
|
||||
echo
|
||||
echo "_Updated on every push to this pull request._"
|
||||
} > /tmp/pr-report.md
|
||||
cat /tmp/pr-report.md >> "$GITHUB_STEP_SUMMARY"
|
||||
ID=$(gh api "repos/${GITHUB_REPOSITORY}/issues/${PR}/comments" --paginate --jq ".[] | select(.body | startswith(\"$MARK\")) | .id" | head -1 || true)
|
||||
if [ -n "$ID" ]; then
|
||||
gh api -X PATCH "repos/${GITHUB_REPOSITORY}/issues/comments/${ID}" -F body=@/tmp/pr-report.md >/dev/null
|
||||
else
|
||||
gh api -X POST "repos/${GITHUB_REPOSITORY}/issues/${PR}/comments" -F body=@/tmp/pr-report.md >/dev/null
|
||||
fi
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: steamdeck-apk
|
||||
path: app/build/outputs/apk/release/*.apk
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
# An apk is a zip already; compressing it again buys nothing and costs seconds.
|
||||
compression-level: 0
|
||||
@@ -1,40 +0,0 @@
|
||||
name: Contributions ledger
|
||||
|
||||
# Keeps the Contributors section of the README current: every pull request by a contributor,
|
||||
# with its state, and a line of totals each. Runs when a pull request is opened, merged or
|
||||
# closed and commits the README to main as the Actions bot. The README is documentation, so
|
||||
# that commit does not buy an apk build.
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ opened, reopened, closed, edited ]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
|
||||
concurrency:
|
||||
group: contributions
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
ledger:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
- name: Rewrite the table
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: .github/scripts/contributions.sh "$GITHUB_REPOSITORY"
|
||||
- name: Commit it when it changed
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add README.md
|
||||
if git diff --cached --quiet; then echo "ledger unchanged"; exit 0; fi
|
||||
git commit -m "README: contributions ledger"
|
||||
git push origin HEAD:main
|
||||
@@ -1,16 +0,0 @@
|
||||
*.iml
|
||||
.gradle/
|
||||
local.properties
|
||||
.idea/
|
||||
.DS_Store
|
||||
build/
|
||||
captures/
|
||||
.externalNativeBuild/
|
||||
.cxx/
|
||||
.kotlin/
|
||||
# Built in CI from tools/linuxfs and app/src/main/cpp/fakeinput.cpp, never committed, so the two
|
||||
# copies cannot drift.
|
||||
app/src/main/assets/linuxfs/
|
||||
|
||||
# Kotlin compiler session files (build-tool state, never source).
|
||||
.kotlin/
|
||||
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 324 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 126 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 369 KiB |
|
After Width: | Height: | Size: 523 KiB |
|
After Width: | Height: | Size: 344 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 222 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 244 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 493 KiB |
|
After Width: | Height: | Size: 497 KiB |
|
After Width: | Height: | Size: 549 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 274 KiB |
|
After Width: | Height: | Size: 484 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 176 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 178 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 666 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
@@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
Pluvia is an unofficial Steam client app for Android
|
||||
Copyright (C) 2024 Oxters Wyzgowski
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
Pluvia Copyright (C) 2024 Oxters Wyzgowski
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -1,164 +0,0 @@
|
||||
# SteamDeck — Progress Log
|
||||
|
||||
Running engineering log for the SteamDeck app (`com.steamdeck.launcher`). Newest state first, then
|
||||
the timeline, then lessons and backlog. Companion to the README (what the app *does*) and to
|
||||
`docs/releases/` (what each version said) — this is *how it got here and where it stands*.
|
||||
|
||||
---
|
||||
|
||||
## 🔖 0.1.5 RELEASED 2026-09-23 03:17 — known-good point
|
||||
|
||||
- **Tag `0.1.5` = `d2f4a84`** (bump commit, versionCode 6), notes `docs/releases/0.1.5.md` on main after it. Private release [0.1.5](https://github.com/The412Banner/SteamDeck/releases/tag/0.1.5) and public [`SteamDeck-0.1.5`](https://github.com/The412Banner/winlator-contents/releases/tag/SteamDeck-0.1.5) on winlator-contents, both Latest, asset `SteamDeck-0.1.5.apk` 21,093,959 bytes, sha256 `85b42954…`, run 35813465422. Staged as `/sdcard/Download/SteamDeck-0.1.5.apk`.
|
||||
- What went in since 0.1.4 (58 commits): the motion front end, settings as pages with anchored menus, the session drawer, three themes (Paper default) and the new icon, run-as-a-game + libpci fix (117 fps Big Picture on a Fold), client-interface switches, FEX presets, 720p default, TZ, non-Adreno gate, 16 KB app libs, two on-screen sticks + bar-aware layout, folded categories at launch, Kurt's #3 (Back key) / #4 (icon) / #5 (local build helpers), pull-request CI + contributions ledger.
|
||||
- Untested at release: sticks/bar layout, FEX presets, Deck mode, desktop → Steam hand-off, the `perf:` line. Rollback: `git reset --hard 8e58e8e` (0.1.4) + `SteamDeck-0.1.4.apk`.
|
||||
- After the cut: the public release on winlator-contents got the private title, and that repo's README a SteamDeck section (latest release, `linuxfs.json`, `desktop.json`) — refresh both at every cut. Verified on the FIT's client binary: there is no `-steampal` flag; the Deck flags are `-steamdeck` / `-steamos3` (Deck mode on the Performance page), `-gamepadui`, `-steamos`.
|
||||
- **Next, in order:** (1) device pass of 0.1.5 — sticks in a game and the bar layout on the Fold, the `perf:` line and 720p in a session log, a FEX preset, the desktop → Steam hand-off; (2) decide the stick click gesture (double tap or long press); (3) Kurt's draft PR #1 (Decky installer) builds when he marks it ready — it compiles against main, minus two stray `.kotlin` files; (4) rebuild the six PulseAudio prebuilts 16 KB-aligned; (5) optional FIFO/mailbox switch on the compositor's Vulkan present path; (6) the rename away from Valve marks is still open (icon is now the "A").
|
||||
|
||||
## 2026-09-22 (late) — motion front end + run-as-a-game, branch `feat/frontend-motion` (unmerged)
|
||||
|
||||
- Front end rebuilt around a motion system (`ui/FrontEndScreen.kt`, same state/actions API): the rail's selection is one pill that springs between rows; sub-lists unfold and stagger their children; a page change sinks out and cascades in over a blurred wash of the selection's art; tiles lift/ring/shine on focus and pop a play badge; the launch button sweeps a sheen and squashes on press; the session activity rises over the front end (`res/anim/session_*`). Durations follow the system animator scale.
|
||||
- The session now runs as a game: manifest `appCategory=game` + `game_mode_config` (Performance mode welcome; the OS FPS cap and downscaling refused), sustained performance mode, the panel's fastest mode at its size, GameManager game state, and an ADPF hint session over the compositor thread fed with each presented frame's interval (`session/PerfMode.kt`, `session/PerfHints.kt`, `nativeCompositorTid`). One `perf:` line in the session log says what took on the device.
|
||||
- App libraries link 16 KB-aligned. Still 4 KB-only (prebuilt, need a rebuild): libpulse, libpulseaudio, libpulsecommon-13.0, libpulsecore-13.0, libsndfile, libltdl.
|
||||
- The session's display caps at 720p by default now, client and desktop alike (`SessionPrefs.defaultResolutionCap`); a cap the user chose still wins. The cog's list marks the default per mode.
|
||||
- Builds: r1 `7ddfb57` (motion only), r2 `546c063` (+ run-as-a-game), r3 `d1ced87` (+ client 720p), r4 `fb2a3d4` (+ desktop 720p) — all CI-green, none device-tested. Staged as `SteamDeck-motion-r1..r4.apk`; r4 has everything.
|
||||
- r5 `1ba803b` + TZ in the guest; r6 `39272cf` Setup folds, "Linux desktop environment", help link above the grid (r4 seen running on the FIT); r7 `af3f377` settings without a pop-up: the cog and Performance are pages in the pane with anchored menus under each value, frame generation / logs / offline open in place on the rail. **r7 merged fast-forward to `main` (`af3f377`) and main's auto-build staged as `SteamDeck-r52.apk`; no tag, no release.**
|
||||
- r8 `90ff23a` (branch only, unmerged): the session drawer in the front end's dress with the same rows and menus (Now / Next session / leave), FEXCore presets carried over from Bannerlator (`core/FexPreset`, Steam settings page + drawer, FEX_* into the Steam session's environment; default = FEX defaults as before), file manager and picker locked to landscape.
|
||||
- Collaborators: `maxjivi05` (push) and `xXJSONDeruloXx` (push, invited 2026-09-22) on the private repo.
|
||||
- CI for pull requests (2026-09-23 early): `Build APK` runs on `pull_request_target` against main (a conflicting pull request never fires `pull_request`), checks the pull request out at its head with full history, merges main itself, and leaves one comment kept current: mergeable + built (apk on the run), or the conflicting files and hunks, or the compiler's errors from the kept Gradle log. Drafts wait. Fork pull requests may run without approval (repo setting). Proven with a throwaway pull request (#2, closed) both ways. `Contributions ledger` rewrites the README's contributors table on open/merge/close via `.github/scripts/contributions.sh`, committed to main by the Actions bot.
|
||||
|
||||
## 🔖 Checkpoint 2026-09-22 22:xx — known-good point for the front end
|
||||
|
||||
- **`main` @ `36cde7d`**, APK `SteamDeck-r51.apk` staged (sha `adb5acf5…`, run 35761437514) =
|
||||
frontend-r6 + docs. Same versionCode 5 / 0.1.4 inside; **0.1.5 not cut yet**.
|
||||
- **Proven on the Pocket FIT this evening:** the front end renders and navigates (rail, art,
|
||||
square emulator icons, focus outline); RPCS3 lists Tomb Raider (ISO in a subfolder) and God of
|
||||
War II HD (its HDD); ▶ God of War II HD boots the game under gamescope at ~40 fps
|
||||
(`session-20260922-133044`: `run: rpcs3.AppImage --no-gui …NPUA80491/USRDIR/EBOOT.BIN`, 399
|
||||
frames on screen in 10 s).
|
||||
- **Not yet proven:** desktop→Steam hand-off after the three fixes (r47–r50); ▶ FlatOut from the
|
||||
rail (Steam session with rungameid); Running tile; volume keys; automatic SD game storage
|
||||
(Install drive drop-down); Steam desktop-UI session; Tomb Raider ISO boot.
|
||||
- **Open decision:** rename the app away from Valve's marks before it spreads (shortlist offered:
|
||||
Linuxlator / Pocketscope / Portascope); rename = label, icon text, `applicationId` (fresh
|
||||
install + runtime re-download), `Download/SteamDeck/` log folder, repo, release-tag pattern.
|
||||
- **Rollback:** `git checkout 36cde7d` (or 0.1.4 tag `8e58e8e` for the last release), reinstall
|
||||
`SteamDeck-r51.apk` / `SteamDeck-0.1.4.apk` from Downloads.
|
||||
- Loose ends: `ui/MainScreen.kt` keeps ConfirmDialog/CreditsDialog/EmulatorHelpDialog but its
|
||||
`MainScreen`/tiles are dead; worktree `~/steamdeck-frontend` still exists (branch merged).
|
||||
|
||||
## Current state (2026-09-22, evening)
|
||||
|
||||
- **`main` @ the front end merge** (`feat/frontend` fast-forwarded): the launcher main screen -
|
||||
Steam ▸ games, Desktop ▸ emulators ▸ games, Running tile, focus outline. ✅ First emulator game
|
||||
proven from the app: God of War II HD in RPCS3 under gamescope at ~40 fps on the Pocket FIT.
|
||||
- Since 0.1.4 on main, unreleased: volume keys to Android; ▶ emulators under gamescope; ROMs chip
|
||||
+ ? explainer; sysmem copy + ENOSYS hint; automatic game storage (a card = a Steam library);
|
||||
the client's games on the desktop with a `steam` shim; desktop→Steam hand-off (three causes
|
||||
fixed from FIT logs: Surface detach race, the replaced session's exit ending the new one,
|
||||
shared log folder); the front end. Next release = 0.1.5 once the hand-off is seen working.
|
||||
|
||||
## State at 0.1.4 (2026-09-22)
|
||||
|
||||
- **Latest release: 0.1.4** — private: https://github.com/The412Banner/SteamDeck/releases/tag/0.1.4
|
||||
· public: https://github.com/The412Banner/winlator-contents/releases/tag/SteamDeck-0.1.4
|
||||
`main` @ `8e58e8e`, CI run 35682844106, versionCode 5, APK sha256 `4b53ce6a…` (20,957,823 B).
|
||||
- **Runtime:** `linuxfs-r9` on winlator-contents (790 MB), the only runtime release left; desktop
|
||||
packages from `steamdeck-desktop-r1`. The app rewrites its own scripts (`bannerlator-*`), the
|
||||
driver, `bannerlator-netmanager` and the DirectAudio pieces into the installed runtime at every
|
||||
launch, so a fix in those reaches an installed runtime without a re-download.
|
||||
- **Shipped feature set:** the native ARM64 Steam client under gamescope on the in-app Wayland
|
||||
compositor; a LXQt-on-labwc desktop with Firefox and a shelf of emulators; Proton tools
|
||||
(GE / CachyOS) as downloads; graphics drivers importable per mode; DirectAudio + microphone;
|
||||
client/game core masks + four session switches; NetworkManager stand-in (Max's); overlay
|
||||
restored; ROMs folder + Storage bound into the session's home; Bannerlator's File Manager;
|
||||
a cog per launch mode (resolution, shape, HDR10, drivers, touch, OSC/audio, renderer); per-session
|
||||
log folders that survive a crash; leftover-process sweep; frame generation (Win-FG, LSFG).
|
||||
- **Verification level:** every release is CI-green and staged to the maintainer's device. Proven
|
||||
on hardware (Pocket FIT / Fold): sign-in, store, install + launch (FlatOut 144 Hz), frame
|
||||
generation, controllers + OSC, sound, desktop + Firefox, folding mid-session, driver import, the
|
||||
log folder, the ANR fix, the network page. **Not yet proven:** everything 0.1.4 added (ROMs
|
||||
folder inside an emulator, File Manager, resolution cap, HDR10, crash sweep, orphan sweep, the
|
||||
drawer's Steam menu), DirectAudio *voice*, the core masks' effect, offline start, the soft
|
||||
keyboard, any emulator with a game, Adreno 710.
|
||||
- **Open field reports (Thor Pro, 8 Gen 2):** trackpad-mode tap does not click (code sends the
|
||||
click; cause not found by reading); crash after 1–2 min in Ballionaire / Geometry Wars (no log
|
||||
survived — 0.1.4's sweep will leave `crash.log`); a Fold's 10–20 fps client menus (Chromium →
|
||||
ANGLE → Zink on an experimental A8xx Turnip); Fold crash loop (xalia ENOSYS storm — switches
|
||||
shipped, untested); FlatOut shrinking after Resume (gamescope forcing the swapchain extent).
|
||||
|
||||
## Release pipeline (how every version is cut)
|
||||
1. Work on `main`, pushed → `Build APK` runs `assembleRelease` (AOSP test key, v1+v2+v3 re-signed
|
||||
by CI with zipalign + apksigner) → artifact `steamdeck-apk`. Dev builds keep the last release's
|
||||
versionCode/versionName; a release bumps both in `app/build.gradle` in its own commit.
|
||||
2. Verify: `gh run view <id> --json conclusion` (never trust a run listing's first row — a
|
||||
`workflow_dispatch` run gets cancelled by concurrency in favour of the push-triggered one),
|
||||
download the artifact, sha256 it.
|
||||
3. Stage: `cp` to `/sdcard/Download/SteamDeck-rN.apk` (dev) or `SteamDeck-X.Y.Z.apk` (release).
|
||||
Never `pm install` — the maintainer installs.
|
||||
4. Private release `X.Y.Z` targeting the **full 40-char sha** (a short sha is refused), notes from
|
||||
the draft in the session scratchpad, `--latest`. Public release `SteamDeck-X.Y.Z` on
|
||||
winlator-contents with the README-style notes; one public release per version.
|
||||
5. README ledger, this log, memory.
|
||||
|
||||
## Timeline
|
||||
- **2026-09-19 — 0.1 groundwork.** Lifted out of Bannerlator's gamescope runtime on the user's
|
||||
ask: one screen, one button. r2 reached Big Picture sign-in on the Pocket FIT. Package renamed to
|
||||
`com.steamdeck.launcher` (r4), foreground service, test key, on-screen controls.
|
||||
- **2026-09-20 — 0.1.** The Linux Steam client and a desktop; runtime r6→r9 in a day (Proton
|
||||
self-selection, proot shipped, refresh rate, video, first run reaches a game). Public explainer
|
||||
page for non-Linux users.
|
||||
- **2026-09-21 — 0.1.1.** Catch-up with Bannerlator: driver selection (two lists, per mode),
|
||||
overlay restored + GameHub force-stop, DirectAudio + microphone, core masks, four session
|
||||
switches as toggles, per-session log folders with credentials scrubbed, Adreno 710 path via
|
||||
Banners-Turnip r3.
|
||||
- **2026-09-22 — 0.1.2.** The teardown ANR (log collection on the main thread) fixed; two
|
||||
compositor log lines (frame-size change, window rename); README ledger.
|
||||
- **2026-09-22 — 0.1.3.** Max's NetworkManager stand-in ported (the client's network page); shim
|
||||
audit vs WinNative = zero functional drift.
|
||||
- **2026-09-22 (later) — after 0.1.4, on main.** Volume keys; ▶ emulators under gamescope (the
|
||||
desktop cannot: labwc on pixman offers no dma-buf); ROMs chip; sysmem warning + ENOSYS hint;
|
||||
automatic game storage; the client's games on the desktop (`steam` shim hands off to a
|
||||
gamescope session); the hand-off's three faults found in FIT logs and fixed; the front end
|
||||
merged (branch `feat/frontend`, r1–r6); God of War II HD booted in RPCS3 from the rail.
|
||||
- **2026-09-22 — 0.1.4.** ROMs folder + Storage in the session's home; Bannerlator's File Manager
|
||||
ported whole; a cog per mode (railed settings window) with resolution cap, shape, HDR10 gated on
|
||||
the panel, drivers, touch, OSC/audio/renderer; two-column main menu; crash-safe log folders +
|
||||
Session logs toggle; OrphanReaper; drawer Steam menu. Public releases reorganised: one per
|
||||
version, old `Steamdeck` release and runtimes r1–r8 deleted.
|
||||
|
||||
## Architecture (where things live)
|
||||
- `MainActivity` / `ui/MainScreen.kt` — the main screen; `ui/ModeSettingsDialog.kt` the cogs;
|
||||
`ui/*Dialog.kt` the rest.
|
||||
- `SessionActivity` — the Surface, input (touch, touchpad, pads, keyboard), the drawer, the HDR
|
||||
decision, the compositor start (`wayland/CompositorHost`, `wayland/WaylandCompositor`).
|
||||
- `session/SessionService` — proot + gamescope/labwc + PulseAudio + DirectAudio relay + network
|
||||
link; binds (`/root/Storage`, `/root/ROMs`); env for the guest; teardown; `OrphanReaper`;
|
||||
`SessionArtifacts` + `CrashHandler` + `SessionPaths` for the log folders; `SessionPrefs`.
|
||||
- `files/` — Bannerlator's File Manager (`FileManagerScreen.kt` and its helpers), the picker
|
||||
activity and `InAppFilePicker` intent API.
|
||||
- `gpu/` — Turnip (bionic, for the compositor) and Linux Turnip (glibc, for the runtime) managers.
|
||||
- `tools/linuxfs/overlay/usr/local/bin/bannerlator-*` — the guest scripts, staged into the
|
||||
runtime by `SessionFiles` at every launch (CI packages only `bannerlator-*` names).
|
||||
- `app/src/main/cpp/waylandcomp/` — the compositor (shared lineage with Bannerlator).
|
||||
|
||||
## Lessons learned (don't repeat these)
|
||||
- Nothing in teardown may do bulk filesystem work on the main thread (0.1.1's ANR).
|
||||
- A CI closure check on a multi-line variable must flatten it first (`libaaudio.so` refusal).
|
||||
- A runtime script must be named `bannerlator-*` or CI never packages it.
|
||||
- `gh release create --target` needs the full sha.
|
||||
- A proot bind is invisible to a program's "Computer" list; put what users need under home.
|
||||
- The compositor decides its driver and its HDR gate once per app process — anything that changes
|
||||
them applies after the app is fully closed, and the UI must say so.
|
||||
- Bannerlator's File Manager ports mechanically (`port_fm.py` anchors) once the container hooks
|
||||
are cut; do not hand-edit 2,500 lines.
|
||||
- Deleting a release asset on GitHub can drop a sibling asset — re-list and restore.
|
||||
|
||||
## Backlog / next
|
||||
- Device-prove 0.1.4 on the FIT (list above).
|
||||
- Thor Pro: trackpad tap; the 1–2 min in-game crash once a `crash.log` arrives.
|
||||
- Xfce as a second desktop shell (Max's branch runs XFCE 4.20 on labwc) — a catalog package + a
|
||||
shell choice in the Desktop cog; comfort, not performance.
|
||||
- Quick Access Menu for non-Deck pads — no confirmed chord; needs research, not a guess.
|
||||
- FlatOut shrink: try `vk_wsi_force_swapchain_to_current_extent=false` via `steamdeck-env`.
|
||||
- Max's stricter `winnative-directaudio` guards; `winnative-epic-launch` (a feature).
|
||||
- Rename before anything truly public: "SteamDeck" is Valve's mark.
|
||||
@@ -1,569 +0,0 @@
|
||||
# SteamDeck
|
||||
|
||||
Valve's **native aarch64 Linux Steam client**, running on an Android phone or handheld: a glibc
|
||||
rootfs under proot, gamescope as a Wayland client of an in-app Vulkan compositor, Xwayland and
|
||||
Zink for the client's CEF, and the device's Turnip driver underneath. There is no Wine here, and
|
||||
no x86 translation for the client itself — it is ARM code running as ARM code. Windows games it
|
||||
launches go through Valve's own ARM64 Proton build, which is where FEX comes in.
|
||||
|
||||
One screen, one button: install the runtime, press Play, Big Picture comes up. Or start the
|
||||
**desktop** instead — LXQt, a browser and a shelf of emulators, in the same session.
|
||||
|
||||
Around that: the Vulkan driver each half of the session draws with is yours to import and change,
|
||||
audio can bypass PulseAudio and carry a microphone, the cores the client and a game get are
|
||||
separate, and every session writes a folder of logs meant to be attached to a report as it is.
|
||||
|
||||
## Contributors
|
||||
|
||||
Building this alongside the owner. A pull request from either of them builds by itself and gets
|
||||
a comment saying whether it merges, what conflicts, or what failed to compile.
|
||||
|
||||
- **MaxsTechReview** — [@maxjivi05](https://github.com/maxjivi05)
|
||||
- **Kurt Himebauch** — [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx)
|
||||
|
||||
<!-- contributions:start -->
|
||||
_From the repository's pull requests; rewritten when one is opened, merged or closed._
|
||||
|
||||
| Contributor | Pull request | Opened | State |
|
||||
|---|---|---|---|
|
||||
| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#1](https://github.com/The412Banner/SteamDeck/pull/1) initial decky installer stuff | 2026-09-23 | closed |
|
||||
| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#3](https://github.com/The412Banner/SteamDeck/pull/3) Fix hardware back in Steam session | 2026-09-23 | merged 2026-09-23 |
|
||||
| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#4](https://github.com/The412Banner/SteamDeck/pull/4) Update app launcher icon | 2026-09-23 | merged 2026-09-23 |
|
||||
| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#5](https://github.com/The412Banner/SteamDeck/pull/5) Add reproducible local build and deploy helpers | 2026-09-23 | merged 2026-09-23 |
|
||||
| [@xXJSONDeruloXx](https://github.com/xXJSONDeruloXx) | [#6](https://github.com/The412Banner/SteamDeck/pull/6) Add Steam and QAM touch controls | 2026-09-23 | merged 2026-09-23 |
|
||||
|
||||
- **@xXJSONDeruloXx**: 5 submitted, 4 merged
|
||||
<!-- contributions:end -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An **arm64 Android device with an Adreno GPU that Turnip supports** — in practice Adreno **730 or
|
||||
newer** (Snapdragon 8 Gen 1 onward) and the **8xx** series. Mali, Xclipse and PowerVR are not
|
||||
supported here, and neither is the low-end Adreno 710 (Snapdragon 6 Gen 1): Mesa has no entry
|
||||
for it at all, so the session log ends at `device (chip_id = 7010000, gpu_id = 710) is
|
||||
unsupported` before anything is drawn.
|
||||
- **Android 9 or newer**, and roughly **3 GB free** for the runtime before any games. The desktop
|
||||
and its emulator packages are another ~1.1 GB if you install them.
|
||||
- **No root required.** Root only helps if you want to copy an existing Bannerlator runtime across
|
||||
instead of downloading one.
|
||||
|
||||
## Installing
|
||||
|
||||
1. Install the APK from the release page.
|
||||
2. Launch it and press **Install Linux runtime** — about 790 MB, once.
|
||||
3. Press **Play**. On the very first run the app fetches Valve's client (a minute or two with
|
||||
nothing on screen), then Big Picture comes up and you sign in.
|
||||
|
||||
For a desktop, open **Desktop & apps**, install the *Desktop* package, then press **Desktop** on
|
||||
the main screen.
|
||||
|
||||
**Do this once per device if the client dies with nothing in its log**: Android 12 and later kill
|
||||
the extra processes an app starts for itself, and a session is made of dozens of them. Some phones
|
||||
have a **"restrict child processes"** switch in Developer options — turn it off. See
|
||||
[If Steam dies with nothing in the log](#if-steam-dies-with-nothing-in-the-log).
|
||||
|
||||
## What works today
|
||||
|
||||
This is version 0.1.2, and most of it has been exercised on one or two devices only. An honest
|
||||
ledger rather than a feature list — where something has not been run on hardware, it says so:
|
||||
|
||||
| | State |
|
||||
|---|---|
|
||||
| Steam sign-in, store, install, launch | ✅ proven — *FlatOut* at 144 Hz through ARM64 Proton |
|
||||
| Importing and choosing a driver | ✅ proven — an imported Mesa 26.3.0 glibc Turnip drew a whole session, and an imported AdrenoTools build ran the compositor |
|
||||
| Frame generation (LSFG 2×) | ✅ proven — 30 → 61, 60 → 118, 61 → 123 fps |
|
||||
| Performance HUD | ✅ proven |
|
||||
| Desktop, panel, file manager | ✅ proven at the panel's native resolution |
|
||||
| Firefox and the network (IPv4 + IPv6) | ✅ proven — live pages at 93 fps |
|
||||
| Controller as an Xbox 360 pad | ✅ proven |
|
||||
| Foldable, opened and closed mid-session | ✅ proven |
|
||||
| Background / foreground, wake locks | ✅ proven |
|
||||
| The session log folder | ✅ proven — all of it written, including this app's own log |
|
||||
| Session folder finished after a crash or a kill | ⚠️ built: crash handler + next-start sweep; not yet forced on a device |
|
||||
| ROMs folder and Storage in the session's home | ⚠️ built; not yet opened from an emulator on a device |
|
||||
| The File Manager (Bannerlator's) and its pick mode | ⚠️ built; not yet used on a device |
|
||||
| The cog beside Play / Desktop: resolution, shape, HDR, drivers, touch, audio, renderer | ⚠️ built; the resolution cap and HDR not yet seen on a device |
|
||||
| Leftover session processes swept at the next start | ⚠️ built; not yet forced on a device |
|
||||
| The drawer's "Steam menu" (Guide) | ⚠️ built; not yet tried |
|
||||
| Emulators launched under gamescope (▶ on the rail) | ✅ proven — God of War II HD in RPCS3, ~40 fps on the FIT |
|
||||
| The front end (rail, games, focus outline, Running tile) | ⚠️ built and used on the FIT; the Running tile and Steam-game ▶ not yet exercised |
|
||||
| The device's volume keys during a session | ⚠️ fixed (they were swallowed); not yet re-tried |
|
||||
| Game storage: a second Steam library on a card or a folder | ⚠️ built; not yet seen installing to it |
|
||||
| The client's games in the desktop menu, launching Steam's desktop UI under gamescope | ⚠️ built; not yet tried |
|
||||
| Stopping a competing Steam client | ⚠️ it is asked to stop and says so, but one that restarts itself from boot wins the race — uninstall it |
|
||||
| DirectAudio for games, and the microphone | ⚠️ wired and the modules load; voice not yet confirmed in Steam's tester |
|
||||
| Client and game core masks | ⚠️ applied and logged; no measured difference yet |
|
||||
| The four session fixes (xalia, proot seccomp, sysmem, Zink) | ⚠️ they set what they say; each is a hypothesis for a device that misbehaves |
|
||||
| GE-Proton / proton-cachyos | ⚠️ adopted and registered on device; no game launched through one yet |
|
||||
| The emulators | ⚠️ they build, publish and install — none has been run with a game |
|
||||
| Starting Steam offline | ⚠️ built, not yet tested |
|
||||
| The soft keyboard | ⚠️ built, not yet tested |
|
||||
| Adreno 710 / 720 / 722 | ⚠️ a path exists through imported drivers; **nobody has run this on one yet** |
|
||||
|
||||
## Known limits
|
||||
|
||||
- **The desktop composites in software.** wlroots allocates through gbm on a real DRM render node,
|
||||
and the Adreno stand-in is not one, so labwc falls back to pixman. Programs on the desktop still
|
||||
reach the GPU themselves through Vulkan and Turnip — it is the desktop's own compositing that
|
||||
runs on the CPU.
|
||||
- **Firefox's child-process sandboxes are off.** Seccomp and namespace sandboxes cannot be set up
|
||||
under proot, and its tabs crash otherwise. This is a genuine reduction in isolation: treat
|
||||
browsing here as less protected than on an ordinary desktop.
|
||||
- **The display shape changes at the next session**, not immediately — gamescope fixes its display
|
||||
size when it starts.
|
||||
- **No Switch emulator.** Eden's repository was taken down in February; there is nothing to mirror
|
||||
or to build from.
|
||||
- PS3 (RPCS3) and Wii U (Cemu) are demanding even on desktop hardware — expect light titles only.
|
||||
|
||||
## How it fits together
|
||||
|
||||
```
|
||||
Android app (this repo)
|
||||
├── libbannerwayland.so Wayland compositor, presents into the activity's Surface
|
||||
│ on a bionic Turnip: bundled, or one you imported
|
||||
├── PulseAudio 13 + AAudio the guest's audio server, on a socket bound into the session
|
||||
├── directaudio relay owns AAudio out and the mic for the games that ask for it
|
||||
├── fake-evdev rings a physical pad, republished as /dev/input/eventN for the client
|
||||
├── frame generation Win-FG or LSFG, on gamescope's finished output
|
||||
└── proot ── linuxfs (~790 MB, downloaded once)
|
||||
├── gamescope ── Xwayland ── Zink
|
||||
│ drawing on a glibc Turnip: the runtime's, or one you imported
|
||||
└── Steam (steamrtarm64, fetched from Valve on first run) ── Proton ARM64 ── FEX
|
||||
└── a game's audio: Proton's own, or DirectAudio straight to Android
|
||||
```
|
||||
|
||||
The two Turnips are separate copies of the same driver and cannot be swapped: the compositor's is
|
||||
built against Android's C library, the runtime's against glibc. That is why there are two import
|
||||
lists rather than one.
|
||||
|
||||
The runtime image is the one published for Bannerlator (`linuxfs.json` in
|
||||
`The412Banner/winlator-contents`); this app installs and updates it from that catalog. **No Valve
|
||||
software is redistributed** — the client is fetched from Valve's own manifest on the device at
|
||||
first use.
|
||||
|
||||
## Building
|
||||
|
||||
The repeatable local build is `tools/build_local.sh`. It uses Docker's Ubuntu cross-toolchain for
|
||||
the two glibc ARM64 preloads (`libfakeinput.so`, `libblsession.so`), the Android SDK/NDK already
|
||||
installed on the machine, and the same release signing and native dependency checks as CI. The
|
||||
APK is written to `app/build/outputs/apk/release/app-release.apk`.
|
||||
|
||||
```sh
|
||||
tools/build_local.sh
|
||||
```
|
||||
|
||||
CI remains available through the `Build APK` workflow. Both paths cross-compile the preloads from
|
||||
the sources in this repo before the app build, so those cannot drift from what ships.
|
||||
|
||||
With an authorized Android device attached over USB or ADB, install the locally built APK with:
|
||||
|
||||
```sh
|
||||
tools/deploy_local.sh
|
||||
```
|
||||
|
||||
Set `ADB_SERIAL` when more than one device is attached. The deploy helper installs over the
|
||||
existing `com.steamdeck.launcher` package using the repository's stable test key and verifies the
|
||||
package path afterward; it does not launch a session automatically.
|
||||
|
||||
## If Bannerlator is already installed
|
||||
|
||||
The runtime image is the same one Bannerlator installs, so on a device that already has it the
|
||||
790 MB download can be skipped entirely — copy it across with root, once, before the first launch:
|
||||
|
||||
```sh
|
||||
su -c 'cp -a /data/data/com.tencent.ig/files/linuxfs /data/data/com.steamdeck.launcher/files/ \
|
||||
&& chown -R $(stat -c %u /data/data/com.steamdeck.launcher/files) \
|
||||
/data/data/com.steamdeck.launcher/files/linuxfs \
|
||||
&& chcon -R u:object_r:app_data_file:s0 /data/data/com.steamdeck.launcher/files/linuxfs'
|
||||
```
|
||||
|
||||
The two runtimes are independent after that: each app has its own Steam install, its own login and
|
||||
its own games.
|
||||
|
||||
## Controls
|
||||
|
||||
A physical controller is republished into the session as a synthetic Xbox 360 pad, which is the
|
||||
identity SDL and Steam have a mapping for. With nothing attached, an on-screen pad appears —
|
||||
d-pad, A/B/X/Y, shoulders, select/start and the Steam button — writing into the same rings, so the
|
||||
client sees one pad either way. Connect a controller and the on-screen one disappears; unplug it
|
||||
and it comes back. Anywhere the controls are not is a touchpad: touch moves the pointer and a tap
|
||||
clicks, which is how the client's own on-screen keyboard is used to sign in.
|
||||
|
||||
## Desktop
|
||||
|
||||
Besides the Steam client the app can start a **desktop**: LXQt on labwc, in the same session and
|
||||
the same compositor, with Xwayland for the X11 programs. It is a second choice on the main
|
||||
screen, not a replacement — the Steam button still hands the session to gamescope.
|
||||
|
||||
What it is made of is downloaded on request from a catalog hosted beside the runtime, so the app
|
||||
stays small and nothing ships that a given device will not use:
|
||||
|
||||
| Package | What it brings |
|
||||
|---|---|
|
||||
| **Desktop** (406 MB) | labwc, LXQt's panel, file manager, terminal, text and image viewers, Firefox, mpv |
|
||||
| **Emulators** (694 MB) | PPSSPP and RetroArch with 28 cores — PS1, PS2, N64, SNES, NES, Game Boy, GBA, DS, Genesis, Dreamcast, Saturn, PC Engine, arcade — plus ScummVM, DOSBox, Mednafen, Snes9x |
|
||||
| **RPCS3 · DuckStation · melonDS** | PS3, PS1 and DS, mirrored from the projects' own ARM64 builds |
|
||||
| **PCSX2 · Dolphin · Cemu** | PS2, GameCube/Wii and Wii U. No ARM64 Linux build exists upstream for any of the three, so they are compiled from source against the same glibc the runtime uses |
|
||||
|
||||
The desktop composites in software: wlroots allocates through gbm on a real DRM render node, and
|
||||
the Adreno stand-in is not one, so labwc runs on pixman. The programs on it still reach the GPU
|
||||
themselves through Vulkan and Turnip — it is the desktop's own compositing that is on the CPU.
|
||||
`Download/steamdeck-wlr-renderer` (`pixman`, `gles2` or `vulkan`) overrides the choice.
|
||||
|
||||
Programs whose child processes sandbox themselves with seccomp and namespaces cannot set those up
|
||||
under proot; Firefox's are turned off in the session's environment, without which its tabs crash.
|
||||
|
||||
### The front end
|
||||
|
||||
The main screen is a launcher: a rail with **Steam** and its installed games (from the client's
|
||||
own manifests, with the library-cache art), **Desktop** and the installed emulators (their own
|
||||
icons) and each emulator's games from the ROMs folder (a system folder such as `ps3/` as a hint,
|
||||
by extension, one folder deep - a dump comes as a folder named for the game) plus what RPCS3 has
|
||||
installed on its own HDD; then Files, Desktop & apps, Compatibility tools, Frame generation,
|
||||
Performance, ROMs, Session logs, Start offline, the runtime and credits. The chosen thing sits on
|
||||
the right with its ▶. A Steam game launches its session with `steam://rungameid/…` directly; a
|
||||
ROM launches its emulator under gamescope with the game on the command line (RPCS3 `--no-gui`,
|
||||
Dolphin `-e`, Cemu `-g`, the rest plain). A session alive in the background is the first thing on
|
||||
the rail; tapping it goes back to it. The controller's focus draws a thin outline. ✅ God of War
|
||||
II HD booted in RPCS3 from the rail at ~40 fps on the Pocket FIT.
|
||||
|
||||
### Game storage: internal, an SD card, or a folder
|
||||
|
||||
The client's own library is internal storage and always there. An **SD card in the phone is
|
||||
registered as a second library by itself** (through the app's own folder on it, the one place a
|
||||
card lets this app write), so the choice is made where it is anywhere else - inside Steam, on
|
||||
every Install. **Game storage** in the Steam cog is only for turning that off or pointing it at a
|
||||
folder chosen in the File Manager instead. The session binds it at
|
||||
`/mnt/bannerlator-sd` and `bannerlator-steam-library` registers it with the client under the name
|
||||
the app gives it; the client then asks where to install every game, lists both on its Storage
|
||||
page and moves games between them itself. Set to internal only, the entry is removed again. A
|
||||
card and shared storage are FUSE-backed and stream slowly - keep games that stream video or big
|
||||
assets internal. ⚠️ Built; not yet seen installing to a card.
|
||||
|
||||
### The client's games on the desktop
|
||||
|
||||
The Steam client writes a menu entry for every game it installs (Games category, the game's
|
||||
icon), and the home folder has **Steam Games** and **SD Games** links to their files. Those
|
||||
entries run `steam steam://rungameid/…`; on this desktop `steam` is a shim, because the client
|
||||
cannot run where nothing can draw with Vulkan. It - and the menu's **Steam** / **Steam Big
|
||||
Picture** entries - hand off to the app (`bannerlator-steam-launch`), which ends the desktop
|
||||
session and starts a Steam session in its place: the client's **desktop UI** under gamescope, and the game straight away when one was
|
||||
chosen. Back opens the drawer as in any session; Stop session returns to the app. The list is
|
||||
rebuilt at every desktop start. ⚠️ Built; not yet tried on a device.
|
||||
|
||||
### Running an emulator with the GPU
|
||||
|
||||
The desktop composites in software (labwc on pixman) and so offers its programs no dma-buf: a
|
||||
Vulkan program on it has no swapchain to draw into and dies at its first frame — RPCS3 with
|
||||
`VK_ERROR_SURFACE_LOST`. The GPU path that works on this hardware is gamescope's, the one Steam's
|
||||
games render through. So an emulator is started **as a session of its own**: ▶ beside an installed
|
||||
emulator under **Desktop & apps** runs it fullscreen under gamescope (the session script's `run`
|
||||
mode, an AppImage or a binary inside the runtime), with Steam's display, driver and HDR settings.
|
||||
The desktop remains for files, Firefox and everything that draws in software. ⚠️ Built; not yet
|
||||
seen with a game.
|
||||
|
||||
### The device's files, and the ROMs folder
|
||||
|
||||
Inside a session the phone's storage is at `/storage/emulated/0`, as it is outside - but no
|
||||
program's file dialog will show it: they list "Computer" from `/proc/mounts`, where a proot bind
|
||||
never appears, and open in the home folder, where nothing pointed at the phone. So the home
|
||||
folder now carries two entries every session:
|
||||
|
||||
- **`Storage`** - all of internal storage.
|
||||
- **`ROMs`** - the folder chosen with **ROMs folder** on the main screen, wherever it is on the
|
||||
device, an SD card included (it is a bind, not a link). Point any emulator's game directory at
|
||||
`/root/ROMs` once and it is the same folder in every session after.
|
||||
|
||||
Both are the live folders, not copies: a save an emulator writes next to its ROM lands on the
|
||||
phone.
|
||||
|
||||
### Files
|
||||
|
||||
**Files** on the main screen is Bannerlator's File Manager, carried over whole: grid and list,
|
||||
sort, search, multi-select, copy / cut / paste with conflict handling and a cancellable progress
|
||||
bar, rename, delete, new folder, properties (read-only and hidden), favourites, and a locations
|
||||
rail with every mounted card, Downloads, the ROMs folder and the session logs. Its pick mode is
|
||||
what chooses the ROMs folder and imports a driver. What is not here is what has no meaning without
|
||||
a Wine container: running a file, adding it to shortcuts, the C: / Z: drives and the archive
|
||||
unpacker.
|
||||
|
||||
## Pointer
|
||||
|
||||
The app draws the arrow. On the desktop, touch is a **touchpad** (Bannerlator's desktop-container
|
||||
feel): drag anywhere and the pointer moves from where it is; tap to click; a second finger tapping
|
||||
while one holds, or a two-finger tap, right-clicks; two fingers scroll; hold still then drag, or
|
||||
double-tap-and-hold, drags. In Steam, touch is **direct**: the pointer jumps under the finger. The
|
||||
drawer's *Touch* switch pins either. A USB or Bluetooth mouse works as itself.
|
||||
|
||||
## Networking
|
||||
|
||||
The desktop's programs use the phone's network directly — proot makes no network namespace, so
|
||||
IPv4 and IPv6 both pass through — and the app writes the runtime's `/etc/resolv.conf` from the
|
||||
active network's own DNS servers whenever the link changes (IPv4 first, never a link-local IPv6 one,
|
||||
public servers as fallback), which is what Firefox and everything else in the desktop resolve with.
|
||||
|
||||
## Keyboard
|
||||
|
||||
**Keyboard** in the drawer opens the soft keyboard over the session. Steam's UI and the games
|
||||
under it are X11 clients of gamescope and know nothing of Wayland text input, so what the
|
||||
keyboard produces is turned into the key presses that would have typed it — Shift included, so
|
||||
capitals and the symbol row (`@`, `!`, `_` …) arrive as themselves — and fed to the compositor as
|
||||
key events. A hardware keyboard works as it is.
|
||||
|
||||
## Starting Steam offline
|
||||
|
||||
The client runs without a connection — installed games launch, Proton and the frame generation
|
||||
are local — provided it has credentials from a sign-in that succeeded earlier. **Start offline**
|
||||
on the main screen is where that is decided, and not in the drawer, because the client reads the
|
||||
two keys that control it once, while it starts: changed during a session it would write the file
|
||||
and change nothing until the next launch. Without an earlier sign-in the button says so and does
|
||||
nothing. The client rewrites those keys when it exits, so the app writes them again at every
|
||||
session start. Games with always-online DRM will not start offline, and nothing can be installed
|
||||
or updated.
|
||||
|
||||
## Audio
|
||||
|
||||
The Steam client always plays through **PulseAudio** — it is a native Linux program with no other
|
||||
way to make a sound, and its menus, music and voice chat all go through it. **Audio** on the main
|
||||
screen adds two things on top, each applying at the next session start:
|
||||
|
||||
- **DirectAudio for games** — replaces Wine's audio driver *inside the games the client launches*
|
||||
with Bannerlator's DirectAudio, which talks straight to Android over a socket instead of through
|
||||
PulseAudio: lower latency, and no resampling in between. The client is untouched. It only pairs
|
||||
with a Wine 11 Proton (Valve's ARM64 builds, GE-Proton, proton-cachyos); on anything else the
|
||||
wrapper leaves it off and says so in the log, because a mismatch would be silence rather than an
|
||||
error. A game's first launch after turning it on still uses Proton's own audio — the driver is
|
||||
named in the game's prefix, which does not exist until that first launch — and the second uses
|
||||
DirectAudio.
|
||||
- **Microphone** — the relay helper opens Android's input stream under the app's own uid (which is
|
||||
what the recording permission is checked against) and PulseAudio exposes it to the client as a
|
||||
source named **DirectAudioMic**, so Steam voice chat works. Asks for the recording permission when
|
||||
turned on; off, nothing in the session can record and Android's indicator stays off.
|
||||
|
||||
The helper is a small Android program the app runs beside the session; the driver is a glibc build
|
||||
staged into the runtime at every launch like the session scripts, so a fix reaches an installed
|
||||
runtime without re-hosting it. Proven in Bannerlator's Linux session with voice in Steam's own
|
||||
tester; ⚠️ not yet exercised in this app.
|
||||
|
||||
## Cores
|
||||
|
||||
**Performance** on the main screen carries the two core masks Bannerlator's Linux session has, kept
|
||||
separate because they are wanted at the same time and suit different things:
|
||||
|
||||
- **Steam client cores** — Steam pins its own interface renderer to a subset of cores it chooses (on
|
||||
one device 5 of 8, leaving out both little cores and the fastest), which is reasonable while a
|
||||
game runs and makes Big Picture sluggish when the client is all there is. Turning the override
|
||||
on pins the client, its UI helper and gamescope to the cores you tick, re-applied every few
|
||||
seconds because the UI keeps spawning helpers that inherit Steam's choice. Every core ticked is
|
||||
the usual fix — and, unlike the game mask, it *is* sent when it names every core, since undoing
|
||||
Steam's pin is the whole point.
|
||||
- **Game cores** — applied by the Proton wrapper, which execs the game through `taskset` so every
|
||||
thread inherits the mask from its first instruction. Leaving every core ticked sends nothing;
|
||||
untick the small cores to keep a heavy game off them.
|
||||
|
||||
Both apply at the next session start.
|
||||
|
||||
Under the same dialog, **session fixes** for a device the runtime does not sit well on, tried one at
|
||||
a time. **Skip Steam's xalia helper** (`PROTON_USE_XALIA=0`) is the one to reach for when a session
|
||||
dies seconds after Big Picture appears: xalia is an x86 Windows program Proton starts for gamepad
|
||||
navigation, it cannot load the session's preload shim under FEX, and where the vendor's seccomp
|
||||
answers its `socket()` and `memfd` calls with ENOSYS it storms until the session collapses (89
|
||||
refusals then a broken pipe, in the log). It costs gamepad navigation in Windows programs that are
|
||||
not games. Then two for a runtime that renders slowly: **Turnip: sysmem rendering** (`TU_DEBUG=sysmem`, Banners-Turnip's advice for an Adreno 8xx that
|
||||
looks glitchy or slow; a 710/720/722 gets it on its own) and **Zink: lazy descriptors**
|
||||
(`ZINK_DESCRIPTORS=lazy`, for Steam's menus, which Chromium draws through Zink — the first thing to
|
||||
try when they are slow while games are fast). The `steamdeck-tu-debug` and `steamdeck-env` files in
|
||||
Downloads still win over both.
|
||||
|
||||
## Networking and the client's own network page
|
||||
|
||||
The session uses the phone's connection directly - proot makes no network namespace, so IPv4 and
|
||||
IPv6 both pass through - and the app writes the runtime's `/etc/resolv.conf` from the active
|
||||
network's own DNS servers whenever the link changes.
|
||||
|
||||
The client's **Settings → Internet** page and its connection indicator are a different matter:
|
||||
they are built on NetworkManager, which the client looks for on the system bus as it starts. Without
|
||||
one, that page stopped with *"StartScanningForNetworks is not a function"* under a header showing no
|
||||
connection even while downloads ran. The session now starts a small system bus and a **stand-in that
|
||||
answers for NetworkManager**, reporting what is true and nothing more - one connection that is up
|
||||
while Android has a route out - and refusing what it cannot do, since nothing in this runtime can
|
||||
scan for or join a network. The session log says `network: system bus up, NetworkManager stand-in
|
||||
running` when it is working.
|
||||
|
||||
That stand-in is **maxjivi05's**, from WinNative, by way of Bannerlator.
|
||||
|
||||
## Compatibility tools
|
||||
|
||||
**Compatibility tools** (main screen and drawer) installs GE-Proton or proton-cachyos — native
|
||||
ARM64 builds — beside the ARM64 Proton Valve ships. The runtime's own registrar downloads and
|
||||
installs a requested build when the next session starts (several hundred MB), patches it past
|
||||
pressure-vessel like Valve's, and it then appears in Steam under Properties → Compatibility for
|
||||
any game. The dialog queues or cancels a request and removes an installed build.
|
||||
|
||||
## The cog beside Play and Desktop
|
||||
|
||||
Each launch button has a cog, and everything that only matters for that one mode lives behind it,
|
||||
so the main screen keeps only what applies to both: **resolution** (up to 720p by default; 900p, 1080p, or the
|
||||
panel's own), the display **shape**, **HDR10 output**, the
|
||||
**Linux runtime driver** for that mode and the shared **display driver**, **touch**, and for Steam
|
||||
the on-screen controls and audio, for the desktop its renderer.
|
||||
|
||||
**HDR10** is a switch that is greyed out, with the reason, on a panel that does not list HDR10 —
|
||||
the compositor's HDR gate is decided from the display's own word (`android.view.Display`), once,
|
||||
when the compositor starts. On, the compositor offers `wp_color_manager_v1` with BT.2020 + PQ and
|
||||
10-bit buffers, gamescope is started with `--hdr-enabled` and speaks the same protocol to it, and
|
||||
games get `DXVK_HDR=1`; a game that renders HDR then reaches the panel as HDR on its own display
|
||||
layer, tagged BT2020_PQ. The compositor lives for the whole app process, so a change applies after
|
||||
the app is fully closed and opened again. ⚠️ Wired end to end; not yet seen on a device from this
|
||||
app (Bannerlator proved the same compositor path on a Fold).
|
||||
|
||||
## Graphics drivers
|
||||
|
||||
Two drivers, two lists, because a zip for one cannot serve the other — the same split Bannerlator's
|
||||
Contents screen makes. Both are chosen in the cog beside Play / Desktop:
|
||||
|
||||
- **Linux runtime driver** — the glibc Turnip everything *inside* the runtime renders on: the Steam
|
||||
client's UI, every game it launches, and in desktop mode every program on the desktop. Import a
|
||||
"-Linux" Turnip zip from Banners-Turnip; a plain Android or "-Wayland" Turnip is refused with the
|
||||
reason, since a Linux process cannot load a bionic library. The choice is per mode, so Steam and
|
||||
the desktop can run different builds, and it takes effect at the next session start. Nothing in
|
||||
the runtime is modified: the session is handed the imported driver's ICD manifest and points the
|
||||
Vulkan loader at it, and the runtime's own Turnip is what a removed or unreadable import falls
|
||||
back to. This is how a driver fix reaches an installed runtime without a ~790 MB re-download.
|
||||
- **Display driver (Android)** — the bionic Turnip the app's compositor puts the frame on the panel
|
||||
with, the last step of every session. *Auto* picks one of the two bundled builds by GPU; an
|
||||
imported AdrenoTools zip can be chosen instead. The compositor loads its driver once per app
|
||||
process, so this one applies after the app is fully closed and started again.
|
||||
|
||||
Both imports open the app's own file picker rather than Android's document picker: an SD card is a
|
||||
card in its drive menu, the folder last picked from is where it opens next time, and it hands back
|
||||
a plain path.
|
||||
|
||||
## Frame generation
|
||||
|
||||
Extra frames are generated between the real ones on the way to the screen — inside the app's
|
||||
compositor, on gamescope's final output — so it works for any game with nothing changed in the
|
||||
runtime. **Win-FG** is built in. **LSFG** uses the shader chain from your own copy of Lossless
|
||||
Scaling: install it from the Steam client in this app and the app reads its `Lossless.dll` from
|
||||
the runtime's Steam library (parsed as data, never executed; nothing of it is redistributed).
|
||||
Pick an engine and 2×/3×/4× on the main screen; it applies immediately, mid-game included.
|
||||
|
||||
## Background and foreground
|
||||
|
||||
A session belongs to a foreground service, not to the activity, so leaving Big Picture does not
|
||||
end it: the process stays at perceptible priority, a partial wake lock keeps the CPU from dropping
|
||||
the guest's threads, and a high-performance WiFi lock keeps a backgrounded download from being
|
||||
throttled to nothing. **Back opens the drawer**: the performance HUD switch, frame generation, on-screen controls
|
||||
(auto / always / never), the display shape (the panel's own, or a fixed 16:9 — the default on a
|
||||
foldable, so opening or closing it mid-session only changes the bars, never the picture; takes
|
||||
effect on the next session), *Send to background* and *Stop session*. Backgrounded, Steam keeps
|
||||
running and the (silent) notification brings it back. A session ends only when you say so — the
|
||||
drawer or the notification's **Stop session** — or when the app is swiped out of recents.
|
||||
|
||||
## Device switches
|
||||
|
||||
Files in `/sdcard/Download`, for a device that cannot be reached with a debugger:
|
||||
|
||||
| File | Effect |
|
||||
|---|---|
|
||||
| `steamdeck-no-pad` | Turns the controller feature off entirely (a true baseline) |
|
||||
| `steamdeck-pad-log` | Traces every interposer call into the session log |
|
||||
| `steamdeck-driver` | `a7xx`, `a8xx` or `system` — overrides the Turnip build the compositor loads |
|
||||
| `steamdeck-no-hud` | Hides the top-right performance line (fps, and `base → generated` while frame generation runs) |
|
||||
| `steamdeck-osc` | `always` or `never` — pins the on-screen controls instead of following what is attached |
|
||||
| `steamdeck-env` | `KEY=VALUE` lines added to the session's environment as written, after the app's own — Zink and Turnip tunables (`ZINK_DESCRIPTORS=lazy`, `MESA_*`), gamescope's, the client's; `#` comments allowed |
|
||||
| `steamdeck-tu-debug` | Turnip's `TU_DEBUG` for the runtime's driver, verbatim (`sysmem`, `sysmem,deck_emu`). Without it, an imported A710/A720/A722 driver gets `sysmem` on its own |
|
||||
|
||||
## Session logs
|
||||
|
||||
Every session writes a folder under `/sdcard/Download/SteamDeck/`, and it is the first thing to
|
||||
look at when something does not start:
|
||||
|
||||
```
|
||||
Download/SteamDeck/session-20260921-161256/
|
||||
device.txt what this device is, and every setting the session ran with
|
||||
session.log the guest session: proot, gamescope, the client's own output
|
||||
wayland.log the app's compositor - what it presented, at what size, and how fast
|
||||
app.log what the app itself decided and reported
|
||||
crash.log Android's crash buffer, as it stood when the session ended
|
||||
crash-app.txt the stack trace, if the app itself crashed
|
||||
audio.log the PulseAudio daemon and the DirectAudio relay helper
|
||||
network.txt the link, the DNS the runtime was given, and what it means
|
||||
steam.log the Steam client's log, scrubbed (Steam mode)
|
||||
steam/ the rest of the client's logs, scrubbed (Steam mode)
|
||||
desktop.log labwc, the panel and the programs on it (desktop mode)
|
||||
```
|
||||
|
||||
`app.log` is this app's own logcat, filtered to its process: which driver it chose and why, the
|
||||
audio line, a rival Steam client being stopped, a helper that was missing, the session's exit
|
||||
status. `crash.log` is Android's crash buffer at teardown, which is where a session the *system*
|
||||
killed leaves its only trace - proot once died before `main` over a missing library and said so
|
||||
there and nowhere else. `audio.log` is the PulseAudio daemon's own output plus the relay helper's,
|
||||
so a module that refuses to load is visible instead of being a silent absence of sound.
|
||||
`network.txt` records the transport, whether the link validated, the address families and the DNS
|
||||
servers the runtime was actually given - **never the network's name**.
|
||||
|
||||
A folder is finished **however the session ends**, not only at a clean stop. Everything written
|
||||
*during* a session is on disk as it happens; only the ending - the compositor's log, Steam's
|
||||
scrubbed logs, the crash buffer - is gathered afterwards, and three things gather it: the ordinary
|
||||
stop; the app's own crash handler, which writes `crash-app.txt` with the stack trace and finishes
|
||||
the folder before the process dies; and a sweep at the next app start, for a folder whose process
|
||||
was killed outright (Android's phantom-process killer, a native crash in the compositor, a dead
|
||||
battery) - that folder gets `ended-without-teardown.txt` saying so, and `crash.log` as the buffer
|
||||
stands then, which still holds the entry unless the device rebooted. A finished folder carries a
|
||||
`.complete` marker; one without it is what the sweep looks for.
|
||||
|
||||
**Session logs** on the main screen turns the folder off. The session still writes its logs - the
|
||||
scripts and the compositor need somewhere to - but into the app's cache, and they are deleted
|
||||
when the session ends, so nothing accumulates in Downloads.
|
||||
|
||||
A session's process tree is also swept at the next start: proot, gamescope and Steam outlive an
|
||||
app that was killed or crashed, holding the rootfs, the GPU and Steam's lock, and the next session
|
||||
then never came up until the app was force-stopped (a Thor Pro report). Anything under the app's
|
||||
uid other than the app itself is a leftover at that point, and `app.log` lists what was killed.
|
||||
|
||||
`device.txt` is written before the session starts, so a session that dies in its first second
|
||||
still says what it ran on: model, SoC, Android and kernel, cores and their ceilings, RAM, the GPU
|
||||
as KGSL names it, the panel, **which driver each half of the session chose**, the runtime version,
|
||||
and every switch that was in effect. **Nothing identifying is collected** - no serial number, no
|
||||
device or advertising id, no account name, no network names - and the Steam logs are scrubbed line
|
||||
by line on the way in: session tokens, machine-auth GUIDs, WebAPI keys, Guard codes and e-mail
|
||||
addresses are replaced, and a SteamID is masked to its last four digits so lines can still be
|
||||
correlated. `loginusers.vdf`, `config.vdf` and the `ssfn` files are never copied at all. A session
|
||||
folder is meant to be attachable to a bug report exactly as it is.
|
||||
|
||||
For more from the desktop than it normally says, create `~/.steamdeck-desktop-debug` inside the
|
||||
runtime: labwc then logs at debug level, each program's window-protocol traffic is recorded, and the
|
||||
session does a name lookup plus an IPv4 and an IPv6 fetch of its own — which is how to tell a broken
|
||||
network apart from a program that only believes it has one.
|
||||
|
||||
### If Steam dies with nothing in the log
|
||||
|
||||
That is usually not Steam. **Android 12 and later kill the extra processes an app starts for
|
||||
itself** once there are more than a few, and a session is made of dozens - proot, gamescope,
|
||||
Xwayland, the client and its helpers, Wine, FEX. Where that is left on, the OS ends the session and
|
||||
no log of ours says why, because nothing in the session did it. Some phones expose it in Developer
|
||||
options as a **"restrict child processes"** switch; turn it off. Otherwise, once per device:
|
||||
|
||||
```sh
|
||||
adb shell settings put global settings_enable_monitor_phantom_procs false
|
||||
```
|
||||
|
||||
`device.txt` records what this phone reports, and the Performance dialog says so when it is not
|
||||
disabled.
|
||||
|
||||
## Authors
|
||||
|
||||
- **The412Banner** — the app, the Wayland compositor, the runtime plumbing and the Steam session.
|
||||
- **maxjivi05 (Max)** — the gamescope runtime this is built on: the proot session, the session
|
||||
shim, the fake-evdev interposer and the controller work, from WinNative.
|
||||
|
||||
## Lineage and licence
|
||||
|
||||
GPL-3.0. The gamescope runtime, the session shim and the fake-evdev interposer come from
|
||||
maxjivi05's WinNative work and from Bannerlator, both GPL-3.0; the Wayland compositor, the frame
|
||||
generation engines and the runtime plumbing are Bannerlator's. Underneath all of it is Winlator
|
||||
(brunodev85, GPL-3.0): the PulseAudio-on-AAudio audio stack, the gamepad state model and the shape
|
||||
of a session's host-side components are his, and WinNative and Bannerlator are both Winlator
|
||||
lineage. Valve, Steam and Proton are Valve Corporation's; this project
|
||||
is not affiliated with Valve.
|
||||
|
After Width: | Height: | Size: 573 KiB |
|
After Width: | Height: | Size: 1000 KiB |
|
After Width: | Height: | Size: 809 KiB |