mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Keep the session alive in the background, rename the package, sign with the testkey, and draw the app a logo
The session now belongs to a foreground service rather than the activity. Android demotes a process as soon as its last visible activity goes and the low-memory killer reaps the guest, so leaving Big Picture to answer a message came back to a dead Steam; the service holds the process 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. The notification is silent (IMPORTANCE_LOW), carries a Stop action, and returns to the session when tapped. Back now puts the app away and leaves Steam running; a swipe out of recents ends the session. The compositor moved with it: it is process-wide, started once, and merely swaps the Surface it presents into as the activity comes and goes. Package is com.steamdeck.launcher, signed with the AOSP testkey (v1+v2+v3) so every build installs over the last one, and CI asserts all three schemes. The launcher icon is our own controller on a purple glow — the spirit of the Steam tile the client entry uses, none of its geometry.
This commit is contained in:
1 parent
4031f512fc
commit
344e70afc6
49 files changed
+977
-615
No files matched your search
@@ -38,15 +38,24 @@ The runtime image is the same one Bannerlator installs, so on a device that alre
|
||||
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.the412banner.steamdeck/files/ \
|
||||
&& chown -R $(stat -c %u /data/data/com.the412banner.steamdeck/files) \
|
||||
/data/data/com.the412banner.steamdeck/files/linuxfs \
|
||||
&& chcon -R u:object_r:app_data_file:s0 /data/data/com.the412banner.steamdeck/files/linuxfs'
|
||||
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.
|
||||
|
||||
## 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 puts the app away and leaves Steam running; the (silent) notification
|
||||
brings it back. A session ends only when you say so — the notification's **Stop session** action —
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user