Compare commits

..
Author SHA1 Message Date
The412Banner 95c677e486 fix(native): answer a refused memfd reopen when the copy's mode cannot be set
The copy that answers a refused read-only reopen of an own memfd was
discarded whenever fchmod on it failed. Every other step of the copy
passes on Samsung Android 17 phones, which still refuse the reopen with
EACCES, so the mode change is the step their policy denies. The mode is
now set only when the new memfd differs from the original, and a refused
mode change keeps the copy. Easy Anti-Cheat's module load from a memfd
goes through this path in native and FEX processes.
2026-12-05 20:46:34 +00:00
72 changed files with 464 additions and 897 deletions

No files matched your search

-7
View File
@@ -157,13 +157,6 @@ DroidDeck is [GPL-3.0](LICENSE). Steam and Proton belong to Valve Corporation. V
</details>
<details>
<summary><b>Setup and tools</b></summary>
- The wireless debugging pairing keypad was inspired by Ryan Retro’s Handheld Toolkit.
</details>
## Star history
<a href="https://www.star-history.com/#Droid-Deck/DroidDeck&Date">
@@ -52,7 +52,6 @@ import com.droiddeck.launcher.ui.ComponentsPage
import com.droiddeck.launcher.session.GameSaves
import com.droiddeck.launcher.session.SessionLogShare
import com.droiddeck.launcher.session.SessionPaths
import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.SteamRepair
import com.droiddeck.launcher.session.LaunchCoordinator
@@ -209,8 +208,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
private var orientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
private var launcherOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER)
private var homePage by mutableStateOf(com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM)
private var launcherFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
private var launcherFullscreen by mutableStateOf(true)
private var launcherFrost by mutableStateOf(false)
private var frostWallpaper by mutableStateOf(true)
private var frostCards by mutableStateOf(true)
@@ -1368,12 +1366,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
orientation = SessionPrefs.orientation(this)
launcherOrientation = com.droiddeck.launcher.core.AppUiPrefs.orientation(this)
requestedOrientation = launcherOrientation
launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
applyLauncherFullscreen()
homePage = com.droiddeck.launcher.core.AppUiPrefs.homePage(this)
launcherFullscreenMode = SessionPrefs.launcherFullscreenMode(this)
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
launcherFullscreen = SessionPrefs.launcherFullscreen(this)
launcherFrost = SessionPrefs.launcherFrost(this)
frostWallpaper = SessionPrefs.frostWallpaper(this)
frostCards = SessionPrefs.frostCards(this)
@@ -1488,8 +1482,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
orientation = orientation,
launcherOrientation = launcherOrientation,
homePage = homePage,
launcherFullscreenMode = launcherFullscreenMode,
sessionFullscreenMode = sessionFullscreenMode,
launcherFullscreen = launcherFullscreen,
launcherFrost = launcherFrost,
frostWallpaper = frostWallpaper,
frostCards = frostCards,
@@ -1668,7 +1661,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
},
onSaveExport = { sg, layout -> exportSaves(sg.name, layout) { GameSaves.game(this@FrontEndActivity, sg) } },
onPerformance = { refreshCores(); showComponents = false; showMapping = false; showPerformance = true },
performancePanel = { memory -> PerformanceHost(embedded = true, memory = memory) },
performancePanel = { PerformanceHost(embedded = true) },
onRoms = { showRoms = true },
onFiles = { startActivity(Intent(this, com.droiddeck.launcher.files.FileManagerActivity::class.java)) },
onBrowseFiles = { dir ->
@@ -1765,14 +1758,13 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
}
}, "delete-session-logs").start()
},
onClearLogs = { done ->
onClearLogs = {
Thread({
val cleared = runCatching { SessionArtifacts.clearAll(this) }.getOrDefault(0)
ui.post {
android.widget.Toast.makeText(this,
if (cleared == 0) getString(R.string.main_no_logs_to_clear) else resources.getQuantityString(R.plurals.main_logs_cleared, cleared, cleared),
android.widget.Toast.LENGTH_SHORT).show()
done()
}
}, "clear-logs").start()
},
@@ -1824,15 +1816,11 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
homePage = value
},
onControllerHaptics = { on -> SessionPrefs.setControllerHaptics(this, on); controllerHaptics = on },
onLauncherFullscreenMode = { mode ->
SessionPrefs.setLauncherFullscreenMode(this, mode)
launcherFullscreenMode = mode
onLauncherFullscreen = { on ->
SessionPrefs.setLauncherFullscreen(this, on)
launcherFullscreen = on
applyLauncherFullscreen()
},
onSessionFullscreenMode = { mode ->
SessionPrefs.setSessionFullscreenMode(this, mode)
sessionFullscreenMode = mode
},
onLauncherFrost = { on ->
SessionPrefs.setLauncherFrost(this, on)
launcherFrost = on
@@ -2164,13 +2152,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
private fun frostShown(): Boolean =
launcherFrost && frostWallpaper && frost.prepared && frost.available && theme != com.droiddeck.launcher.ui.Themes.TRUE_BLACK
override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
super.onConfigurationChanged(newConfig)
applyLauncherFullscreen(newConfig)
}
private fun applyLauncherFullscreen(config: android.content.res.Configuration = resources.configuration) {
val launcherFullscreen = launcherFullscreenMode.hidesSystemBars(config.orientation)
private fun applyLauncherFullscreen() {
@Suppress("DEPRECATION")
window.decorView.systemUiVisibility = if (launcherFullscreen) {
(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
@@ -3114,7 +3096,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
}
@Composable
private fun PerformanceHost(embedded: Boolean = false, memory: @Composable () -> Unit = {}) {
private fun PerformanceHost(embedded: Boolean = false) {
if (embedded) androidx.compose.runtime.LaunchedEffect(Unit) { refreshCores() }
PerformancePage(
cores = CpuCores.all.map { c -> CoreRow(c, "cpu$c" + (CpuCores.maxGhz(c)?.let { String.format(java.util.Locale.US, " · %.1f GHz", it) } ?: "")) },
@@ -3155,7 +3137,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
},
onDismiss = { showPerformance = false },
embedded = embedded,
memory = memory,
)
}
@@ -128,7 +128,6 @@ import com.droiddeck.launcher.session.GpuClockPin
import com.droiddeck.launcher.session.GameProfileFollowState
import com.droiddeck.launcher.session.GameProfileInventoryCache
import com.droiddeck.launcher.session.GameProfileRefreshState
import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.SessionEvents
import com.droiddeck.launcher.session.SessionArtifacts
@@ -644,7 +643,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
private var drawerControllerActive by mutableStateOf(false)
private var backHold by mutableStateOf(true)
private var dockedMenuController by mutableStateOf(false)
private var sessionFullscreenMode by mutableStateOf(FullscreenMode.ALWAYS)
private var sessionOrientation by mutableStateOf(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE)
private var dualScreenSessionMode by mutableStateOf(com.droiddeck.launcher.input.DualScreen.MODE_AUTO)
private var backActionsInverted by mutableStateOf(false)
@@ -942,8 +940,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
}
applyFollowChoice()
applyFollowOrientation(resources.configuration)
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
applySessionFullscreen()
goFullscreen()
volumeControlStream = android.media.AudioManager.STREAM_MUSIC
displayManager = getSystemService(DISPLAY_SERVICE) as DisplayManager
refreshSecondScreenDisplays()
@@ -2106,12 +2103,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
onPause = ::pauseNow,
paused = SessionState.suspended || SessionState.manualPause,
onResume = { SessionService.resume(this@SessionActivity) },
fullscreenMode = sessionFullscreenMode,
onFullscreenMode = { mode ->
SessionPrefs.setSessionFullscreenMode(this@SessionActivity, mode)
sessionFullscreenMode = mode
applySessionFullscreen()
},
orientation = sessionOrientation,
onOrientation = { value ->
when (SessionState.mode) {
@@ -3318,7 +3309,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
override fun onConfigurationChanged(newConfig: android.content.res.Configuration) {
super.onConfigurationChanged(newConfig)
if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen(newConfig)
picturePosition = SessionPrefs.picturePosition(this, picturePortrait(newConfig))
if (refreshActivityDisplayId() && started) {
SessionService.setActivityDisplay(this, sessionActivityDisplayId)
@@ -6679,8 +6669,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
uiHandler.removeCallbacks(questSteamVrRequest)
if (com.droiddeck.launcher.session.QuestExperimental.isSupported()) uiHandler.post(questSteamVrRequest)
if (runtimeRemovalBlocked) return
sessionFullscreenMode = SessionPrefs.sessionFullscreenMode(this)
if (!pipUi && !isInPictureInPictureMode) applySessionFullscreen()
if (!SessionState.suspended) pausedFrame = null
com.droiddeck.launcher.ui.Motion.refresh(this)
refreshHomeApp()
@@ -7394,7 +7382,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (hasFocus && airTriggersOpen) RedMagicAirTriggers.open(this)
if (hasFocus && !pipUi) {
retryFieldKeyboard(true)
applySessionFullscreen()
goFullscreen()
refreshClipboard()
}
updatePointerCapture()
@@ -7404,24 +7392,19 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (resumed) sessionClipboard.refresh()
}
private fun applySessionFullscreen(config: android.content.res.Configuration = resources.configuration) {
val fullscreen = sessionFullscreenMode.hidesSystemBars(config.orientation)
if (fullscreen) window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
else window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
private fun goFullscreen() {
@Suppress("DEPRECATION")
window.decorView.systemUiVisibility = if (fullscreen) (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
or View.SYSTEM_UI_FLAG_FULLSCREEN
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) else View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
if (Build.VERSION.SDK_INT >= 28) {
window.attributes = window.attributes.apply {
layoutInDisplayCutoutMode = when {
!fullscreen -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
Build.VERSION.SDK_INT >= 30 -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
else -> WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}
layoutInDisplayCutoutMode = if (Build.VERSION.SDK_INT >= 30)
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
else WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}
}
}
@@ -23,7 +23,7 @@ object AgentAccess {
fun requireCommands(context: Context) {
if (!commandsAllowed(context)) throw AgentException(
"AGENT_COMMANDS_DISABLED",
"droiddeckctl is off: turn on Setup > Developer > droiddeckctl on the device",
"Debugging tools are off: turn on Setup > Developer > Debugging tools on the device",
)
}
@@ -192,7 +192,6 @@ object DeviceReport {
val fs = StatFs(Environment.getExternalStorageDirectory().path)
k("Shared storage free", FileUtils.sizeToString(fs.availableBlocksLong * fs.blockSizeLong))
}
k("All files access", runCatching { com.droiddeck.launcher.files.AllFilesAccess.state() }.getOrNull())
h("GPU")
k("KGSL gpu_model", readSys("/sys/class/kgsl/kgsl-3d0/gpu_model"))
@@ -119,7 +119,7 @@ object WirelessAdbFix {
* socket table, and mDNS often advertises nothing, so the ephemeral range Linux gives adbd is
* scanned on loopback (closed ports refuse at once) and the open ports are tried with our key.
*/
private fun loopbackAdbPort(app: Context, exclude: Int? = null): Int? {
private fun loopbackAdbPort(app: Context): Int? {
val open = java.util.concurrent.ConcurrentLinkedQueue<Int>()
val workers = 32
val range = EPHEMERAL_PORTS
@@ -127,7 +127,7 @@ object WirelessAdbFix {
Thread {
var port = range.first + worker
while (port <= range.last) {
if (port != exclude && answers(LOOPBACK, port, 150)) open += port
if (answers(LOOPBACK, port, 150)) open += port
port += workers
}
}.apply { start() }
@@ -162,28 +162,8 @@ object WirelessAdbFix {
}.getOrDefault(address is Inet4Address)
fun localConnectPort(context: Context): Int? =
discoverConnectPort(context, LOOPBACK)
private fun discoverConnectPort(context: Context, host: String, exclude: Int? = null): Int? =
chooseConnectPort(host, exclude,
property = ::tlsPortProperty,
advertised = { acceptable -> findConnectPort(context, host, accept = acceptable) },
answers = { port -> answers(host, port) },
// Some local devices never advertise their connect port. Try only
// loopback and require the app's existing paired key to authenticate.
authenticatedLocal = { loopbackAdbPort(context.applicationContext, exclude) },
)
internal fun chooseConnectPort(
host: String, exclude: Int?,
property: () -> Int?, advertised: ((Int) -> Boolean) -> Int?,
answers: (Int) -> Boolean, authenticatedLocal: () -> Int?,
): Int? {
val local = host == LOOPBACK
val acceptable: (Int) -> Boolean = { port -> port != exclude && (!local || answers(port)) }
val propertyPort = if (local) property()?.takeIf(acceptable) else null
return propertyPort ?: advertised(acceptable) ?: if (local) authenticatedLocal() else null
}
tlsPortProperty()
?: findConnectPort(context, LOOPBACK)
private fun tlsPortProperty(): Int? = runCatching {
Class.forName("android.os.SystemProperties").getMethod("get", String::class.java)
@@ -321,14 +301,14 @@ object WirelessAdbFix {
if (cachedPort != null) {
val cachedResult = runCatching { action(appContext, saved.host, cachedPort) }
if (cachedResult.isSuccess) return
val discoveredPort = discoverConnectPort(appContext, saved.host, exclude = cachedPort)
val discoveredPort = findConnectPort(appContext, saved.host)
if (discoveredPort != null && discoveredPort != cachedPort) {
action(appContext, saved.host, discoveredPort)
} else {
cachedResult.getOrThrow()
}
} else {
val discoveredPort = discoverConnectPort(appContext, saved.host)
val discoveredPort = findConnectPort(appContext, saved.host)
?: error(appContext.getString(R.string.adbfix_enter_address))
action(appContext, saved.host, discoveredPort)
}
@@ -4,23 +4,20 @@ import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.RemoteInput
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import android.os.Build
import android.os.Handler
import android.os.IBinder
import android.os.Looper
import android.util.TypedValue
import android.widget.RemoteViews
import com.droiddeck.launcher.FrontEndActivity
import com.droiddeck.launcher.R
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import java.util.UUID
class WirelessAdbPairingService : Service() {
override fun attachBaseContext(newBase: android.content.Context) =
@@ -40,8 +37,6 @@ class WirelessAdbPairingService : Service() {
private var discovery: NsdManager.DiscoveryListener? = null
private var pairingHost: String? = null
private var pairingPort: Int? = null
private val keypad = WirelessPairingKeypad()
private var keypadToken = UUID.randomUUID().toString()
@Volatile private var working = false
@Volatile private var limitEnabled = false
@Volatile private var session = 0
@@ -51,21 +46,13 @@ class WirelessAdbPairingService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
when (intent?.action) {
ACTION_KEYPAD -> {
if (intent.data?.host == keypadToken && current.value is Stage.CodeNeeded && !working) {
val key = intent.data?.lastPathSegment?.toIntOrNull()
if (key == WirelessPairingKeypad.SUBMIT) {
if (keypad.ready && pairingPort != null) onCode(keypad.digits)
} else if (key != null && keypad.press(key)) {
show(current.value, quietUpdate = true)
}
} else if (current.value == Stage.Idle) {
stopSelf(startId)
}
ACTION_CODE -> {
val code = RemoteInput.getResultsFromIntent(intent)?.getCharSequence(KEY_CODE)
?.filter(Char::isDigit)?.toString().orEmpty()
onCode(code)
}
ACTION_CANCEL -> finish(Stage.Idle)
null -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
else -> if (discovery == null && !working) stopSelf(startId)
else -> begin(intent?.getBooleanExtra(EXTRA_ENABLE_LIMIT, false) == true)
}
return START_NOT_STICKY
}
@@ -73,13 +60,11 @@ class WirelessAdbPairingService : Service() {
private fun begin(enableLimit: Boolean) {
if (working) return
session++
resetKeypad()
limitEnabled = enableLimit
pairingHost = null
pairingPort = null
working = false
publish(Stage.Waiting)
getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
startForeground(NOTIFICATION_ID, notification(Stage.Waiting))
startDiscovery()
main.removeCallbacks(timeout)
@@ -116,13 +101,9 @@ class WirelessAdbPairingService : Service() {
if (!WirelessAdbFix.isLocalAddress(address)) return
main.post {
if (owner != session || working || current.value == Stage.Done) return@post
val endpointChanged = pairingHost != address.hostAddress || pairingPort != serviceInfo.port
pairingHost = address.hostAddress
pairingPort = serviceInfo.port
if (endpointChanged) {
resetKeypad()
show(Stage.CodeNeeded())
}
if (current.value !is Stage.CodeNeeded) show(Stage.CodeNeeded())
}
}
}
@@ -136,12 +117,11 @@ class WirelessAdbPairingService : Service() {
show(Stage.Waiting)
return
}
if (code.length != WirelessPairingKeypad.LENGTH) {
if (code.length != 6) {
show(Stage.CodeNeeded(getString(R.string.adbpair_six_digits)))
return
}
working = true
resetKeypad()
val owner = session
val enable = limitEnabled
show(Stage.Working(getString(R.string.adbpair_pairing)))
@@ -175,34 +155,17 @@ class WirelessAdbPairingService : Service() {
}, "wireless-adb-pairing").start()
}
private fun show(stage: Stage, quietUpdate: Boolean = false) {
private fun show(stage: Stage) {
publish(stage)
val manager = getSystemService(NotificationManager::class.java) ?: return
if (stage is Stage.CodeNeeded) {
// A new high-priority notification can pop over Settings. Updating the
// quiet foreground-service notification can leave the keypad in the shade.
// End any previous indeterminate progress even if this is a code retry.
if (!quietUpdate) manager.notify(NOTIFICATION_ID, notification(stage, foregroundCodeEntry = true))
manager.notify(KEYPAD_NOTIFICATION_ID, notification(stage, quietUpdate))
} else {
manager.cancel(KEYPAD_NOTIFICATION_ID)
manager.notify(NOTIFICATION_ID, notification(stage, quietUpdate))
}
}
private fun resetKeypad() {
keypad.clear()
keypadToken = UUID.randomUUID().toString()
getSystemService(NotificationManager::class.java)?.notify(NOTIFICATION_ID, notification(stage))
}
private fun finish(stage: Stage) {
session++
resetKeypad()
main.removeCallbacks(timeout)
stopDiscovery()
publish(stage)
val manager = getSystemService(NotificationManager::class.java)
manager?.cancel(KEYPAD_NOTIFICATION_ID)
if (stage is Stage.Done || stage is Stage.Failed) {
manager?.notify(NOTIFICATION_ID, notification(stage))
stopForeground(STOP_FOREGROUND_DETACH)
@@ -220,16 +183,13 @@ class WirelessAdbPairingService : Service() {
}
override fun onDestroy() {
getSystemService(NotificationManager::class.java)?.cancel(KEYPAD_NOTIFICATION_ID)
main.removeCallbacks(timeout)
stopDiscovery()
if (current.value.let { it is Stage.Waiting || it is Stage.CodeNeeded || it is Stage.Working }) publish(Stage.Idle)
super.onDestroy()
}
private fun notification(
stage: Stage, quietUpdate: Boolean = false, foregroundCodeEntry: Boolean = false,
): Notification {
private fun notification(stage: Stage): Notification {
val manager = getSystemService(NotificationManager::class.java)
manager?.createNotificationChannel(NotificationChannel(CHANNEL_ID, getString(R.string.adbpair_channel_name),
NotificationManager.IMPORTANCE_HIGH).apply {
@@ -245,7 +205,7 @@ class WirelessAdbPairingService : Service() {
PendingIntent.FLAG_IMMUTABLE)
val cancel = PendingIntent.getService(this, 1,
Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CANCEL), PendingIntent.FLAG_IMMUTABLE)
val quiet = foregroundCodeEntry || stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
val quiet = stage == Stage.Waiting || stage == Stage.Idle || stage is Stage.Working
val builder = Notification.Builder(this, if (quiet) PROGRESS_CHANNEL_ID else CHANNEL_ID)
.setSmallIcon(R.drawable.ic_stat_session)
.setContentIntent(open)
@@ -260,31 +220,19 @@ class WirelessAdbPairingService : Service() {
.setOnlyAlertOnce(true)
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
is Stage.CodeNeeded -> {
val reply = PendingIntent.getService(this, 2,
Intent(this, WirelessAdbPairingService::class.java).setAction(ACTION_CODE),
if (Build.VERSION.SDK_INT >= 31) PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
else PendingIntent.FLAG_UPDATE_CURRENT)
val input = RemoteInput.Builder(KEY_CODE).setLabel(getString(R.string.adbpair_code_label)).build()
val text = stage.error ?: getString(R.string.adbpair_code_hint)
builder
.setContentTitle(getString(if (foregroundCodeEntry) R.string.adbpair_title_pair
else if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
.setContentIntent(null)
.setVisibility(Notification.VISIBILITY_SECRET)
.setLocalOnly(true)
.setContentTitle(getString(if (stage.error == null) R.string.adbpair_title_code else R.string.adbpair_title_retry))
.setContentText(text)
.setStyle(Notification.BigTextStyle().bigText(text))
.setOngoing(true)
.setOnlyAlertOnce(foregroundCodeEntry || quietUpdate)
if (!foregroundCodeEntry) {
// Keep the keypad separate from status/install notifications. Android owns
// the heads-up timeout; the drawer remains usable without expanding a group.
builder.setGroup(KEYPAD_GROUP)
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
if (stage.error != null && pairingPort == null) {
builder.setContentText(stage.error)
.setStyle(Notification.BigTextStyle().bigText(stage.error))
} else {
builder.setStyle(Notification.DecoratedCustomViewStyle())
.setCustomBigContentView(pairingKeypad())
.setCustomHeadsUpContentView(pairingKeypad(keyHeightDp = 24))
if (Build.VERSION.SDK_INT >= 31) {
builder.setCustomContentView(pairingKeypad(keyHeightDp = 21))
}
}
}
.addAction(Notification.Action.Builder(null, getString(R.string.adbpair_enter_code), reply).addRemoteInput(input).build())
.addAction(Notification.Action.Builder(null, getString(R.string.common_cancel), cancel).build())
}
is Stage.Working -> builder
.setContentTitle(getString(R.string.adbpair_title_working))
@@ -306,39 +254,14 @@ class WirelessAdbPairingService : Service() {
return builder.build()
}
private fun pairingKeypad(keyHeightDp: Int? = null): RemoteViews = RemoteViews(packageName, R.layout.wireless_pairing_keypad).apply {
val ids = intArrayOf(R.id.pair_key_0, R.id.pair_key_1, R.id.pair_key_2, R.id.pair_key_3, R.id.pair_key_4,
R.id.pair_key_5, R.id.pair_key_6, R.id.pair_key_7, R.id.pair_key_8, R.id.pair_key_9,
R.id.pair_key_delete, R.id.pair_key_submit)
ids.forEachIndexed { key, id ->
if (keyHeightDp != null && Build.VERSION.SDK_INT >= 31) {
// Fit both rows inside the system template's heads-up or collapsed height.
setViewLayoutHeight(id, keyHeightDp.toFloat(), TypedValue.COMPLEX_UNIT_DIP)
setViewLayoutMargin(id, RemoteViews.MARGIN_TOP, 1f, TypedValue.COMPLEX_UNIT_DIP)
setViewLayoutMargin(id, RemoteViews.MARGIN_BOTTOM, 1f, TypedValue.COMPLEX_UNIT_DIP)
setTextViewTextSize(id, TypedValue.COMPLEX_UNIT_SP, if (keyHeightDp < 24) 14f else 15f)
}
val intent = Intent(this@WirelessAdbPairingService, WirelessAdbPairingService::class.java)
.setAction(ACTION_KEYPAD)
.setData(Uri.Builder().scheme("droiddeck-pairing").authority(keypadToken).appendPath(key.toString()).build())
val press = PendingIntent.getService(this@WirelessAdbPairingService, key, intent, PendingIntent.FLAG_IMMUTABLE)
setOnClickPendingIntent(id, press)
}
setTextViewText(R.id.pair_key_code, keypad.display)
setContentDescription(R.id.pair_key_code, getString(R.string.adbpair_keypad_entered, keypad.digits.length))
setBoolean(R.id.pair_key_delete, "setEnabled", keypad.digits.isNotEmpty())
setBoolean(R.id.pair_key_submit, "setEnabled", keypad.ready && pairingPort != null)
}
companion object {
private const val CHANNEL_ID = "wireless-adb-pairing"
private const val PROGRESS_CHANNEL_ID = "wireless-adb-pairing-progress"
private const val NOTIFICATION_ID = 3
private const val KEYPAD_NOTIFICATION_ID = 3403
private const val KEYPAD_GROUP = "wireless-adb-keypad"
private const val PAIRING_TYPE = "_adb-tls-pairing._tcp"
private const val ACTION_KEYPAD = "com.droiddeck.launcher.action.WIRELESS_ADB_KEYPAD"
private const val ACTION_CODE = "com.droiddeck.launcher.action.WIRELESS_ADB_CODE"
private const val ACTION_CANCEL = "com.droiddeck.launcher.action.WIRELESS_ADB_CANCEL"
private const val KEY_CODE = "code"
private const val EXTRA_ENABLE_LIMIT = "enable_limit"
private const val TIMEOUT_MS = 5 * 60_000L
@@ -365,7 +288,7 @@ class WirelessAdbPairingService : Service() {
fun notificationsEnabled(context: Context): Boolean =
context.getSystemService(NotificationManager::class.java)?.areNotificationsEnabled() != false && !channelBlocked(context)
/** Pairing needs this notification channel to show the keypad over Android Settings. */
/** The code is typed into a notification on this channel; a channel the user switched off leaves pairing with nothing to type into. */
fun channelBlocked(context: Context): Boolean =
context.getSystemService(NotificationManager::class.java)?.getNotificationChannel(CHANNEL_ID)?.importance == NotificationManager.IMPORTANCE_NONE
@@ -1,29 +0,0 @@
package com.droiddeck.launcher.core
internal class WirelessPairingKeypad {
var digits = ""
private set
val ready: Boolean get() = digits.length == LENGTH
val display: String get() = digits.padEnd(LENGTH, '–')
fun press(key: Int): Boolean {
val next = when {
key == DELETE -> digits.dropLast(1)
key in 0..9 && !ready -> digits + key
else -> digits
}
if (next == digits) return false
digits = next
return true
}
fun clear() {
digits = ""
}
companion object {
const val LENGTH = 6
const val DELETE = 10
const val SUBMIT = 11
}
}
@@ -14,15 +14,6 @@ object AllFilesAccess {
fun missing(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
sdk >= Build.VERSION_CODES.R && !granted()
fun state(sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): String = when {
sdk < Build.VERSION_CODES.R -> "not needed"
granted() -> "granted"
else -> "missing"
}
fun mayHideFilesIn(path: String, sdk: Int = Build.VERSION.SDK_INT, granted: () -> Boolean = { Environment.isExternalStorageManager() }): Boolean =
covers(path) && missing(sdk, granted)
/** Whether reading [path] takes all-files access: shared storage, outside the per-app folders directly under a volume's root, which Android always lets the app use. */
fun covers(path: String): Boolean {
val inside = VOLUME.matchEntire(path)?.groupValues?.get(2) ?: return false
@@ -1,18 +0,0 @@
package com.droiddeck.launcher.session
import android.content.res.Configuration
import androidx.annotation.StringRes
import com.droiddeck.launcher.R
enum class FullscreenMode(@StringRes val label: Int) {
ALWAYS(R.string.widgets_on),
LANDSCAPE_ONLY(R.string.setup_fullscreen_landscape_only),
OFF(R.string.widgets_off);
fun hidesSystemBars(orientation: Int): Boolean =
this == ALWAYS || (this == LANDSCAPE_ONLY && orientation == Configuration.ORIENTATION_LANDSCAPE)
companion object {
fun fromStored(value: String?): FullscreenMode? = entries.firstOrNull { it.name == value }
}
}
@@ -112,21 +112,10 @@ object SessionPrefs {
else -> false
}
fun launcherFullscreenMode(context: Context): FullscreenMode {
val preferences = prefs(context)
return FullscreenMode.fromStored(preferences.getString("launcherFullscreenMode", null))
?: if (preferences.getBoolean("launcherFullscreen", true)) FullscreenMode.ALWAYS else FullscreenMode.OFF
}
fun launcherFullscreen(context: Context): Boolean = prefs(context).getBoolean("launcherFullscreen", true)
fun setLauncherFullscreenMode(context: Context, mode: FullscreenMode) {
prefs(context).edit().putString("launcherFullscreenMode", mode.name).apply()
}
fun sessionFullscreenMode(context: Context): FullscreenMode =
FullscreenMode.fromStored(prefs(context).getString("sessionFullscreenMode", null)) ?: FullscreenMode.ALWAYS
fun setSessionFullscreenMode(context: Context, mode: FullscreenMode) {
prefs(context).edit().putString("sessionFullscreenMode", mode.name).apply()
fun setLauncherFullscreen(context: Context, on: Boolean) {
prefs(context).edit().putBoolean("launcherFullscreen", on).apply()
}
fun launcherFrost(context: Context): Boolean = prefs(context).getBoolean("launcherFrost", false)
@@ -1355,17 +1355,10 @@ class SessionService : Service() {
if (controllersOn) components.add(RumbleComponent().also { it.attach(this) })
val home = File(LinuxRuntime.rootDir(this), "root")
File(home, "Storage").mkdirs()
val addedExeFolders = com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }
val addedGameRoots = com.droiddeck.launcher.frontend.AddedGames.roots(this)
val addedFolders = (addedExeFolders + addedGameRoots.map { it.host }).distinctBy { it.path }
for (folder in addedFolders) {
if (com.droiddeck.launcher.files.AllFilesAccess.mayHideFilesIn(folder.path))
Log.w(TAG, "added games: Android may hide .exe files in $folder because All files access is missing")
}
if (sharedStorage != null) {
binds.add(sharedStorage.path + ":/root/Storage")
} else {
for (folder in addedExeFolders) {
for (folder in com.droiddeck.launcher.frontend.AddedExes.list(this).map { File(it.folder) }.distinctBy { it.path }) {
val guest = com.droiddeck.launcher.frontend.AddedGames.guestPath(this, folder) ?: continue
if (!guest.startsWith("/root/Storage/") || !folder.isDirectory) continue
File(LinuxRuntime.rootDir(this), guest.removePrefix("/")).mkdirs()
@@ -1416,7 +1409,7 @@ class SessionService : Service() {
Log.w(TAG, "storage diagnostics: selected library could not be identified; metadata snapshot only")
}
}
for (root in addedGameRoots) {
for (root in com.droiddeck.launcher.frontend.AddedGames.roots(this)) {
if (root.host.isDirectory && root.host.canRead()) {
File(LinuxRuntime.rootDir(this), root.guest.removePrefix("/")).mkdirs()
binds.add(root.host.path + ":" + root.guest)
@@ -12,7 +12,7 @@ object SettingsReset {
private const val TAG = "SettingsReset"
internal val SESSION_KEYS = setOf(
"orientation", "launcherFullscreen", "launcherFullscreenMode", "sessionFullscreenMode", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
"orientation", "launcherFullscreen", "launcherFrost", "frostWallpaper", "frostCards", "frostTransparency", "frostCardTransparency", "controllerHaptics", "animations", "lowStorageWarning", "theme", "runSteamAtStartup", "startupSession", "addedGamesArt",
"drawerWidthDp", "dualScreenMode", "dualScreenSessionMode", "dualScreenLauncher", "dualScreenSessionControls", "androidTextFieldKeyboard",
"soundtracksIngame", "gameStoresSpeedTier", "gameStoresParallel", "storesOpenTab", "storesShowMature",
"storesInstallLanguage",
@@ -67,18 +67,13 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext
@Composable
private fun agentPanelFrame(): Modifier =
Modifier.fillMaxWidth().clip(Shape14).background(MaterialTheme.colorScheme.surface)
.border(1.dp, LocalPalette.current.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp)
/** The model, reasoning effort, permissions and plan mode for the next turns; a conversation keeps going with whatever is chosen. */
@Composable
internal fun AgentModelPicker() {
val context = LocalContext.current
val pal = LocalPalette.current
val models = remember(AgentHost.harness) { AgentHost.models(context) }
Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(10.dp)) {
Column(Modifier.fillMaxWidth().padding(bottom = 10.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) {
Row(horizontalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.horizontalScroll(rememberScrollState())) {
val choices = listOf(AgentHarness.Model("", stringResource(R.string.agent_model_default))) + models
for (choice in choices) {
@@ -274,8 +269,12 @@ internal fun AgentProcessList(modifier: Modifier) {
@Composable
internal fun AgentUsage() {
val context = LocalContext.current
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
Column(agentPanelFrame(), verticalArrangement = Arrangement.spacedBy(8.dp)) {
Column(
Modifier.fillMaxWidth().clip(Shape14).background(colors.surface).border(1.dp, pal.line, Shape14).padding(horizontal = 14.dp, vertical = 10.dp),
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
if (AgentHost.window > 0) UsageRow(
stringResource(R.string.agent_usage_context),
stringResource(R.string.agent_usage_of, tokens(AgentHost.context), tokens(AgentHost.window)),
@@ -88,7 +88,6 @@ import com.droiddeck.launcher.input.SecondScreenDisplay
import com.droiddeck.launcher.core.DownloadSource
import com.droiddeck.launcher.core.PhantomProcessLimit
import com.droiddeck.launcher.core.PhantomProcessStatus
import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import kotlin.math.roundToInt
import kotlinx.coroutines.withTimeoutOrNull
@@ -177,8 +176,7 @@ class FrontEndState(
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
val launcherOrientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_USER,
val homePage: String = com.droiddeck.launcher.core.AppUiPrefs.HOME_PAGE_STEAM,
val launcherFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
val sessionFullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
val launcherFullscreen: Boolean = true,
val launcherFrost: Boolean = false,
val frostWallpaper: Boolean = true,
val frostCards: Boolean = true,
@@ -257,7 +255,7 @@ class FrontEndActions(
val onAddonDelete: (com.droiddeck.launcher.runtime.WowAddons.Target, String) -> Unit = { _, _ -> },
val onSaveExport: (Library.SteamGame, com.droiddeck.launcher.session.GameSaves.Layout) -> Unit = { _, _ -> },
val onPerformance: () -> Unit,
val performancePanel: @Composable (memory: @Composable () -> Unit) -> Unit = { memory -> memory() },
val performancePanel: @Composable () -> Unit = {},
val onRoms: () -> Unit,
val onFiles: () -> Unit,
val onBrowseFiles: (File) -> Unit = {},
@@ -278,7 +276,7 @@ class FrontEndActions(
val onShareSessionLog: (File) -> Unit = {},
val onSaveSessionLog: (File) -> Unit = {},
val onDeleteSessionLog: (File, () -> Unit) -> Unit = { _, done -> done() },
val onClearLogs: (() -> Unit) -> Unit = {},
val onClearLogs: () -> Unit = {},
val onResetSettings: () -> Unit = {},
val onOffline: () -> Unit,
val onOfflineAuto: () -> Unit = {},
@@ -290,8 +288,7 @@ class FrontEndActions(
val onOrientation: (Int) -> Unit = {},
val onLauncherOrientation: (Int) -> Unit = {},
val onHomePage: (String) -> Unit = {},
val onLauncherFullscreenMode: (FullscreenMode) -> Unit = {},
val onSessionFullscreenMode: (FullscreenMode) -> Unit = {},
val onLauncherFullscreen: (Boolean) -> Unit = {},
val onLauncherFrost: (Boolean) -> Unit = {},
val onFrostWallpaper: (Boolean) -> Unit = {},
val onFrostCards: (Boolean) -> Unit = {},
@@ -714,12 +711,9 @@ private fun FrontEndScreenBody(s: FrontEndState, a: FrontEndActions, page: (@Com
if (anyFocused) return
}
}
val launcherFullscreen = s.launcherFullscreenMode.hidesSystemBars(
androidx.compose.ui.platform.LocalConfiguration.current.orientation,
)
androidx.compose.foundation.layout.BoxWithConstraints(
modifier = Modifier.fillMaxSize().background(if (LocalFrost.current != null) Color.Transparent else colors.background)
.windowInsetsPadding(if (launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
.windowInsetsPadding(if (s.launcherFullscreen) WindowInsets.displayCutout else WindowInsets.systemBars)
.onFocusChanged { anyFocused = it.hasFocus },
) {
val bottomNavigation = maxHeight > maxWidth
@@ -85,7 +85,6 @@ import com.droiddeck.launcher.core.DeviceSupport
import com.droiddeck.launcher.core.DownloadSource
import com.droiddeck.launcher.core.PhantomProcessLimit
import com.droiddeck.launcher.core.PhantomProcessStatus
import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.stores.download.StoreDownloadTier
import com.droiddeck.launcher.R
@@ -436,10 +435,11 @@ internal fun SetupPanel(
}
}
SettingsGroup(stringResource(R.string.setup_runtime)) { runtimeCheck(false) }
SteamIntegrationGroup(s.integration, s.integrationFocus, a.onIntegration, a.onIntegrationAppInfo, a.onIntegrationLocation, collapsible = true)
SteamIntegrationGroup(s.integration, s.integrationFocus, a.onIntegration, a.onIntegrationAppInfo, a.onIntegrationLocation)
}
PERFORMANCE_TAB -> {
a.performancePanel { MemoryGroup(s, a, host, onPairWirelessDebugging) }
a.performancePanel()
MemoryGroup(s, a, host, onPairWirelessDebugging)
}
CONTROLLER_TAB -> {
val controller = s.controller
@@ -521,11 +521,11 @@ internal fun SetupPanel(
}
}
val device: @Composable () -> Unit = {
SettingsGroup(stringResource(R.string.setup_group_home_navigation)) {
SettingsGroup(stringResource(R.string.setup_group_device)) {
ToggleRow(
host, "home-screen", stringResource(R.string.setup_home),
if (s.homeScreenEnabled) stringResource(R.string.setup_home_on) else stringResource(R.string.setup_home_off),
s.homeScreenEnabled, sideBySide = true,
s.homeScreenEnabled,
) { a.onHomeScreen(it) }
if (s.homeScreenEnabled) {
ActionRow(stringResource(R.string.setup_default_home), s.defaultHomeLabel ?: stringResource(R.string.setup_choose_home), stringResource(R.string.setup_choose), a.onHomeApp)
@@ -542,35 +542,10 @@ internal fun SetupPanel(
s.homePage, onPick = a.onHomePage,
)
}
ToggleRow(
host, "page-swipe", stringResource(R.string.setup_page_swipe),
stringResource(R.string.setup_page_swipe_hint), PageSwipe.on, sideBySide = true,
) { on ->
PageSwipe.on = on
com.droiddeck.launcher.core.AppUiPrefs.setPageSwipe(ctx, on)
}
}
SettingsGroup(stringResource(R.string.setup_group_display)) {
var sessionDisplay by rememberSaveable { mutableStateOf(false) }
val jump = SettingsJump.target
val sessionLabels = listOf(
stringResource(R.string.setup_session_orientation),
stringResource(R.string.setup_session_fullscreen),
stringResource(R.string.setup_dual_screen_sessions),
)
LaunchedEffect(jump) {
if (jump != null && jump.label in sessionLabels) sessionDisplay = true
}
ChoiceRow(
host, "launcher-orientation", stringResource(R.string.setup_launcher_orientation), null,
com.droiddeck.launcher.core.AppUiPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
s.launcherOrientation, onPick = a.onLauncherOrientation, sideBySide = true,
)
val fullscreenModes = FullscreenMode.entries.map { it to stringResource(it.label) }
ChoiceRow(
host, "launcher-fullscreen", stringResource(R.string.setup_launcher_fullscreen),
stringResource(R.string.setup_fullscreen_on),
fullscreenModes, s.launcherFullscreenMode, onPick = a.onLauncherFullscreenMode, sideBySide = true,
s.launcherOrientation, onPick = a.onLauncherOrientation,
)
s.tpUbwcMode?.let { ubwc ->
ChoiceRow(
@@ -586,74 +561,68 @@ internal fun SetupPanel(
else Note(stringResource(R.string.gpu_ubwc_restart))
}
}
val dualModes = listOf(
com.droiddeck.launcher.input.DualScreen.MODE_AUTO to stringResource(R.string.setup_dual_screen_auto),
com.droiddeck.launcher.input.DualScreen.MODE_ON to stringResource(R.string.setup_dual_screen_on),
com.droiddeck.launcher.input.DualScreen.MODE_OFF to stringResource(R.string.setup_dual_screen_off),
ChoiceRow(
host, "orientation", stringResource(R.string.setup_session_orientation), stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
s.orientation, onPick = { value ->
a.onOrientation(value)
steamOrientation = SessionPrefs.orientation(ctx, "steam")
desktopOrientation = SessionPrefs.orientation(ctx, "desktop")
},
)
ChoiceRow(
host, "orientation-steam", stringResource(R.string.setup_session_orientation) + " (Steam)", stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
steamOrientation, onPick = { value ->
steamOrientation = value
SessionPrefs.setOrientation(ctx, "steam", value)
},
)
ChoiceRow(
host, "orientation-desktop", stringResource(R.string.setup_session_orientation) + " (Desktop)", stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
desktopOrientation, onPick = { value ->
desktopOrientation = value
SessionPrefs.setOrientation(ctx, "desktop", value)
},
)
ToggleRow(
host, "launcher-fullscreen", stringResource(R.string.setup_fullscreen),
if (s.launcherFullscreen) stringResource(R.string.setup_fullscreen_on) else stringResource(R.string.setup_fullscreen_off),
s.launcherFullscreen,
) { a.onLauncherFullscreen(it) }
ToggleRow(
host, "page-swipe", stringResource(R.string.setup_page_swipe),
stringResource(R.string.setup_page_swipe_hint), PageSwipe.on,
) { on ->
PageSwipe.on = on
com.droiddeck.launcher.core.AppUiPrefs.setPageSwipe(ctx, on)
}
ToggleRow(
host, "controller-haptics", stringResource(R.string.setup_controller_haptics),
stringResource(R.string.setup_controller_haptics_hint),
s.controllerHaptics,
) { a.onControllerHaptics(it) }
if (s.dualScreenDevice) {
val dualModes = listOf(
com.droiddeck.launcher.input.DualScreen.MODE_AUTO to stringResource(R.string.setup_dual_screen_auto),
com.droiddeck.launcher.input.DualScreen.MODE_ON to stringResource(R.string.setup_dual_screen_on),
com.droiddeck.launcher.input.DualScreen.MODE_OFF to stringResource(R.string.setup_dual_screen_off),
)
ChoiceRow(
host, "dual-screen", stringResource(R.string.setup_dual_screen_launcher), stringResource(R.string.setup_dual_screen_launcher_hint),
dualModes, s.dualScreenMode, onPick = a.onDualScreenMode,
)
}
ActionRow(
stringResource(R.string.setup_session_display), stringResource(R.string.setup_session_display_hint),
stringResource(if (sessionDisplay) R.string.common_close else R.string.setup_expand_open),
onClick = { sessionDisplay = !sessionDisplay }, sideBySide = true,
)
if (sessionDisplay) {
ChoiceRow(
host, "orientation", stringResource(R.string.setup_session_orientation), stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
s.orientation, onPick = { value ->
a.onOrientation(value)
steamOrientation = SessionPrefs.orientation(ctx, "steam")
desktopOrientation = SessionPrefs.orientation(ctx, "desktop")
},
host, "dual-screen-sessions", stringResource(R.string.setup_dual_screen_sessions), stringResource(R.string.setup_dual_screen_sessions_hint),
dualModes.take(2) + (com.droiddeck.launcher.input.DualScreen.MODE_SWAPPED to stringResource(R.string.setup_dual_screen_swapped)) + dualModes.drop(2), s.dualScreenSessions, onPick = a.onDualScreenSessions,
)
ChoiceRow(
host, "orientation-steam", stringResource(R.string.setup_session_orientation) + " (Steam)", stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
steamOrientation, onPick = { value ->
steamOrientation = value
SessionPrefs.setOrientation(ctx, "steam", value)
},
)
ChoiceRow(
host, "orientation-desktop", stringResource(R.string.setup_session_orientation) + " (Desktop)", stringResource(R.string.setup_session_orientation_hint),
SessionPrefs.orientationOptions.map { (value, label) -> value to stringResource(label) },
desktopOrientation, onPick = { value ->
desktopOrientation = value
SessionPrefs.setOrientation(ctx, "desktop", value)
},
)
ChoiceRow(
host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
stringResource(R.string.setup_fullscreen_on),
fullscreenModes, s.sessionFullscreenMode, onPick = a.onSessionFullscreenMode,
)
if (s.dualScreenDevice) {
ChoiceRow(
host, "dual-screen-sessions", stringResource(R.string.setup_dual_screen_sessions), stringResource(R.string.setup_dual_screen_sessions_hint),
dualModes.take(2) + (com.droiddeck.launcher.input.DualScreen.MODE_SWAPPED to stringResource(R.string.setup_dual_screen_swapped)) + dualModes.drop(2), s.dualScreenSessions, onPick = a.onDualScreenSessions,
)
if (s.dualScreenSessions != com.droiddeck.launcher.input.DualScreen.MODE_OFF) {
ToggleRow(host, "dual-screen-controls", stringResource(R.string.setup_dual_screen_controls),
stringResource(R.string.setup_dual_screen_controls_hint), s.dualScreenControls) { a.onDualScreenControls(it) }
}
if (s.dualScreenSessions != com.droiddeck.launcher.input.DualScreen.MODE_OFF) {
ToggleRow(host, "dual-screen-controls", stringResource(R.string.setup_dual_screen_controls),
stringResource(R.string.setup_dual_screen_controls_hint), s.dualScreenControls) { a.onDualScreenControls(it) }
}
}
}
SettingsGroup(stringResource(R.string.setup_group_input)) {
ToggleRow(
host, "controller-haptics", stringResource(R.string.setup_controller_haptics),
stringResource(R.string.setup_controller_haptics_hint),
s.controllerHaptics, sideBySide = true,
) { a.onControllerHaptics(it) }
if (s.dualScreenDevice) {
ToggleRow(host, "android-text-field-keyboard", stringResource(R.string.setup_android_text_field_keyboard),
null, s.androidTextFieldKeyboard, sideBySide = true) { a.onAndroidTextFieldKeyboard(it) }
null, s.androidTextFieldKeyboard) { a.onAndroidTextFieldKeyboard(it) }
}
}
}
@@ -703,108 +672,95 @@ internal fun SetupPanel(
}
BoxWithConstraints(Modifier.fillMaxWidth()) {
if (maxWidth >= 840.dp && !LocalNarrowPane.current) Row(horizontalArrangement = Arrangement.spacedBy(16.dp), verticalAlignment = Alignment.Top) {
Column(Modifier.weight(1f)) { device() }
Column(Modifier.weight(1f)) { look(); art(); download() }
} else Column { device(); look(); art(); download() }
Column(Modifier.weight(1f)) { look() }
Column(Modifier.weight(1f)) { device(); art(); download() }
} else Column { look(); device(); art(); download() }
}
}
DEVELOPER_TAB -> {
var manageLogs by rememberSaveable { mutableStateOf(false) }
val devContext = LocalContext.current
SettingsGroup(stringResource(R.string.dev_tools_title)) {
ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_show), stringResource(R.string.dev_tools_hint), DeveloperTools.on, sideBySide = true) {
DeveloperTools.set(ctx, it)
ToggleRow(host, "developer-tools", stringResource(R.string.dev_tools_title), stringResource(R.string.dev_tools_hint), DeveloperTools.on) {
DeveloperTools.set(devContext, it)
}
if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), stringResource(R.string.setup_agent_commands_hint), s.agentCommands, sideBySide = true) { a.onAgentCommands() }
if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
ToggleRow(host, "agent-pet", stringResource(R.string.rail_agent), stringResource(R.string.dev_harness_overlay_hint), AgentPet.enabled, sideBySide = true) {
AgentPet.set(ctx, it)
}
if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(ctx) }, sideBySide = true,
)
}
}
if (DeveloperTools.on) SettingsGroup(stringResource(R.string.dev_group_previews)) {
ActionRow(
if (DeveloperTools.on) ActionRow(
stringResource(R.string.dev_ui_zoo), stringResource(R.string.dev_ui_zoo_hint), stringResource(R.string.dev_ui_zoo_open),
onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"), sideBySide = true,
onClick = { DevPreview.zoo = true }, modifier = Modifier.testTag("dev-ui-zoo"),
)
ToggleRow(
if (DeveloperTools.on) ToggleRow(
host, "preview-shortcuts", stringResource(R.string.dev_preview_shortcuts), stringResource(R.string.dev_preview_shortcuts_hint),
DevPreview.shortcuts, sideBySide = true,
) { DevPreview.setShortcuts(ctx, it) }
DevPreview.shortcuts,
) { DevPreview.setShortcuts(devContext, it) }
}
SettingsGroup(stringResource(R.string.dev_group_diagnostics)) {
ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled, sideBySide = true) { a.onLogs() }
SettingsGroup(stringResource(R.string.dev_group_logs)) {
ToggleRow(host, "logs", stringResource(R.string.setup_logs), stringResource(R.string.setup_logs_hint), s.logsEnabled) { a.onLogs() }
if (DeveloperTools.on) ToggleRow(
host, "enhanced-diagnostics", stringResource(R.string.setup_enhanced_diagnostics),
stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed, sideBySide = true,
stringResource(R.string.setup_enhanced_diagnostics_hint), s.enhancedDiagnosticsArmed,
) { a.onEnhancedDiagnostics() }
ToggleRow(
host, "game-debug-logs", stringResource(R.string.setup_game_debug_logs),
stringResource(if (s.gameDebugLogsNeedsRestart) R.string.setup_game_debug_logs_restart else R.string.setup_game_debug_logs_hint),
s.gameDebugLogsEnabled,
enabled = s.logsEnabled, sideBySide = true,
enabled = s.logsEnabled,
) { a.onGameDebugLogs() }
if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics, sideBySide = true) { a.onVacDiagnostics() }
if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs, sideBySide = true) { a.onGraphicsLogs() }
if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing, sideBySide = true) { a.onSteamGpuDrawing() }
}
SettingsGroup(stringResource(R.string.dev_group_log_files)) {
ActionRow(stringResource(R.string.setup_latest_logs), stringResource(R.string.drawer_logs_hint), stringResource(R.string.drawer_share_logs), a.onShareLogs,
progress = com.droiddeck.launcher.session.SessionLogShare.progress, sideBySide = true)
ActionRow(
stringResource(R.string.setup_saved_logs), stringResource(R.string.dev_log_manage_hint),
stringResource(if (manageLogs) R.string.common_close else R.string.setup_manage),
onClick = { manageLogs = !manageLogs }, sideBySide = true,
)
if (manageLogs) {
Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
if (sessionLogs.isEmpty()) {
Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
if (DeveloperTools.on) ToggleRow(host, "vacdiag", stringResource(R.string.setup_vac_diag), stringResource(R.string.setup_vac_diag_hint), s.vacDiagnostics) { a.onVacDiagnostics() }
if (DeveloperTools.on) ToggleRow(host, "agent-commands", stringResource(R.string.setup_agent_commands), null, s.agentCommands) { a.onAgentCommands() }
if (DeveloperTools.on && com.droiddeck.launcher.agent.AgentHost.available) {
val agentContext = androidx.compose.ui.platform.LocalContext.current
ToggleRow(host, "agent-pet", stringResource(R.string.setup_agent_pet), stringResource(R.string.setup_agent_pet_hint), AgentPet.enabled) {
AgentPet.set(agentContext, it)
}
sessionLogs.forEach { folder ->
val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
var details by remember(folder) { mutableStateOf<com.droiddeck.launcher.session.SessionLogShare.Details?>(null) }
LaunchedEffect(folder, logsRefresh) {
details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
com.droiddeck.launcher.session.SessionLogShare.details(folder)
}
}
Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
maxLines = 1, overflow = TextOverflow.Ellipsis)
details?.let { detail ->
Text(
stringResource(R.string.setup_log_size_date,
android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
"${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
}
}
androidx.compose.material3.HorizontalDivider()
}
ActionRow(stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS),
null, stringResource(R.string.setup_clear_logs),
onClick = { a.onClearLogs { logsRefresh++ } }, sideBySide = true)
if (AgentPet.enabled && !AgentPet.allowed && AgentPet.usesOverlayWindows(com.droiddeck.launcher.session.QuestExperimental.isSupported())) ActionRow(
stringResource(R.string.setup_agent_pet_float), stringResource(R.string.setup_agent_pet_float_hint),
stringResource(R.string.setup_agent_pet_allow), onClick = { AgentPet.requestFloating(agentContext) },
)
}
}
SettingsGroup(stringResource(R.string.dev_group_reset)) {
if (DeveloperTools.on) ToggleRow(host, "graphics-logs", stringResource(R.string.setup_graphics_logs), stringResource(R.string.setup_graphics_logs_hint), s.graphicsLogs) { a.onGraphicsLogs() }
if (DeveloperTools.on && !s.adreno && com.droiddeck.launcher.session.SessionPrefs.steamGpuCompositingAllowed()) ToggleRow(host, "steam-gpu-drawing", stringResource(R.string.setup_steam_gpu_drawing), stringResource(R.string.setup_steam_gpu_drawing_hint), s.steamGpuDrawing) { a.onSteamGpuDrawing() }
ActionRow(stringResource(R.string.setup_latest_logs), stringResource(R.string.drawer_logs_hint), stringResource(R.string.drawer_share_logs), a.onShareLogs,
progress = com.droiddeck.launcher.session.SessionLogShare.progress)
androidx.compose.material3.HorizontalDivider()
Text(stringResource(R.string.setup_log_sessions), fontSize = 13.sp, fontWeight = FontWeight.SemiBold,
color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
Text(stringResource(R.string.setup_log_export_hint), fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(start = 14.dp, end = 14.dp, bottom = 8.dp))
val sessionLogs = remember(ctx, logsRefresh) { com.droiddeck.launcher.session.SessionLogShare.sessions(ctx).asReversed() }
if (sessionLogs.isEmpty()) {
Text(stringResource(R.string.setup_log_empty), fontSize = 13.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(horizontal = 14.dp, vertical = 10.dp))
}
sessionLogs.forEach { folder ->
val active = folder == com.droiddeck.launcher.session.SessionPaths.current()
var details by remember(folder) { mutableStateOf<com.droiddeck.launcher.session.SessionLogShare.Details?>(null) }
LaunchedEffect(folder, logsRefresh) {
details = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {
com.droiddeck.launcher.session.SessionLogShare.details(folder)
}
}
Column(Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 8.dp)) {
Text(folder.name, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, color = MaterialTheme.colorScheme.onBackground,
maxLines = 1, overflow = TextOverflow.Ellipsis)
details?.let { detail ->
Text(
stringResource(R.string.setup_log_size_date,
android.text.format.Formatter.formatShortFileSize(ctx, detail.sizeBytes),
"${android.text.format.DateFormat.getDateFormat(ctx).format(java.util.Date(detail.modifiedAt))} ${android.text.format.DateFormat.getTimeFormat(ctx).format(java.util.Date(detail.modifiedAt))}"),
fontSize = 12.sp, color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
if (active) Text(stringResource(R.string.setup_log_current), fontSize = 12.sp, color = MaterialTheme.colorScheme.primary)
Row(Modifier.fillMaxWidth().padding(top = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
SecondaryButton(stringResource(R.string.setup_log_share), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onShareSessionLog(folder) }
SecondaryButton(stringResource(R.string.setup_log_save), enabled = com.droiddeck.launcher.session.SessionLogShare.progress == null, compact = true, modifier = Modifier.weight(1f)) { a.onSaveSessionLog(folder) }
SecondaryButton(stringResource(R.string.setup_log_delete), compact = true, enabled = !active, modifier = Modifier.weight(1f)) { deleteSessionLogs = folder }
}
}
androidx.compose.material3.HorizontalDivider()
}
ActionRow(stringResource(R.string.setup_saved_logs), stringResource(R.string.setup_saved_logs_hint, com.droiddeck.launcher.session.SessionPaths.KEEP_SESSIONS), stringResource(R.string.setup_clear_logs), a.onClearLogs)
ActionRow(stringResource(R.string.setup_reset_settings), stringResource(R.string.setup_reset_settings_hint),
stringResource(R.string.setup_reset_settings_button), a.onResetSettings, sideBySide = true)
stringResource(R.string.setup_reset_settings_button), a.onResetSettings)
}
}
GLASSES_TAB -> GlassesSetupPanel()
@@ -830,11 +786,11 @@ internal fun SetupPanel(
@Composable
private fun MemoryGroup(s: FrontEndState, a: FrontEndActions, host: MenuHost, onPairWirelessDebugging: () -> Unit) {
SettingsGroup(stringResource(R.string.setup_group_memory)) {
SettingsGroup(stringResource(R.string.setup_group_background_apps)) {
ToggleRow(
host, "clear-cached-apps", stringResource(R.string.setup_clear_cached),
stringResource(if (s.adbPaired) R.string.setup_clear_cached_hint else R.string.setup_clear_cached_unpaired),
s.clearCachedApps, enabled = s.adbPaired || s.clearCachedApps, sideBySide = true,
s.clearCachedApps, enabled = s.adbPaired || s.clearCachedApps,
) { a.onClearCachedApps(it) }
ChoiceRow(
host, "background-app-limit", stringResource(R.string.setup_bg_limit),
@@ -846,7 +802,7 @@ private fun MemoryGroup(s: FrontEndState, a: FrontEndActions, host: MenuHost, on
0 to stringResource(R.string.setup_bg_limit_0),
),
s.backgroundAppLimit, enabled = s.adbPaired || s.backgroundAppLimit != com.droiddeck.launcher.core.BackgroundAppLimit.OFF,
onPick = a.onBackgroundAppLimit, sideBySide = true,
onPick = a.onBackgroundAppLimit,
)
ChoiceRow(
host, "memory-hud", stringResource(R.string.setup_memory_hud), stringResource(R.string.setup_memory_hud_hint),
@@ -855,7 +811,7 @@ private fun MemoryGroup(s: FrontEndState, a: FrontEndActions, host: MenuHost, on
com.droiddeck.launcher.session.SessionPrefs.MEMORY_HUD_SIMPLE to stringResource(R.string.setup_memory_hud_simple),
com.droiddeck.launcher.session.SessionPrefs.MEMORY_HUD_ADVANCED to stringResource(R.string.setup_memory_hud_advanced),
),
s.memoryHud, onPick = a.onMemoryHud, sideBySide = true,
s.memoryHud, onPick = a.onMemoryHud,
)
if (!s.adbPaired) ActionRow(
stringResource(R.string.setup_adb_pair), stringResource(R.string.setup_adb_pair_hint),
@@ -15,8 +15,6 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
@@ -77,158 +75,133 @@ fun PerformancePage(
onGameCore: (Int, Boolean) -> Unit,
onDismiss: () -> Unit,
embedded: Boolean = false,
memory: @Composable () -> Unit = {},
) {
val host = rememberMenuHost()
val colors = MaterialTheme.colorScheme
val coreItems = cores.map { it.core to it.label }
var showCompatibility by rememberSaveable { mutableStateOf(false) }
val jump = SettingsJump.target
val compatibilityLabels = listOf(
R.string.perf_glthread, R.string.perf_zink, R.string.perf_noglerror, R.string.perf_gsrealtime,
R.string.perf_sysmem, R.string.perf_xalia, R.string.perf_esync, R.string.perf_fsync,
R.string.perf_fastsync, R.string.perf_seccomp, R.string.perf_fastpath, R.string.perf_native_userland,
R.string.perf_cursor_composite, R.string.perf_hostname, R.string.perf_desktop_as_user,
).map { stringResource(it) }
LaunchedEffect(jump) {
if (jump != null && jump.label in compatibilityLabels) showCompatibility = true
}
val body: @Composable () -> Unit = {
SettingsGroup(stringResource(R.string.setup_performance_cpu)) {
SettingsGroup(stringResource(R.string.perf_client_cores_group)) {
ToggleRow(
host, "override", stringResource(R.string.perf_override),
stringResource(R.string.perf_override_hint),
clientOverride, sideBySide = true, onChange = onClientOverride,
clientOverride, onChange = onClientOverride,
)
MultiRow(
host, "clientCores", stringResource(R.string.perf_client_cores), if (clientOverride) stringResource(R.string.perf_client_cores_on) else stringResource(R.string.perf_client_cores_off),
coreItems, clientCores, enabled = clientOverride, sideBySide = true, onToggle = onClientCore,
coreItems, clientCores, enabled = clientOverride, onToggle = onClientCore,
)
}
SettingsGroup(stringResource(R.string.perf_game_cores_group)) {
MultiRow(
host, "gameCores", stringResource(R.string.perf_game_cores),
stringResource(R.string.perf_game_cores_hint),
coreItems, gameCores, sideBySide = true, onToggle = onGameCore,
coreItems, gameCores, onToggle = onGameCore,
)
}
SettingsGroup(stringResource(R.string.setup_performance_graphics), key = "performance-gpu") {
ToggleRow(
host, "paceCores", stringResource(R.string.perf_pace_cores),
stringResource(R.string.perf_pace_cores_hint),
paceCores, sideBySide = true, onChange = onPaceCores,
)
if (GpuClockPin.supported) ToggleRow(
host, "gpuclock", stringResource(R.string.perf_gpuclock), null,
gpuClockPin, sideBySide = true, onChange = onGpuClockPin,
paceCores, onChange = onPaceCores,
)
}
memory()
if (embedded) SettingsGroup(stringResource(R.string.setup_performance_advanced)) {
ActionRow(
stringResource(R.string.setup_performance_compatibility), stringResource(R.string.setup_performance_compatibility_hint),
stringResource(if (showCompatibility) R.string.common_close else R.string.setup_expand_open),
onClick = { showCompatibility = !showCompatibility }, sideBySide = true,
SettingsGroup(stringResource(R.string.perf_client_ui)) {
ToggleRow(
host, "glthread", stringResource(R.string.perf_glthread),
stringResource(R.string.perf_glthread_hint),
glThread, onChange = onGlThread,
)
ToggleRow(
host, "zink", stringResource(R.string.perf_zink),
stringResource(R.string.perf_zink_hint),
zinkLazy, onChange = onZinkLazy,
)
ToggleRow(
host, "noglerror", stringResource(R.string.perf_noglerror),
stringResource(R.string.perf_noglerror_hint),
noGlError, onChange = onNoGlError,
)
ToggleRow(
host, "gsrealtime", stringResource(R.string.perf_gsrealtime),
stringResource(R.string.perf_gsrealtime_hint),
gamescopeRealtime, onChange = onGamescopeRealtime,
)
}
if (!embedded || showCompatibility) {
SettingsGroup(stringResource(R.string.perf_client_ui)) {
ToggleRow(
host, "glthread", stringResource(R.string.perf_glthread),
stringResource(R.string.perf_glthread_hint),
glThread, onChange = onGlThread,
)
ToggleRow(
host, "zink", stringResource(R.string.perf_zink),
stringResource(R.string.perf_zink_hint),
zinkLazy, onChange = onZinkLazy,
)
ToggleRow(
host, "noglerror", stringResource(R.string.perf_noglerror),
stringResource(R.string.perf_noglerror_hint),
noGlError, onChange = onNoGlError,
)
ToggleRow(
host, "gsrealtime", stringResource(R.string.perf_gsrealtime),
stringResource(R.string.perf_gsrealtime_hint),
gamescopeRealtime, onChange = onGamescopeRealtime,
)
}
SettingsGroup(stringResource(R.string.perf_fixes)) {
ToggleRow(
host, "sysmem", stringResource(R.string.perf_sysmem),
stringResource(R.string.perf_sysmem_hint),
tuSysmem, onChange = onTuSysmem,
)
ToggleRow(
host, "xalia", stringResource(R.string.perf_xalia),
stringResource(R.string.perf_xalia_hint),
noXalia, onChange = onNoXalia,
)
ToggleRow(
host, "syncfallback", stringResource(R.string.perf_esync),
stringResource(R.string.perf_esync_hint),
syncFallback, onChange = onSyncFallback,
)
ToggleRow(
host, "fsyncfirst", stringResource(R.string.perf_fsync),
stringResource(R.string.perf_fsync_hint),
fsyncFirst, onChange = onFsyncFirst,
)
ToggleRow(
host, "fastsync", stringResource(R.string.perf_fastsync),
stringResource(R.string.perf_fastsync_hint),
fastSync, onChange = onFastSync,
)
ToggleRow(
host, "seccomp", stringResource(R.string.perf_seccomp),
stringResource(R.string.perf_seccomp_hint),
prootNoSeccomp, onChange = onProotNoSeccomp,
)
ToggleRow(
host, "fastpath", stringResource(R.string.perf_fastpath),
when {
nativeUserland -> stringResource(R.string.perf_fastpath_needs_proot)
prootNoSeccomp -> stringResource(R.string.perf_fastpath_needs_seccomp)
else -> stringResource(R.string.perf_fastpath_hint)
if (GpuClockPin.supported) GpuClockGroup(host, gpuClockPin, onChange = onGpuClockPin)
SettingsGroup(stringResource(R.string.perf_fixes)) {
ToggleRow(
host, "sysmem", stringResource(R.string.perf_sysmem),
stringResource(R.string.perf_sysmem_hint),
tuSysmem, onChange = onTuSysmem,
)
ToggleRow(
host, "xalia", stringResource(R.string.perf_xalia),
stringResource(R.string.perf_xalia_hint),
noXalia, onChange = onNoXalia,
)
ToggleRow(
host, "syncfallback", stringResource(R.string.perf_esync),
stringResource(R.string.perf_esync_hint),
syncFallback, onChange = onSyncFallback,
)
ToggleRow(
host, "fsyncfirst", stringResource(R.string.perf_fsync),
stringResource(R.string.perf_fsync_hint),
fsyncFirst, onChange = onFsyncFirst,
)
ToggleRow(
host, "fastsync", stringResource(R.string.perf_fastsync),
stringResource(R.string.perf_fastsync_hint),
fastSync, onChange = onFastSync,
)
ToggleRow(
host, "seccomp", stringResource(R.string.perf_seccomp),
stringResource(R.string.perf_seccomp_hint),
prootNoSeccomp, onChange = onProotNoSeccomp,
)
ToggleRow(
host, "fastpath", stringResource(R.string.perf_fastpath),
when {
nativeUserland -> stringResource(R.string.perf_fastpath_needs_proot)
prootNoSeccomp -> stringResource(R.string.perf_fastpath_needs_seccomp)
else -> stringResource(R.string.perf_fastpath_hint)
},
prootFastPath && !prootNoSeccomp && !nativeUserland, enabled = !prootNoSeccomp && !nativeUserland,
onChange = onProotFastPath,
)
ToggleRow(
host, "nativeuserland", stringResource(R.string.perf_native_userland),
stringResource(R.string.perf_native_userland_hint),
nativeUserland, onChange = onNativeUserland,
)
ToggleRow(
host, "cursorcomposite", stringResource(R.string.perf_cursor_composite),
stringResource(R.string.perf_cursor_composite_hint),
cursorComposite, onChange = onCursorComposite,
)
}
SettingsGroup(stringResource(R.string.perf_identity)) {
var draft by remember(guestHostname) { mutableStateOf(guestHostname) }
val valid = SessionPrefs.validGuestHostname(draft) != null
SettingsRow(
stringResource(R.string.perf_hostname),
if (valid || draft.isBlank()) stringResource(R.string.perf_hostname_hint, SessionPrefs.DEFAULT_GUEST_HOSTNAME)
else stringResource(R.string.perf_hostname_invalid),
) {
OutlinedTextField(
draft, { v ->
draft = v.take(63)
if (draft.isBlank() || SessionPrefs.validGuestHostname(draft) != null) onGuestHostname(draft)
},
prootFastPath && !prootNoSeccomp && !nativeUserland, enabled = !prootNoSeccomp && !nativeUserland,
onChange = onProotFastPath,
)
ToggleRow(
host, "nativeuserland", stringResource(R.string.perf_native_userland),
stringResource(R.string.perf_native_userland_hint),
nativeUserland, onChange = onNativeUserland,
)
ToggleRow(
host, "cursorcomposite", stringResource(R.string.perf_cursor_composite),
stringResource(R.string.perf_cursor_composite_hint),
cursorComposite, onChange = onCursorComposite,
)
}
SettingsGroup(stringResource(R.string.perf_identity)) {
var draft by remember(guestHostname) { mutableStateOf(guestHostname) }
val valid = SessionPrefs.validGuestHostname(draft) != null
SettingsRow(
stringResource(R.string.perf_hostname),
if (valid || draft.isBlank()) stringResource(R.string.perf_hostname_hint, SessionPrefs.DEFAULT_GUEST_HOSTNAME)
else stringResource(R.string.perf_hostname_invalid),
) {
OutlinedTextField(
draft, { v ->
draft = v.take(63)
if (draft.isBlank() || SessionPrefs.validGuestHostname(draft) != null) onGuestHostname(draft)
},
singleLine = true, isError = !valid && draft.isNotBlank(),
placeholder = { Text(SessionPrefs.DEFAULT_GUEST_HOSTNAME) },
modifier = Modifier.width(220.dp).focusGlide(),
)
}
ToggleRow(
host, "desktopasuser", stringResource(R.string.perf_desktop_as_user),
stringResource(if (nativeUserland) R.string.perf_desktop_as_user_hint else R.string.perf_desktop_as_user_needs_native),
desktopAsUser && nativeUserland, enabled = nativeUserland,
onChange = onDesktopAsUser,
singleLine = true, isError = !valid && draft.isNotBlank(),
placeholder = { Text(SessionPrefs.DEFAULT_GUEST_HOSTNAME) },
modifier = Modifier.width(220.dp).focusGlide(),
)
}
ToggleRow(
host, "desktopasuser", stringResource(R.string.perf_desktop_as_user),
stringResource(if (nativeUserland) R.string.perf_desktop_as_user_hint else R.string.perf_desktop_as_user_needs_native),
desktopAsUser && nativeUserland, enabled = nativeUserland,
onChange = onDesktopAsUser,
)
}
if (phantomWarning != null) {
Spacer(Modifier.height(16.dp))
@@ -241,7 +214,10 @@ fun PerformancePage(
}
}
}
if (embedded) body() else SettingsPage(
if (embedded) Column {
Text(stringResource(R.string.perf_lede), fontSize = 13.sp, color = colors.onSurfaceVariant, modifier = Modifier.padding(horizontal = 4.dp, vertical = 6.dp))
body()
} else SettingsPage(
host, title = stringResource(R.string.perf_title),
lede = stringResource(R.string.perf_lede),
onBack = onDismiss,
@@ -177,7 +177,6 @@ import com.droiddeck.launcher.gpu.ScreenEffectLooks
import com.droiddeck.launcher.gpu.Cardboard
import com.droiddeck.launcher.gpu.SteamVr
import com.droiddeck.launcher.gpu.ScreenEffects
import com.droiddeck.launcher.session.FullscreenMode
import com.droiddeck.launcher.session.SessionPrefs
import com.droiddeck.launcher.session.ComponentsManager
import com.droiddeck.launcher.input.PC_KEY_GROUP_IDS
@@ -407,8 +406,6 @@ class DrawerActions(
val paused: Boolean = false,
val orientation: Int = android.content.pm.ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE,
val onOrientation: (Int) -> Unit = {},
val fullscreenMode: FullscreenMode = FullscreenMode.ALWAYS,
val onFullscreenMode: (FullscreenMode) -> Unit = {},
val onResume: () -> Unit = {},
val onPipAutoEnter: (Boolean) -> Unit = {},
val unfoldedControls: Boolean? = null,
@@ -1012,10 +1009,6 @@ private fun DrawerDisplayPage(host: MenuHost, a: DrawerActions, track: (String)
if (a.gameZoomAvailable) GameZoomRow(a.gameZoom, track, a.onGameZoom)
ChoiceRow(host, "orientation", stringResource(R.string.setup_session_orientation), null,
orientations, a.orientation, chipModifier = track("orientation"), onPick = a.onOrientation)
ChoiceRow(host, "session-fullscreen", stringResource(R.string.setup_session_fullscreen),
stringResource(R.string.setup_fullscreen_on),
FullscreenMode.entries.map { it to stringResource(it.label) }, a.fullscreenMode,
chipModifier = track("session-fullscreen"), onPick = a.onFullscreenMode)
if (a.steam) PicturePositionRow(host, a.picturePosition, track("picture-position"), onPick = a.onPicturePosition)
}
val filters = SessionPrefs.upscalerChoices(LocalContext.current)
@@ -116,8 +116,7 @@ internal object SettingsIndex {
s(SettingsSection.LAUNCHER, R.string.setup_home, "home screen", "launcher"),
s(SettingsSection.LAUNCHER, R.string.setup_launcher_orientation, "rotate", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_session_orientation, "rotate", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_launcher_fullscreen, "status bar", "navigation bar", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_session_fullscreen, "status bar", "navigation bar", "portrait"),
s(SettingsSection.LAUNCHER, R.string.setup_fullscreen),
s(SettingsSection.LAUNCHER, R.string.setup_page_swipe, "gesture"),
s(SettingsSection.LAUNCHER, R.string.setup_controller_haptics, "vibration", "rumble"),
s(SettingsSection.LAUNCHER, R.string.setup_dual_screen_launcher, "thor", "second screen", "bottom screen"),
@@ -131,8 +130,7 @@ internal object SettingsIndex {
s(SettingsSection.DEVELOPER, R.string.setup_game_debug_logs, "logs", "wine", "proton"),
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_enhanced_diagnostics, section = SettingsSection.DEVELOPER, words = listOf("logs"), developer = true),
s(SettingsSection.DEVELOPER, R.string.setup_reset_settings, "default"),
s(SettingsSection.DEVELOPER, R.string.dev_tools_show, "agent", "ai", "claude", "codex"),
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_agent_commands, section = SettingsSection.DEVELOPER, words = listOf("debugging tools", "cli"), developer = true),
s(SettingsSection.DEVELOPER, R.string.dev_tools_title, "agent", "ai", "claude", "codex"),
SettingsEntry(SettingsPlace.SETTINGS, R.string.setup_graphics_logs, section = SettingsSection.DEVELOPER, words = listOf("logs", "gpu"), developer = true),
d(R.string.drawer_page_display, R.string.drawer_frame_limit, "fps", "cap", "limit", "non-steam", "desktop"),
@@ -526,7 +526,7 @@ fun SettingsGroup(title: String, compact: Boolean = false, detail: String? = nul
}
@Composable
fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, sideBySide: Boolean = false, control: @Composable () -> Unit) {
fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hintLines: Int? = null, stacked: Boolean = false, tightControlSpacing: Boolean = false, control: @Composable () -> Unit) {
val compact = LocalCompactSettings.current
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
@@ -536,7 +536,7 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
lineHeight = if (compact) 14.sp else androidx.compose.ui.unit.TextUnit.Unspecified,
minLines = hintLines ?: 1, maxLines = hintLines ?: Int.MAX_VALUE, overflow = TextOverflow.Ellipsis)
}
if (compact && !stacked && !sideBySide) Column(
if (compact && !stacked) Column(
modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(horizontal = 10.dp, vertical = 6.dp),
) {
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
@@ -545,7 +545,7 @@ fun SettingsRow(label: String, hint: String?, highlighted: Boolean = false, hint
control()
}
if (hint != null || hintLines != null) hintText(11.sp)
} else if (stacked || (LocalNarrowPane.current && !sideBySide)) Column(
} else if (stacked || LocalNarrowPane.current) Column(
modifier = Modifier.searchTarget(label).fillMaxWidth().background(bg).padding(
horizontal = if (compact) 10.dp else 14.dp,
vertical = if (tightControlSpacing) 2.dp else if (compact) 6.dp else 12.dp),
@@ -575,10 +575,9 @@ fun <T> ChoiceRow(
chipModifier: Modifier = Modifier,
hintLines: Int? = null,
stacked: Boolean = false,
sideBySide: Boolean = false,
onPick: (T) -> Unit,
) {
SettingsRow(label, hint, highlighted = host.open == key, hintLines = hintLines, stacked = stacked, sideBySide = sideBySide) {
SettingsRow(label, hint, highlighted = host.open == key, hintLines = hintLines, stacked = stacked) {
ChoiceChip(host, key, label, options, selected, enabled, note, chipModifier, onPick)
}
}
@@ -614,8 +613,8 @@ fun UncertainMark(description: String) {
}
@Composable
fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, sideBySide: Boolean = false, onChange: (Boolean) -> Unit) =
SettingsRow(label, hint, sideBySide = sideBySide) {
fun ToggleRow(host: MenuHost, key: String, label: String, hint: String?, checked: Boolean, enabled: Boolean = true, chipModifier: Modifier = Modifier, onChange: (Boolean) -> Unit) =
SettingsRow(label, hint) {
ToggleSwitch(checked, enabled, label, chipModifier.testTag("setting-$key")) { host.open = null; onChange(it) }
}
@@ -753,7 +752,6 @@ fun ValueSlider(
fun MultiRow(
host: MenuHost, key: String, label: String, hint: String?,
items: List<Pair<Int, String>>, selected: Set<Int>, enabled: Boolean = true, note: String? = null,
sideBySide: Boolean = false,
onToggle: (Int, Boolean) -> Unit,
) {
val open = host.open == key
@@ -762,7 +760,7 @@ fun MultiRow(
selected.isEmpty() -> stringResource(R.string.widgets_none)
else -> stringResource(R.string.widgets_n_of_m, selected.size, items.size)
}
SettingsRow(label, hint, highlighted = open, sideBySide = sideBySide) {
SettingsRow(label, hint, highlighted = open) {
Box {
ValueChip(summary, open, enabled) { host.open = if (open) null else key }
AnchoredMenu(open, onDismiss = { if (host.open == key) host.open = null }, title = label, note = note) { firstItemFocus ->
@@ -776,10 +774,8 @@ fun MultiRow(
}
@Composable
fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier, sideBySide: Boolean = false) {
SettingsRow(label, hint, sideBySide = sideBySide) {
SecondaryButton(button, compact = sideBySide, modifier = modifier, progress = progress, onClick = onClick)
}
fun ActionRow(label: String, hint: String?, button: String, onClick: () -> Unit, progress: Float? = null, modifier: Modifier = Modifier) {
SettingsRow(label, hint) { SecondaryButton(button, modifier = modifier, progress = progress, onClick = onClick) }
}
@Composable
@@ -37,7 +37,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
@@ -75,24 +74,13 @@ internal fun SteamIntegrationGroup(
onFeature: (Feature) -> Unit,
onAppInfo: () -> Unit,
onLocation: () -> Unit = {},
collapsible: Boolean = false,
) {
var expanded by rememberSaveable { mutableStateOf(focus != null) }
LaunchedEffect(focus) { if (focus != null) expanded = true }
val count = stringResource(R.string.integration_count, state.enabledCount(), Feature.entries.size)
SettingsGroup(
stringResource(R.string.integration_title),
detail = count.takeUnless { collapsible },
detail = stringResource(R.string.integration_count, state.enabledCount(), Feature.entries.size),
) {
if (collapsible) ActionRow(
count, stringResource(R.string.integration_manage_hint),
stringResource(if (expanded) R.string.common_close else R.string.setup_manage),
onClick = { expanded = !expanded }, sideBySide = true,
)
if (!collapsible || expanded) {
Feature.entries.forEachIndexed { i, feature ->
IntegrationRow(state, feature, focus == feature, i < Feature.entries.lastIndex, onFeature, onAppInfo, onLocation)
}
Feature.entries.forEachIndexed { i, feature ->
IntegrationRow(state, feature, focus == feature, i < Feature.entries.lastIndex, onFeature, onAppInfo, onLocation)
}
}
}
@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#AAB6C8" />
<item android:color="#F4F7FC" />
</selector>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false">
<shape><corners android:radius="7dp" /><solid android:color="#303845" /></shape>
</item>
<item android:state_pressed="true">
<shape><corners android:radius="7dp" /><solid android:color="#556783" /></shape>
</item>
<item android:state_focused="true">
<shape><corners android:radius="7dp" /><solid android:color="#414E62" /><stroke android:width="2dp" android:color="#A7CCFF" /></shape>
</item>
<item>
<shape><corners android:radius="7dp" /><solid android:color="#414E62" /></shape>
</item>
</selector>
@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#202630" />
</shape>
@@ -1,38 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:orientation="horizontal" android:gravity="center_vertical" android:layoutDirection="ltr"
android:background="@drawable/wireless_pairing_panel" android:paddingHorizontal="3dp" android:paddingVertical="1dp">
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_1" android:text="1" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_2" android:text="2" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_3" android:text="3" />
</LinearLayout>
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_7" android:text="7" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_8" android:text="8" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_9" android:text="9" />
</LinearLayout>
</LinearLayout>
<TextView android:id="@+id/pair_key_code"
android:layout_width="76dp" android:layout_height="38dp"
android:gravity="center" android:maxLines="1" android:scrollHorizontally="false"
android:fontFamily="monospace" android:textStyle="bold"
android:includeFontPadding="false" android:textColor="#F4F7FC"
android:autoSizeTextType="uniform" android:autoSizeMinTextSize="10sp"
android:autoSizeMaxTextSize="17sp" android:autoSizeStepGranularity="1sp" />
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_4" android:text="4" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_5" android:text="5" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_6" android:text="6" />
</LinearLayout>
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_0" android:text="0" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_delete" android:text="⌫" android:contentDescription="@string/adbpair_keypad_delete" />
<Button style="@style/DroidDeckPairKey" android:id="@+id/pair_key_submit" android:text="✓" android:contentDescription="@string/agent_action_pair" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
+2
View File
@@ -891,6 +891,7 @@
<string name="setup_game_debug_logs_hint">تضمين بيانات تشخيص Proton وWine والرسومات عند تشغيل اللعبة التالية. قد يقلّل الأداء ويستهلك مساحة تخزين أكبر.</string>
<string name="setup_game_debug_logs_restart">أعِد تشغيل هذه الجلسة لحفظ سجلات تصحيح الألعاب</string>
<string name="setup_logging_update_failed">تعذّر تحديث التسجيل. تحقّق من المفتاح وحاول مرة أخرى.</string>
<string name="setup_agent_commands">أدوات تصحيح الأخطاء</string>
<string name="setup_graphics_logs">سجلات رسوميات مفصلة</string>
<string name="setup_steam_gpu_drawing">واجهة Steam: الرسم عبر GPU</string>
<string name="setup_steam_gpu_drawing_hint">مع زوج مشغّلات Xclipse، ترسم Steam صفحاتها برمجيًا (أظهر الرسم عبر GPU مربعات مشوهة). شغّله للحصول على واجهة Steam أسرع إذا بدت الصورة سليمة على هذا الهاتف.</string>
@@ -2418,6 +2419,7 @@
<string name="adbpair_waiting_text">فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران».</string>
<string name="adbpair_waiting_long">فعِّل تصحيح الأخطاء اللاسلكي، ثم اضغط على «إقران الجهاز برمز الإقران». ابقَ في الإعدادات: يُكتب الرمز في هذا الإشعار.</string>
<string name="adbpair_code_label">رمز الإقران المكوَّن من 6 أرقام</string>
<string name="adbpair_code_hint">اضغط على «إدخال الرمز» وأدخِل الأرقام الستة الظاهرة في الإعدادات.</string>
<string name="adbpair_title_code">أدخِل رمز إقران Wi-Fi</string>
<string name="adbpair_title_retry">أعِد تجربة الرمز</string>
<string name="adbpair_enter_code">إدخال الرمز</string>
@@ -909,6 +909,7 @@
<string name="setup_game_debug_logs_hint">Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.</string>
<string name="setup_game_debug_logs_restart">Reinicia esta sesión para guardar los registros de depuración de juegos</string>
<string name="setup_logging_update_failed">No se pudo actualizar el registro. Revisa el interruptor e inténtalo de nuevo.</string>
<string name="setup_agent_commands">Herramientas de depuración</string>
<string name="setup_graphics_logs">Registros detallados de gráficos</string>
<string name="setup_steam_gpu_drawing">Interfaz de Steam: dibujo con GPU</string>
<string name="setup_steam_gpu_drawing_hint">Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba mosaicos con errores). Actívalo para una interfaz de Steam más rápida si se ve bien en este teléfono.</string>
@@ -2410,6 +2411,7 @@
<string name="adbpair_waiting_text">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.</string>
<string name="adbpair_waiting_long">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se ingresa en esta notificación.</string>
<string name="adbpair_code_label">Código de vinculación de 6 dígitos</string>
<string name="adbpair_code_hint">Toca Ingresar código y escribe los 6 dígitos que muestra Ajustes.</string>
<string name="adbpair_title_code">Ingresa el código de vinculación Wi-Fi</string>
<string name="adbpair_title_retry">Vuelve a probar el código</string>
<string name="adbpair_enter_code">Ingresar código</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Включва диагностика на Proton, Wine и графиката при следващото стартиране на игра. Може да намали производителността и да заеме повече място.</string>
<string name="setup_game_debug_logs_restart">Рестартирайте тази сесия, за да запазите дневниците за дебъгване на игри</string>
<string name="setup_logging_update_failed">Записването в дневник не можа да бъде променено. Проверете превключвателя и опитайте пак.</string>
<string name="setup_agent_commands">Инструменти за отстраняване на грешки</string>
<string name="setup_graphics_logs">Подробни дневници за графиката</string>
<string name="setup_steam_gpu_drawing">Интерфейс на Steam: изрисуване чрез GPU</string>
<string name="setup_steam_gpu_drawing_hint">При двойката драйвери Xclipse Steam изрисува страниците си софтуерно (изрисуването чрез GPU даваше разбити плочки). Включи за по-бърз интерфейс на Steam, ако изглежда правилно на този телефон.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“.</string>
<string name="adbpair_waiting_long">Включи безжичното отстраняване на грешки, после докосни „Чифтосване на устройство с код за чифтосване“. Остани в Настройки: кодът ще се появи в това известие.</string>
<string name="adbpair_code_label">6-цифрен код за чифтосване</string>
<string name="adbpair_code_hint">Докосни „Въвеждане на код“ и напиши 6-те цифри, показани в Настройки.</string>
<string name="adbpair_title_code">Въведи кода за чифтосване по Wi-Fi</string>
<string name="adbpair_title_retry">Опитай кода отново</string>
<string name="adbpair_enter_code">Въвеждане на код</string>
+2
View File
@@ -885,6 +885,7 @@
<string name="setup_game_debug_logs_hint">Při dalším spuštění hry zahrnout diagnostiku Protonu, Wine a grafiky. Může snížit výkon a zabrat více úložiště.</string>
<string name="setup_game_debug_logs_restart">Pro ukládání ladicích protokolů her restartujte tuto relaci</string>
<string name="setup_logging_update_failed">Protokolování se nepodařilo změnit. Zkontrolujte přepínač a zkuste to znovu.</string>
<string name="setup_agent_commands">Nástroje pro ladění</string>
<string name="setup_graphics_logs">Podrobné protokoly grafiky</string>
<string name="setup_steam_gpu_drawing">Rozhraní Steam: vykreslování na GPU</string>
<string name="setup_steam_gpu_drawing_hint">S párem ovladačů Xclipse vykresluje Steam své stránky softwarově (vykreslování na GPU zobrazovalo poškozené dlaždice). Pokud na tomto telefonu vypadá správně, zapněte tuto možnost pro rychlejší rozhraní Steam.</string>
@@ -2366,6 +2367,7 @@
<string name="adbpair_waiting_text">Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“.</string>
<string name="adbpair_waiting_long">Zapněte bezdrátové ladění a pak klepněte na „Párování zařízení pomocí párovacího kódu“. Zůstaňte v Nastavení: kód se zobrazí v tomto oznámení.</string>
<string name="adbpair_code_label">6místný párovací kód</string>
<string name="adbpair_code_hint">Klepněte na Zadat kód a napište 6 číslic zobrazených v Nastavení.</string>
<string name="adbpair_title_code">Zadejte párovací kód Wi-Fi</string>
<string name="adbpair_title_retry">Zkusit kód znovu</string>
<string name="adbpair_enter_code">Zadat kód</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Medtag Proton-, Wine- og grafikdiagnostik ved næste spilstart. Kan reducere ydelsen og bruge mere lagerplads.</string>
<string name="setup_game_debug_logs_restart">Genstart denne session for at gemme fejlfindingslogs for spil</string>
<string name="setup_logging_update_failed">Kunne ikke opdatere logning. Tjek kontakten, og prøv igen.</string>
<string name="setup_agent_commands">Fejlfindingsværktøjer</string>
<string name="setup_graphics_logs">Detaljerede grafiklogfiler</string>
<string name="setup_steam_gpu_drawing">Steam-brugerflade: GPU-tegning</string>
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-driverparret tegner Steam sine sider i software (GPU-tegning gav ødelagte fliser). Slå til for en hurtigere Steam-brugerflade, hvis det ser rigtigt ud på denne telefon.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“.</string>
<string name="adbpair_waiting_long">Tænd Trådløs fejlretning, og tryk derefter på „Par enhed med parringskode“. Bliv i Indstillinger: koden vises i denne notifikation.</string>
<string name="adbpair_code_label">6-cifret parringskode</string>
<string name="adbpair_code_hint">Tryk på Indtast kode, og skriv de 6 cifre, der vises i Indstillinger.</string>
<string name="adbpair_title_code">Indtast Wi-Fi-parringskoden</string>
<string name="adbpair_title_retry">Forsøg koden igen</string>
<string name="adbpair_enter_code">Indtast kode</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Beim nächsten Spielstart Diagnosen von Proton, Wine und Grafik einschließen. Kann die Leistung mindern und mehr Speicher belegen.</string>
<string name="setup_game_debug_logs_restart">Starte diese Sitzung neu, um Spiel-Debug-Logs zu speichern</string>
<string name="setup_logging_update_failed">Protokollierung konnte nicht aktualisiert werden. Prüfe den Schalter und versuch es erneut.</string>
<string name="setup_agent_commands">Debugging-Tools</string>
<string name="setup_graphics_logs">Detaillierte Grafik-Protokolle</string>
<string name="setup_steam_gpu_drawing">Steam-Oberfläche: Zeichnen mit der GPU</string>
<string name="setup_steam_gpu_drawing_hint">Mit dem Xclipse-Treiberpaar zeichnet Steam seine Seiten per Software (Zeichnen mit der GPU zeigte fehlerhafte Kacheln). Für eine schnellere Steam-Oberfläche einschalten, wenn die Darstellung auf diesem Telefon stimmt.</string>
@@ -2306,6 +2307,7 @@
<string name="adbpair_waiting_text">Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“.</string>
<string name="adbpair_waiting_long">Aktiviere Debugging über WLAN und tippe dann auf „Gerät mit Kopplungscode koppeln“. Bleib in den Einstellungen: Der Code wird in dieser Benachrichtigung eingegeben.</string>
<string name="adbpair_code_label">6-stelliger Kopplungscode</string>
<string name="adbpair_code_hint">Tippe auf „Code eingeben“ und gib die 6 Ziffern aus den Einstellungen ein.</string>
<string name="adbpair_title_code">WLAN-Kopplungscode eingeben</string>
<string name="adbpair_title_retry">Code noch einmal eingeben</string>
<string name="adbpair_enter_code">Code eingeben</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Συμπερίληψη διαγνωστικών Proton, Wine και γραφικών στην επόμενη εκκίνηση παιχνιδιού. Μπορεί να μειώσει την απόδοση και να χρησιμοποιήσει περισσότερο χώρο.</string>
<string name="setup_game_debug_logs_restart">Επανεκκινήστε αυτή τη συνεδρία για να αποθηκεύσετε αρχεία καταγραφής εντοπισμού σφαλμάτων παιχνιδιών</string>
<string name="setup_logging_update_failed">Δεν ήταν δυνατή η ενημέρωση της καταγραφής. Ελέγξτε τον διακόπτη και δοκιμάστε ξανά.</string>
<string name="setup_agent_commands">Εργαλεία εντοπισμού σφαλμάτων</string>
<string name="setup_graphics_logs">Λεπτομερή αρχεία καταγραφής γραφικών</string>
<string name="setup_steam_gpu_drawing">Διεπαφή Steam: σχεδίαση με GPU</string>
<string name="setup_steam_gpu_drawing_hint">Με το ζεύγος προγραμμάτων οδήγησης Xclipse, το Steam σχεδιάζει τις σελίδες του μέσω λογισμικού (η σχεδίαση με GPU εμφάνιζε σπασμένα πλακίδια). Ενεργοποιήστε το για ταχύτερη διεπαφή Steam, αν φαίνεται σωστή σε αυτό το τηλέφωνο.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης».</string>
<string name="adbpair_waiting_long">Ενεργοποιήστε τον ασύρματο εντοπισμό σφαλμάτων και πατήστε «Σύζευξη συσκευής με κωδικό σύζευξης». Παραμείνετε στις Ρυθμίσεις: ο κωδικός εμφανίζεται σε αυτή την ειδοποίηση.</string>
<string name="adbpair_code_label">Εξαψήφιος κωδικός σύζευξης</string>
<string name="adbpair_code_hint">Πατήστε Εισαγωγή κωδικού και πληκτρολογήστε τα 6 ψηφία που εμφανίζονται στις Ρυθμίσεις.</string>
<string name="adbpair_title_code">Εισαγάγετε τον κωδικό σύζευξης Wi-Fi</string>
<string name="adbpair_title_retry">Δοκιμάστε ξανά τον κωδικό</string>
<string name="adbpair_enter_code">Εισαγωγή κωδικού</string>
+2
View File
@@ -882,6 +882,7 @@
<string name="setup_game_debug_logs_hint">Incluye diagnósticos de Proton, Wine y gráficos en el próximo inicio de un juego. Puede reducir el rendimiento y usar más almacenamiento.</string>
<string name="setup_game_debug_logs_restart">Reinicia esta sesión para guardar los registros de depuración de juegos</string>
<string name="setup_logging_update_failed">No se ha podido actualizar el registro. Comprueba el interruptor y vuelve a intentarlo.</string>
<string name="setup_agent_commands">Herramientas de depuración</string>
<string name="setup_graphics_logs">Registros detallados de gráficos</string>
<string name="setup_steam_gpu_drawing">Interfaz de Steam: dibujo con GPU</string>
<string name="setup_steam_gpu_drawing_hint">Con el par de controladores Xclipse, Steam dibuja sus páginas por software (el dibujo con GPU mostraba teselas corruptas). Activa esta opción para una interfaz de Steam más rápida si se ve bien en este teléfono.</string>
@@ -2340,6 +2341,7 @@
<string name="adbpair_waiting_text">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”.</string>
<string name="adbpair_waiting_long">Activa la Depuración inalámbrica y toca “Vincular dispositivo con código de vinculación”. Quédate en Ajustes: el código se introduce en esta notificación.</string>
<string name="adbpair_code_label">Código de vinculación de 6 dígitos</string>
<string name="adbpair_code_hint">Toca Introducir código y escribe los 6 dígitos que muestra Ajustes.</string>
<string name="adbpair_title_code">Introduce el código de vinculación Wi-Fi</string>
<string name="adbpair_title_retry">Vuelve a probar el código</string>
<string name="adbpair_enter_code">Introducir código</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Sisällytä Protonin, Winen ja grafiikan diagnostiikka seuraavaan pelin käynnistykseen. Voi heikentää suorituskykyä ja käyttää enemmän tallennustilaa.</string>
<string name="setup_game_debug_logs_restart">Käynnistä tämä istunto uudelleen tallentaaksesi pelien vianmäärityslokit</string>
<string name="setup_logging_update_failed">Lokitusta ei voitu päivittää. Tarkista kytkin ja yritä uudelleen.</string>
<string name="setup_agent_commands">Vianmääritystyökalut</string>
<string name="setup_graphics_logs">Yksityiskohtaiset grafiikkalokit</string>
<string name="setup_steam_gpu_drawing">Steam-käyttöliittymä: GPU-piirto</string>
<string name="setup_steam_gpu_drawing_hint">Xclipse-ajuriparin kanssa Steam piirtää sivunsa ohjelmistollisesti (GPU-piirto näytti rikkinäisiä laattoja). Ota käyttöön nopeampaa Steam-käyttöliittymää varten, jos käyttöliittymä näyttää tässä puhelimessa virheettömältä.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”.</string>
<string name="adbpair_waiting_long">Ota langaton virheenkorjaus käyttöön ja napauta ”Yhdistä laite paritunnuksella”. Pysy Asetuksissa: koodi syötetään tähän ilmoitukseen.</string>
<string name="adbpair_code_label">6-numeroinen paritunnus</string>
<string name="adbpair_code_hint">Napauta Syötä koodi ja kirjoita Asetuksissa näkyvät 6 numeroa.</string>
<string name="adbpair_title_code">Anna Wi-Fi-paritunnus</string>
<string name="adbpair_title_retry">Yritä koodia uudelleen</string>
<string name="adbpair_enter_code">Syötä koodi</string>
+2
View File
@@ -882,6 +882,7 @@
<string name="setup_game_debug_logs_hint">Inclure les diagnostics Proton, Wine et graphiques au prochain lancement d\'un jeu. Peut réduire les performances et utiliser plus de stockage.</string>
<string name="setup_game_debug_logs_restart">Redémarrez cette session pour enregistrer les journaux de débogage des jeux</string>
<string name="setup_logging_update_failed">Impossible de modifier la journalisation. Vérifiez l\'interrupteur et réessayez.</string>
<string name="setup_agent_commands">Outils de débogage</string>
<string name="setup_graphics_logs">Journaux graphiques détaillés</string>
<string name="setup_steam_gpu_drawing">Interface Steam : rendu GPU</string>
<string name="setup_steam_gpu_drawing_hint">Avec la paire de pilotes Xclipse, Steam dessine ses pages en logiciel : le rendu GPU produisait des tuiles corrompues. Activez cette option pour accélérer l\'interface Steam si l\'affichage est correct sur ce téléphone.</string>
@@ -2339,6 +2340,7 @@
<string name="adbpair_waiting_text">Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ».</string>
<string name="adbpair_waiting_long">Activez le débogage sans fil, puis appuyez sur « Associer l\'appareil avec un code d\'appairage ». Restez dans les paramètres : le code se saisit dans cette notification.</string>
<string name="adbpair_code_label">Code d\'appairage à 6 chiffres</string>
<string name="adbpair_code_hint">Appuyez sur « Saisir le code » et tapez les 6 chiffres affichés dans les paramètres.</string>
<string name="adbpair_title_code">Saisissez le code d\'appairage Wi-Fi</string>
<string name="adbpair_title_retry">Saisissez à nouveau le code</string>
<string name="adbpair_enter_code">Saisir le code</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">अगली बार गेम लॉन्च होने पर Proton, Wine और ग्राफ़िक्स डायग्नोस्टिक्स शामिल करें। परफ़ॉर्मेंस घटा सकता है और ज़्यादा स्टोरेज ले सकता है।</string>
<string name="setup_game_debug_logs_restart">गेम डीबग लॉग सेव करने के लिए यह सेशन रीस्टार्ट करें</string>
<string name="setup_logging_update_failed">लॉगिंग अपडेट नहीं हो सकी। स्विच जांचें और फिर कोशिश करें।</string>
<string name="setup_agent_commands">डिबगिंग टूल</string>
<string name="setup_graphics_logs">विस्तृत ग्राफ़िक्स लॉग</string>
<string name="setup_steam_gpu_drawing">Steam इंटरफ़ेस: GPU ड्रॉइंग</string>
<string name="setup_steam_gpu_drawing_hint">Xclipse ड्राइवर जोड़ी के साथ, Steam अपने पेज सॉफ़्टवेयर से ड्रॉ करता है (GPU ड्रॉइंग में टाइलें टूटी हुई दिखीं)। अगर इस फ़ोन पर ठीक दिखे, तो तेज़ Steam इंटरफ़ेस के लिए इसे चालू करें।</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें।</string>
<string name="adbpair_waiting_long">वायरलेस डीबगिंग चालू करें, फिर “Pair device with pairing code” पर टैप करें। Settings में बने रहें: कोड इस नोटिफ़िकेशन में आता है।</string>
<string name="adbpair_code_label">6 अंकों का पेयरिंग कोड</string>
<string name="adbpair_code_hint">Enter code पर टैप करें और Settings में दिखाए गए 6 अंक टाइप करें।</string>
<string name="adbpair_title_code">Wi-Fi पेयरिंग कोड डालें</string>
<string name="adbpair_title_retry">कोड फिर से आज़माएं</string>
<string name="adbpair_enter_code">कोड डालें</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Proton-, Wine- és grafikai diagnosztika a következő játékindításkor. Csökkentheti a teljesítményt, és több tárhelyet használ.</string>
<string name="setup_game_debug_logs_restart">Indítsa újra ezt a munkamenetet a játék-hibakeresési naplók mentéséhez</string>
<string name="setup_logging_update_failed">Nem sikerült frissíteni a naplózást. Ellenőrizze a kapcsolót, és próbálja újra.</string>
<string name="setup_agent_commands">Hibakeresési eszközök</string>
<string name="setup_graphics_logs">Részletes grafikai naplók</string>
<string name="setup_steam_gpu_drawing">Steam felület: GPU-rajzolás</string>
<string name="setup_steam_gpu_drawing_hint">Az Xclipse illesztőprogram-párral a Steam szoftveresen rajzolja az oldalait (a GPU-rajzolás hibás csempéket eredményezett). Kapcsolja be a gyorsabb Steam-felületért, ha ezen a telefonon jól néz ki.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre.</string>
<string name="adbpair_waiting_long">Kapcsolja be a vezeték nélküli hibakeresést, majd koppintson az „Eszköz párosítása párosítási kóddal” lehetőségre. Maradjon a Beállításokban: a kód ebbe az értesítésbe kerül.</string>
<string name="adbpair_code_label">6 számjegyű párosítási kód</string>
<string name="adbpair_code_hint">Koppintson a Kód megadására, és írja be a Beállításokban megjelenő 6 számjegyet.</string>
<string name="adbpair_title_code">Adja meg a Wi-Fi párosítási kódot</string>
<string name="adbpair_title_retry">Próbálja meg újra a kódot</string>
<string name="adbpair_enter_code">Kód megadása</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">Sertakan diagnostik Proton, Wine, dan grafis pada peluncuran gim berikutnya. Dapat mengurangi performa dan memakai lebih banyak penyimpanan.</string>
<string name="setup_game_debug_logs_restart">Mulai ulang sesi ini untuk menyimpan log debug gim</string>
<string name="setup_logging_update_failed">Tidak dapat memperbarui pencatatan log. Periksa tombolnya lalu coba lagi.</string>
<string name="setup_agent_commands">Alat debug</string>
<string name="setup_graphics_logs">Log grafis rinci</string>
<string name="setup_steam_gpu_drawing">Antarmuka Steam: rendering GPU</string>
<string name="setup_steam_gpu_drawing_hint">Dengan pasangan driver Xclipse, Steam menggambar halamannya secara perangkat lunak (rendering GPU menampilkan ubin yang rusak). Aktifkan untuk antarmuka Steam yang lebih cepat jika tampilannya terlihat benar di ponsel ini.</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”.</string>
<string name="adbpair_waiting_long">Aktifkan Debugging nirkabel, lalu ketuk “Pasangkan perangkat dengan kode pemasangan”. Tetap di Setelan: kodenya akan muncul di notifikasi ini.</string>
<string name="adbpair_code_label">Kode pemasangan 6 digit</string>
<string name="adbpair_code_hint">Ketuk Masukkan kode dan ketikkan 6 digit yang ditampilkan di Setelan.</string>
<string name="adbpair_title_code">Masukkan kode pemasangan Wi-Fi</string>
<string name="adbpair_title_retry">Coba kode lagi</string>
<string name="adbpair_enter_code">Masukkan kode</string>
+2
View File
@@ -882,6 +882,7 @@
<string name="setup_game_debug_logs_hint">Includi la diagnostica di Proton, Wine e grafica al prossimo avvio di un gioco. Può ridurre le prestazioni e occupare più spazio.</string>
<string name="setup_game_debug_logs_restart">Riavvia questa sessione per salvare i log di debug dei giochi</string>
<string name="setup_logging_update_failed">Impossibile aggiornare i log. Controlla l\'interruttore e riprova.</string>
<string name="setup_agent_commands">Strumenti di debug</string>
<string name="setup_graphics_logs">Log grafici dettagliati</string>
<string name="setup_steam_gpu_drawing">Interfaccia Steam: rendering GPU</string>
<string name="setup_steam_gpu_drawing_hint">Con la coppia di driver Xclipse, Steam disegna le pagine via software (il rendering GPU mostrava riquadri danneggiati). Attivala per un\'interfaccia Steam più veloce, se su questo telefono appare corretta.</string>
@@ -2331,6 +2332,7 @@
<string name="adbpair_waiting_text">Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”.</string>
<string name="adbpair_waiting_long">Attiva Debug wireless, poi tocca “Accoppia dispositivo con codice di accoppiamento”. Resta in Impostazioni: il codice va inserito in questa notifica.</string>
<string name="adbpair_code_label">Codice di accoppiamento a 6 cifre</string>
<string name="adbpair_code_hint">Tocca Inserisci codice e digita le 6 cifre mostrate in Impostazioni.</string>
<string name="adbpair_title_code">Inserisci il codice di accoppiamento Wi-Fi</string>
<string name="adbpair_title_retry">Riprova con il codice</string>
<string name="adbpair_enter_code">Inserisci codice</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">次回のゲーム起動時にProton、Wine、グラフィックスの診断情報を含めます。パフォーマンスが低下し、ストレージを多く使用する場合があります。</string>
<string name="setup_game_debug_logs_restart">ゲームのデバッグログを保存するにはこのセッションを再起動してください</string>
<string name="setup_logging_update_failed">ログ設定を更新できませんでした。スイッチを確認して、もう一度お試しください。</string>
<string name="setup_agent_commands">デバッグツール</string>
<string name="setup_graphics_logs">詳細なグラフィックスログ</string>
<string name="setup_steam_gpu_drawing">Steam インターフェース: GPU 描画</string>
<string name="setup_steam_gpu_drawing_hint">Xclipse ドライバーの組み合わせでは、Steam はソフトウェアでページを描画します (GPU 描画ではタイルが乱れました)。この端末で表示が正しければ、オンにすると Steam インターフェースが高速化します。</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。</string>
<string name="adbpair_waiting_long">ワイヤレスデバッグをオンにして、「ペアリングコードでデバイスをペア設定」をタップしてください。設定画面のままにしてください:コードはこの通知に入力します。</string>
<string name="adbpair_code_label">6桁のペアリングコード</string>
<string name="adbpair_code_hint">「コードを入力」をタップし、設定に表示された6桁の数字を入力してください。</string>
<string name="adbpair_title_code">Wi-Fiペアリングコードを入力</string>
<string name="adbpair_title_retry">コードをもう一度入力</string>
<string name="adbpair_enter_code">コードを入力</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">다음 게임 실행 시 Proton, Wine 및 그래픽 진단 정보를 포함합니다. 성능이 저하되고 저장 공간을 더 사용할 수 있습니다.</string>
<string name="setup_game_debug_logs_restart">게임 디버그 로그를 저장하려면 이 세션을 다시 시작하세요</string>
<string name="setup_logging_update_failed">로깅을 업데이트할 수 없습니다. 스위치를 확인하고 다시 시도하세요.</string>
<string name="setup_agent_commands">디버깅 도구</string>
<string name="setup_graphics_logs">상세 그래픽 로그</string>
<string name="setup_steam_gpu_drawing">Steam 인터페이스: GPU 렌더링</string>
<string name="setup_steam_gpu_drawing_hint">Xclipse 드라이버 조합에서는 Steam 페이지를 소프트웨어로 그립니다(GPU 렌더링에서는 타일이 깨져 보였습니다). 이 기기에서 정상적으로 보인다면 더 빠른 Steam 인터페이스를 위해 켜세요.</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요.</string>
<string name="adbpair_waiting_long">무선 디버깅을 켠 다음 “페어링 코드로 기기 페어링”을 탭하세요. 코드는 이 알림에 입력하므로 설정 화면에 머물러 있으세요.</string>
<string name="adbpair_code_label">6자리 페어링 코드</string>
<string name="adbpair_code_hint">\"코드 입력\"을 탭하고 설정에 표시된 6자리 숫자를 입력하세요.</string>
<string name="adbpair_title_code">Wi-Fi 페어링 코드 입력</string>
<string name="adbpair_title_retry">코드를 다시 입력하세요</string>
<string name="adbpair_enter_code">코드 입력</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">Sertakan diagnostik Proton, Wine dan grafik pada pelancaran permainan seterusnya. Boleh mengurangkan prestasi dan menggunakan lebih banyak storan.</string>
<string name="setup_game_debug_logs_restart">Mulakan semula sesi ini untuk menyimpan log nyahpepijat permainan</string>
<string name="setup_logging_update_failed">Tidak dapat mengemas kini pengelogan. Semak suis dan cuba lagi.</string>
<string name="setup_agent_commands">Alatan penyahpepijatan</string>
<string name="setup_graphics_logs">Log grafik terperinci</string>
<string name="setup_steam_gpu_drawing">Antara muka Steam: pelukisan GPU</string>
<string name="setup_steam_gpu_drawing_hint">Dengan pasangan pemacu Xclipse, Steam melukis halamannya melalui perisian (pelukisan GPU menghasilkan jubin yang cacat). Hidupkan untuk antara muka Steam yang lebih pantas jika hasilnya kelihatan betul pada telefon ini.</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”.</string>
<string name="adbpair_waiting_long">Hidupkan Debugging Wayarles, kemudian ketik “Gandingkan peranti dengan kod gandingan”. Kekal dalam Tetapan: kod akan masuk dalam pemberitahuan ini.</string>
<string name="adbpair_code_label">Kod gandingan 6 digit</string>
<string name="adbpair_code_hint">Ketik Masukkan kod dan taip 6 digit yang dipaparkan dalam Tetapan.</string>
<string name="adbpair_title_code">Masukkan kod gandingan Wi-Fi</string>
<string name="adbpair_title_retry">Cuba kod itu sekali lagi</string>
<string name="adbpair_enter_code">Masukkan kod</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Ta med diagnostikk for Proton, Wine og grafikk ved neste spillstart. Kan redusere ytelsen og bruke mer lagringsplass.</string>
<string name="setup_game_debug_logs_restart">Start denne sesjonen på nytt for å lagre feilsøkingslogger for spill</string>
<string name="setup_logging_update_failed">Kunne ikke oppdatere loggingen. Sjekk bryteren og prøv igjen.</string>
<string name="setup_agent_commands">Feilsøkingsverktøy</string>
<string name="setup_graphics_logs">Detaljerte grafikklogger</string>
<string name="setup_steam_gpu_drawing">Steam-grensesnitt: GPU-tegning</string>
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-driverparet tegner Steam sidene sine i programvare (GPU-tegning viste ødelagte fliser). Slå på for et raskere Steam-grensesnitt hvis det ser riktig ut på denne telefonen.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode».</string>
<string name="adbpair_waiting_long">Slå på trådløs feilsøking, og trykk så på «Par enhet med koblingskode». Hold deg i Innstillinger: koden kommer i denne varslingen.</string>
<string name="adbpair_code_label">6-tallers koblingskode</string>
<string name="adbpair_code_hint">Trykk på Skriv inn kode og skriv de 6 tallene som vises i Innstillinger.</string>
<string name="adbpair_title_code">Skriv inn Wi-Fi-koblingskoden</string>
<string name="adbpair_title_retry">Prøv koden igjen</string>
<string name="adbpair_enter_code">Skriv inn kode</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Neem bij de volgende gamestart diagnostiek van Proton, Wine en graphics op. Kan de prestaties verlagen en meer opslag gebruiken.</string>
<string name="setup_game_debug_logs_restart">Start deze sessie opnieuw om debuglogs van games op te slaan</string>
<string name="setup_logging_update_failed">Kan logging niet bijwerken. Controleer de schakelaar en probeer het opnieuw.</string>
<string name="setup_agent_commands">Hulpmiddelen voor debuggen</string>
<string name="setup_graphics_logs">Gedetailleerde grafische logboeken</string>
<string name="setup_steam_gpu_drawing">Steam-interface: GPU-tekenen</string>
<string name="setup_steam_gpu_drawing_hint">Met het Xclipse-driverpaar tekent Steam zijn pagina\'s in software (GPU-tekenen liet gebroken tegels zien). Schakel dit in voor een snellere Steam-interface als het op deze telefoon goed uitziet.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”.</string>
<string name="adbpair_waiting_long">Schakel draadloze foutopsporing in en tik vervolgens op “Apparaat koppelen met koppelcode”. Blijf in Instellingen: de code komt in deze melding.</string>
<string name="adbpair_code_label">Koppelcode van 6 cijfers</string>
<string name="adbpair_code_hint">Tik op Code invoeren en typ de 6 cijfers die in Instellingen worden getoond.</string>
<string name="adbpair_title_code">Voer de Wi-Fi-koppelcode in</string>
<string name="adbpair_title_retry">Probeer de code opnieuw</string>
<string name="adbpair_enter_code">Code invoeren</string>
+2
View File
@@ -885,6 +885,7 @@
<string name="setup_game_debug_logs_hint">Dołącz diagnostykę Proton, Wine i grafiki przy następnym uruchomieniu gry. Może obniżyć wydajność i zająć więcej miejsca.</string>
<string name="setup_game_debug_logs_restart">Uruchom ponownie tę sesję, aby zapisywać logi debugowania gier</string>
<string name="setup_logging_update_failed">Nie udało się zmienić logowania. Sprawdź przełącznik i spróbuj ponownie.</string>
<string name="setup_agent_commands">Narzędzia debugowania</string>
<string name="setup_graphics_logs">Szczegółowe logi graficzne</string>
<string name="setup_steam_gpu_drawing">Interfejs Steam: rysowanie przez GPU</string>
<string name="setup_steam_gpu_drawing_hint">Z parą sterowników Xclipse Steam rysuje swoje strony programowo (rysowanie przez GPU dawało uszkodzone kafelki). Włącz, aby przyspieszyć interfejs Steam, jeśli na tym telefonie wygląda poprawnie.</string>
@@ -2366,6 +2367,7 @@
<string name="adbpair_waiting_text">Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”.</string>
<string name="adbpair_waiting_long">Włącz Debugowanie bezprzewodowe, a potem dotknij „Sparuj urządzenie za pomocą kodu parowania”. Pozostań w Ustawieniach: kod wpiszesz w tym powiadomieniu.</string>
<string name="adbpair_code_label">6-cyfrowy kod parowania</string>
<string name="adbpair_code_hint">Dotknij „Wpisz kod” i podaj 6 cyfr widocznych w Ustawieniach.</string>
<string name="adbpair_title_code">Wpisz kod parowania Wi-Fi</string>
<string name="adbpair_title_retry">Spróbuj wpisać kod ponownie</string>
<string name="adbpair_enter_code">Wpisz kod</string>
@@ -882,6 +882,7 @@
<string name="setup_game_debug_logs_hint">Inclui diagnósticos do Proton, do Wine e de gráficos no próximo arranque de um jogo. Pode reduzir o desempenho e ocupar mais armazenamento.</string>
<string name="setup_game_debug_logs_restart">Reinicie esta sessão para guardar os registos de depuração dos jogos</string>
<string name="setup_logging_update_failed">Não foi possível atualizar os registos. Verifique o interruptor e tente novamente.</string>
<string name="setup_agent_commands">Ferramentas de depuração</string>
<string name="setup_graphics_logs">Registos gráficos detalhados</string>
<string name="setup_steam_gpu_drawing">Interface do Steam: desenho pela GPU</string>
<string name="setup_steam_gpu_drawing_hint">Com o par de controladores Xclipse, o Steam desenha as suas páginas por software (o desenho pela GPU mostrou mosaicos com falhas). Ative para uma interface do Steam mais rápida se esta parecer correta neste telemóvel.</string>
@@ -2346,6 +2347,7 @@
<string name="adbpair_waiting_text">Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização».</string>
<string name="adbpair_waiting_long">Ative a depuração sem fios e toque em «Sincronizar dispositivo com código de sincronização». Fique nas Definições: o código é introduzido nesta notificação.</string>
<string name="adbpair_code_label">Código de sincronização de 6 dígitos</string>
<string name="adbpair_code_hint">Toque em Introduzir código e escreva os 6 dígitos mostrados nas Definições.</string>
<string name="adbpair_title_code">Introduza o código de sincronização Wi-Fi</string>
<string name="adbpair_title_retry">Introduza o código novamente</string>
<string name="adbpair_enter_code">Introduzir código</string>
+2
View File
@@ -889,6 +889,7 @@
<string name="setup_game_debug_logs_hint">Inclui diagnósticos do Proton, do Wine e de gráficos na próxima inicialização do jogo. Pode reduzir o desempenho e usar mais armazenamento.</string>
<string name="setup_game_debug_logs_restart">Reinicie esta sessão para salvar os logs de depuração dos jogos</string>
<string name="setup_logging_update_failed">Não foi possível atualizar os logs. Verifique a chave e tente novamente.</string>
<string name="setup_agent_commands">Ferramentas de depuração</string>
<string name="setup_graphics_logs">Logs detalhados de gráficos</string>
<string name="setup_steam_gpu_drawing">Interface do Steam: renderização pela GPU</string>
<string name="setup_steam_gpu_drawing_hint">Com o par de drivers Xclipse, o Steam renderiza suas páginas por software (a renderização pela GPU apresentou blocos quebrados). Ative para ter uma interface do Steam mais rápida se ela aparecer corretamente neste telefone.</string>
@@ -2354,6 +2355,7 @@
<string name="adbpair_waiting_text">Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”.</string>
<string name="adbpair_waiting_long">Ative a depuração por Wi-Fi e toque em “Parear o dispositivo com um código de pareamento”. Fique nas Configurações: o código é digitado nesta notificação.</string>
<string name="adbpair_code_label">Código de pareamento de 6 dígitos</string>
<string name="adbpair_code_hint">Toque em Digitar código e insira os 6 dígitos mostrados nas Configurações.</string>
<string name="adbpair_title_code">Digite o código de pareamento por Wi-Fi</string>
<string name="adbpair_title_retry">Tente o código de novo</string>
<string name="adbpair_enter_code">Digitar código</string>
+2
View File
@@ -882,6 +882,7 @@
<string name="setup_game_debug_logs_hint">Include diagnosticare Proton, Wine și grafică la următoarea lansare a unui joc. Poate reduce performanța și folosește mai mult spațiu.</string>
<string name="setup_game_debug_logs_restart">Repornește această sesiune pentru a salva jurnalele de depanare</string>
<string name="setup_logging_update_failed">Jurnalizarea nu a putut fi actualizată. Verifică comutatorul și încearcă din nou.</string>
<string name="setup_agent_commands">Instrumente de depanare</string>
<string name="setup_graphics_logs">Jurnale detaliate de grafică</string>
<string name="setup_steam_gpu_drawing">Interfața Steam: desenare GPU</string>
<string name="setup_steam_gpu_drawing_hint">Cu perechea de drivere Xclipse, Steam își desenează paginile în software (desenarea GPU a afișat dale stricate). Activează pentru o interfață Steam mai rapidă dacă arată corect pe acest telefon.</string>
@@ -2340,6 +2341,7 @@
<string name="adbpair_waiting_text">Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”.</string>
<string name="adbpair_waiting_long">Activează Depanarea wireless, apoi apasă „Asociază dispozitivul cu un cod de asociere”. Rămâi în Setări: codul apare în această notificare.</string>
<string name="adbpair_code_label">Cod de asociere din 6 cifre</string>
<string name="adbpair_code_hint">Apasă Introdu codul și scrie cele 6 cifre arătate în Setări.</string>
<string name="adbpair_title_code">Introdu codul de asociere Wi-Fi</string>
<string name="adbpair_title_retry">Încearcă codul din nou</string>
<string name="adbpair_enter_code">Introdu codul</string>
+2
View File
@@ -885,6 +885,7 @@
<string name="setup_game_debug_logs_hint">Добавлять диагностику Proton, Wine и графики при следующем запуске игры. Может снизить производительность и занять больше места.</string>
<string name="setup_game_debug_logs_restart">Перезапустите сессию, чтобы сохранять журналы отладки игр</string>
<string name="setup_logging_update_failed">Не удалось обновить журналирование. Проверьте переключатель и повторите попытку.</string>
<string name="setup_agent_commands">Инструменты отладки</string>
<string name="setup_graphics_logs">Подробные журналы графики</string>
<string name="setup_steam_gpu_drawing">Интерфейс Steam: отрисовка на GPU</string>
<string name="setup_steam_gpu_drawing_hint">С парой драйверов Xclipse Steam отрисовывает страницы программно (при отрисовке на GPU появлялись битые тайлы). Включите, чтобы ускорить интерфейс Steam, если на этом телефоне он выглядит корректно.</string>
@@ -2367,6 +2368,7 @@
<string name="adbpair_waiting_text">Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода».</string>
<string name="adbpair_waiting_long">Включите отладку по Wi-Fi и нажмите «Сопряжение устройства с помощью кода». Не выходите из Настроек: код вводится в этом уведомлении.</string>
<string name="adbpair_code_label">6-значный код сопряжения</string>
<string name="adbpair_code_hint">Нажмите «Ввести код» и введите 6 цифр, показанных в Настройках.</string>
<string name="adbpair_title_code">Введите код сопряжения Wi-Fi</string>
<string name="adbpair_title_retry">Введите код еще раз</string>
<string name="adbpair_enter_code">Ввести код</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Ta med diagnostik för Proton, Wine och grafik vid nästa spelstart. Kan sänka prestandan och använda mer lagringsutrymme.</string>
<string name="setup_game_debug_logs_restart">Starta om sessionen för att spara felsökningsloggar för spel</string>
<string name="setup_logging_update_failed">Det gick inte att uppdatera loggningen. Kontrollera reglaget och försök igen.</string>
<string name="setup_agent_commands">Felsökningsverktyg</string>
<string name="setup_graphics_logs">Detaljerade grafikloggar</string>
<string name="setup_steam_gpu_drawing">Steam-gränssnitt: GPU-ritning</string>
<string name="setup_steam_gpu_drawing_hint">Med Xclipse-drivrutinsparet ritar Steam sina sidor i mjukvara (GPU-ritning gav trasiga rutor). Slå på för ett snabbare Steam-gränssnitt om det ser rätt ut på den här telefonen.</string>
@@ -2314,6 +2315,7 @@
<string name="adbpair_waiting_text">Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”.</string>
<string name="adbpair_waiting_long">Slå på trådlös felsökning och tryck sedan på ”Parkoppla enhet med parkopplingskod”. Stanna kvar i Inställningar: koden skrivs in i den här aviseringen.</string>
<string name="adbpair_code_label">6-siffrig parkopplingskod</string>
<string name="adbpair_code_hint">Tryck på Ange kod och skriv de 6 siffrorna som visas i Inställningar.</string>
<string name="adbpair_title_code">Ange Wi-Fi-parkopplingskoden</string>
<string name="adbpair_title_retry">Försök med koden igen</string>
<string name="adbpair_enter_code">Ange kod</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">รวมข้อมูลวินิจฉัยของ Proton, Wine และกราฟิกในการเปิดเกมครั้งถัดไป อาจลดประสิทธิภาพและใช้พื้นที่จัดเก็บมากขึ้น</string>
<string name="setup_game_debug_logs_restart">รีสตาร์ทเซสชันนี้เพื่อบันทึกบันทึกดีบักของเกม</string>
<string name="setup_logging_update_failed">อัปเดตการบันทึกไม่ได้ ตรวจสอบสวิตช์แล้วลองใหม่</string>
<string name="setup_agent_commands">เครื่องมือดีบัก</string>
<string name="setup_graphics_logs">บันทึกกราฟิกโดยละเอียด</string>
<string name="setup_steam_gpu_drawing">อินเทอร์เฟซ Steam: วาดด้วย GPU</string>
<string name="setup_steam_gpu_drawing_hint">ด้วยไดรเวอร์คู่ Xclipse Steam จะวาดหน้าเพจด้วยซอฟต์แวร์ (การวาดด้วย GPU ทำให้ภาพแตกเป็นชิ้น) เปิดตัวเลือกนี้เพื่อให้อินเทอร์เฟซ Steam เร็วขึ้นหากดูปกติบนเครื่องนี้</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">เปิด Wireless debugging แล้วแตะ “Pair device with pairing code”</string>
<string name="adbpair_waiting_long">เปิด Wireless debugging แล้วแตะ “Pair device with pairing code” อยู่ในการตั้งค่าต่อไป: รหัสจะอยู่ในการแจ้งเตือนนี้</string>
<string name="adbpair_code_label">รหัสจับคู่ 6 หลัก</string>
<string name="adbpair_code_hint">แตะกรอกรหัสแล้วพิมพ์ตัวเลข 6 หลักที่แสดงในการตั้งค่า</string>
<string name="adbpair_title_code">กรอกรหัสจับคู่ Wi-Fi</string>
<string name="adbpair_title_retry">ลองกรอกรหัสอีกครั้ง</string>
<string name="adbpair_enter_code">กรอกรหัส</string>
+2
View File
@@ -879,6 +879,7 @@
<string name="setup_game_debug_logs_hint">Sonraki oyun başlatmada Proton, Wine ve grafik tanılamalarını ekler. Performansı düşürebilir ve daha fazla depolama kullanabilir.</string>
<string name="setup_game_debug_logs_restart">Oyun hata ayıklama günlüklerini kaydetmek için bu oturumu yeniden başlatın</string>
<string name="setup_logging_update_failed">Günlük kaydı güncellenemedi. Anahtarı kontrol edip tekrar deneyin.</string>
<string name="setup_agent_commands">Hata ayıklama araçları</string>
<string name="setup_graphics_logs">Ayrıntılı grafik günlükleri</string>
<string name="setup_steam_gpu_drawing">Steam arayüzü: GPU ile çizim</string>
<string name="setup_steam_gpu_drawing_hint">Xclipse sürücü ikilisi kullanıldığında Steam, sayfalarını yazılımla çizer (GPU ile çizimde bozuk döşemeler görüldü). Bu telefonda düzgün görünüyorsa daha hızlı bir Steam arayüzü için açın.</string>
@@ -2306,6 +2307,7 @@
<string name="adbpair_waiting_text">Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun.</string>
<string name="adbpair_waiting_long">Kablosuz hata ayıklamayı açın, sonra “Eşleştirme koduyla cihaz eşle” seçeneğine dokunun. Ayarlar\'dan çıkmayın: kod bu bildirime gelir.</string>
<string name="adbpair_code_label">6 haneli eşleştirme kodu</string>
<string name="adbpair_code_hint">Kodu gir\'e dokunun ve Ayarlar\'da gösterilen 6 haneyi yazın.</string>
<string name="adbpair_title_code">Wi-Fi eşleştirme kodunu girin</string>
<string name="adbpair_title_retry">Kodu yeniden deneyin</string>
<string name="adbpair_enter_code">Kodu gir</string>
+2
View File
@@ -885,6 +885,7 @@
<string name="setup_game_debug_logs_hint">Додавати діагностику Proton, Wine і графіки під час наступного запуску гри. Може знизити продуктивність і зайняти більше місця.</string>
<string name="setup_game_debug_logs_restart">Перезапустіть цей сеанс, щоб зберігати журнали налагодження ігор</string>
<string name="setup_logging_update_failed">Не вдалося оновити журналювання. Перевірте перемикач і спробуйте ще раз.</string>
<string name="setup_agent_commands">Засоби діагностики</string>
<string name="setup_graphics_logs">Детальні журнали графіки</string>
<string name="setup_steam_gpu_drawing">Інтерфейс Steam: малювання на GPU</string>
<string name="setup_steam_gpu_drawing_hint">Із парою драйверів Xclipse Steam малює свої сторінки програмно (малювання на GPU давало пошкоджені фрагменти). Увімкніть для швидшого інтерфейсу Steam, якщо на цьому телефоні все виглядає правильно.</string>
@@ -2366,6 +2367,7 @@
<string name="adbpair_waiting_text">Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки».</string>
<string name="adbpair_waiting_long">Увімкніть бездротове налагодження, потім торкніться «Прив’язати пристрій за кодом прив’язки». Залишайтеся в «Налаштуваннях»: код з’явиться в цьому сповіщенні.</string>
<string name="adbpair_code_label">6-значний код прив’язки</string>
<string name="adbpair_code_hint">Торкніться «Ввести код» і введіть 6 цифр, показаних у «Налаштуваннях».</string>
<string name="adbpair_title_code">Введіть код прив’язки Wi-Fi</string>
<string name="adbpair_title_retry">Спробуйте код ще раз</string>
<string name="adbpair_enter_code">Ввести код</string>
+2
View File
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">Thêm chẩn đoán Proton, Wine và đồ họa vào lần khởi chạy game tiếp theo. Có thể giảm hiệu năng và tốn thêm bộ nhớ.</string>
<string name="setup_game_debug_logs_restart">Khởi động lại phiên này để lưu nhật ký gỡ lỗi game</string>
<string name="setup_logging_update_failed">Không thể cập nhật ghi nhật ký. Hãy kiểm tra công tắc rồi thử lại.</string>
<string name="setup_agent_commands">Công cụ gỡ lỗi</string>
<string name="setup_graphics_logs">Nhật ký đồ họa chi tiết</string>
<string name="setup_steam_gpu_drawing">Giao diện Steam: vẽ bằng GPU</string>
<string name="setup_steam_gpu_drawing_hint">Với cặp driver Xclipse, Steam vẽ các trang bằng phần mềm (vẽ bằng GPU làm vỡ các ô hiển thị). Bật để có giao diện Steam nhanh hơn nếu hình hiển thị đúng trên máy này.</string>
@@ -2289,6 +2290,7 @@
<string name="adbpair_waiting_text">Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”.</string>
<string name="adbpair_waiting_long">Bật Gỡ lỗi qua mạng không dây, rồi nhấn “Pair device with pairing code”. Ở lại trong Settings: mã sẽ hiện trong thông báo này.</string>
<string name="adbpair_code_label">Mã ghép nối 6 số</string>
<string name="adbpair_code_hint">Nhấn Enter code và nhập 6 số hiện trong Settings.</string>
<string name="adbpair_title_code">Nhập mã ghép nối Wi-Fi</string>
<string name="adbpair_title_retry">Thử lại mã</string>
<string name="adbpair_enter_code">Nhập mã</string>
@@ -876,6 +876,7 @@
<string name="setup_game_debug_logs_hint">在下次启动游戏时包含 Proton、Wine 和图形诊断信息。可能降低性能并占用更多存储空间。</string>
<string name="setup_game_debug_logs_restart">重启此会话以保存游戏调试日志</string>
<string name="setup_logging_update_failed">无法更新日志设置。请检查开关后重试。</string>
<string name="setup_agent_commands">调试工具</string>
<string name="setup_graphics_logs">详细图形日志</string>
<string name="setup_steam_gpu_drawing">Steam 界面:GPU 绘制</string>
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驱动组合时,Steam 以软件方式绘制页面(GPU 绘制会出现图块错乱)。若在这台手机上画面正常,开启即可获得更快的 Steam 界面。</string>
@@ -2366,6 +2367,7 @@
<string name="adbpair_waiting_text">开启无线调试,然后点按“使用配对码配对设备”。</string>
<string name="adbpair_waiting_long">开启无线调试,然后点按“使用配对码配对设备”。请停留在“设置”中:配对码在此通知中输入。</string>
<string name="adbpair_code_label">6 位配对码</string>
<string name="adbpair_code_hint">点按“输入配对码”,然后输入“设置”中显示的 6 位数字。</string>
<string name="adbpair_title_code">输入 Wi-Fi 配对码</string>
<string name="adbpair_title_retry">请重新输入配对码</string>
<string name="adbpair_enter_code">输入配对码</string>
@@ -875,6 +875,7 @@
<string name="setup_game_debug_logs_hint">在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。</string>
<string name="setup_game_debug_logs_restart">重新啟動此會話以儲存遊戲偵錯記錄</string>
<string name="setup_logging_update_failed">無法更新記錄設定。請檢查開關後再試一次。</string>
<string name="setup_agent_commands">偵錯工具</string>
<string name="setup_graphics_logs">詳細圖形記錄</string>
<string name="setup_steam_gpu_drawing">Steam 介面:GPU 繪製</string>
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驅動程式組合時,Steam 會以軟件繪製頁面(GPU 繪製曾出現圖塊破損)。若在這部手機上顯示正常,可開啟以加快 Steam 介面。</string>
@@ -2288,6 +2289,7 @@
<string name="adbpair_waiting_text">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。</string>
<string name="adbpair_waiting_long">開啟無線偵錯,然後輕按「使用配對碼配對裝置」。請留在「設定」中:配對碼需在此通知中輸入。</string>
<string name="adbpair_code_label">6 位數配對碼</string>
<string name="adbpair_code_hint">輕按「輸入配對碼」,然後輸入「系統設定」中顯示的 6 位數字。</string>
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
<string name="adbpair_title_retry">請再次輸入配對碼</string>
<string name="adbpair_enter_code">輸入配對碼</string>
@@ -875,6 +875,7 @@
<string name="setup_game_debug_logs_hint">在下次啟動遊戲時加入 Proton、Wine 和圖形診斷資訊。可能降低效能並佔用更多儲存空間。</string>
<string name="setup_game_debug_logs_restart">重新啟動此工作階段以儲存遊戲偵錯日誌</string>
<string name="setup_logging_update_failed">無法更新日誌設定。請檢查開關後再試一次。</string>
<string name="setup_agent_commands">偵錯工具</string>
<string name="setup_graphics_logs">詳細圖形記錄</string>
<string name="setup_steam_gpu_drawing">Steam 介面:GPU 繪製</string>
<string name="setup_steam_gpu_drawing_hint">使用 Xclipse 驅動程式組合時,Steam 會改用軟體繪製頁面(GPU 繪製曾出現圖塊破損)。若這支手機上顯示正常,開啟此選項可加快 Steam 介面。</string>
@@ -2288,6 +2289,7 @@
<string name="adbpair_waiting_text">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。</string>
<string name="adbpair_waiting_long">開啟無線偵錯,然後點擊「使用配對碼配對裝置」。請留在「設定」中:配對碼要輸入在這則通知裡。</string>
<string name="adbpair_code_label">6 位數配對碼</string>
<string name="adbpair_code_hint">點擊「輸入配對碼」,然後輸入「Android 設定」中顯示的 6 位數字。</string>
<string name="adbpair_title_code">輸入 Wi-Fi 配對碼</string>
<string name="adbpair_title_retry">請再次輸入配對碼</string>
<string name="adbpair_enter_code">輸入配對碼</string>
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- SystemUI can inflate RemoteViews with a different theme. Pair each key's foreground with its background. -->
<style name="DroidDeckPairKey" parent="@android:style/Widget.Material.Button.Borderless">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">34dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_margin">2dp</item>
<item name="android:minWidth">0dp</item>
<item name="android:minHeight">0dp</item>
<item name="android:padding">0dp</item>
<item name="android:background">@drawable/wireless_pairing_key</item>
<item name="android:backgroundTint">@null</item>
<item name="android:textColor">@color/wireless_pairing_key_text</item>
<item name="android:textSize">17sp</item>
<item name="android:textStyle">bold</item>
<item name="android:includeFontPadding">false</item>
</style>
</resources>
+6 -29
View File
@@ -976,8 +976,7 @@
<string name="setup_game_debug_logs_hint">Include Proton, Wine and graphics diagnostics on the next game launch. Turns itself off when that session ends. Can reduce performance and use more storage.</string>
<string name="setup_game_debug_logs_restart">Restart this session to save game debug logs</string>
<string name="setup_logging_update_failed">Couldn\'t update logging. Check the switch and try again.</string>
<string name="setup_agent_commands" translatable="false">droiddeckctl</string>
<string name="setup_agent_commands_hint">Allow command-line control of DroidDeck sessions, input, and logs.</string>
<string name="setup_agent_commands">Debugging tools</string>
<string name="setup_graphics_logs">Detailed graphics logs</string>
<string name="setup_steam_gpu_drawing">Steam interface: GPU drawing</string>
<string name="setup_steam_gpu_drawing_hint">With the Xclipse driver pair, Steam draws its pages in software (GPU drawing showed broken tiles). Turn on for a faster Steam interface if it looks right on this phone.</string>
@@ -1043,9 +1042,6 @@
<string name="setup_orientation_landscape">Landscape</string>
<string name="setup_orientation_reverse">Reverse landscape</string>
<string name="setup_fullscreen">Fullscreen</string>
<string name="setup_launcher_fullscreen">Launcher fullscreen</string>
<string name="setup_session_fullscreen">Session fullscreen</string>
<string name="setup_fullscreen_landscape_only">Landscape only</string>
<string name="setup_fullscreen_on">Hides the Android status and navigation bars</string>
<string name="setup_fullscreen_off">Shows the Android status and navigation bars</string>
<string name="setup_page_swipe">Swipe between pages</string>
@@ -1472,7 +1468,7 @@
<string name="gate_needs_wifi">Wireless debugging needs Wi-Fi. Any network works; it doesn\'t need internet.</string>
<string name="gate_step1">Open Settings → Developer options → Wireless debugging and turn it on</string>
<string name="gate_step2">Tap “Pair device with pairing code”</string>
<string name="gate_step3">Tap ▼ to keep the keypad open. Swipe down if it closes.</string>
<string name="gate_step3">Type the code into the DroidDeck notification</string>
<string name="pairguide_build_number">In About phone, tap Build number 7 times</string>
<string name="pairguide_wireless">Turn on Wireless debugging</string>
<string name="pairguide_pair">Open Wireless debugging, then tap “Pair device with pairing code”</string>
@@ -2643,11 +2639,10 @@
<string name="adbpair_waiting_text">Turn on Wireless debugging, then tap “Pair device with pairing code”.</string>
<string name="adbpair_waiting_long">Turn on Wireless debugging, then tap “Pair device with pairing code”. Stay in Settings: the code goes in this notification.</string>
<string name="adbpair_code_label">6-digit pairing code</string>
<string name="adbpair_keypad_entered">%1$d of 6 digits entered</string>
<string name="adbpair_keypad_delete">Delete last digit</string>
<string name="adbpair_code_hint">Tap Enter code and type the 6 digits shown in Settings.</string>
<string name="adbpair_title_code">Enter the Wi-Fi pairing code</string>
<string name="adbpair_title_retry">Try the code again</string>
<string name="adbpair_enter_code">Tap ✓ to pair</string>
<string name="adbpair_enter_code">Enter code</string>
<string name="adbpair_title_working">Setting up Steam</string>
<string name="adbpair_title_done">Steam is ready</string>
<string name="adbpair_done_text">Tap to go back to DroidDeck. You can turn Wireless debugging off now.</string>
@@ -3338,18 +3333,6 @@
<string name="setup_ready_signed_in">signed in as %1$s</string>
<string name="setup_needs_you">When something needs you</string>
<string name="setup_group_look">Look</string>
<string name="setup_group_home_navigation">Home &amp; navigation</string>
<string name="setup_group_display">Display</string>
<string name="setup_group_input">Input</string>
<string name="setup_session_display">Session display</string>
<string name="setup_session_display_hint">Fullscreen and orientation for Steam and Desktop.</string>
<string name="setup_expand_open">Open</string>
<string name="setup_performance_cpu">CPU</string>
<string name="setup_performance_graphics">Graphics</string>
<string name="setup_performance_advanced">Advanced compatibility</string>
<string name="setup_performance_compatibility">Compatibility settings</string>
<string name="setup_performance_compatibility_hint">Wine synchronization, proot, and graphics workarounds.</string>
<string name="integration_manage_hint">Wi-Fi names, brightness, Home, system keys, and Bluetooth.</string>
<string name="setup_group_device">This device</string>
<string name="setup_group_art">Library art</string>
<string name="setup_group_download">Downloads</string>
@@ -4473,12 +4456,7 @@
<string name="settings_place_drawer">In-game menu</string>
<string name="settings_place_sheet">Steam or Desktop options (swipe up)</string>
<string name="settings_place_steam_qam">Steam quick menu (•••)</string>
<string name="dev_group_diagnostics">Diagnostics</string>
<string name="dev_group_previews">UI previews</string>
<string name="dev_group_log_files">Log files</string>
<string name="dev_group_reset">Reset</string>
<string name="dev_log_manage_hint">Share, save, or delete individual session logs.</string>
<string name="dev_harness_overlay_hint">Show Dev Harness over the launcher and games.</string>
<string name="dev_group_logs">Logs</string>
<string name="dev_ui_zoo">UI zoo</string>
<string name="dev_ui_zoo_hint">Screens that are hard to reach, shown only when you pick one</string>
<string name="dev_ui_zoo_open">Open</string>
@@ -4527,8 +4505,7 @@
<string name="rail_sync">Syncthing</string>
<string name="downloads_settings">Download settings</string>
<string name="dev_tools_title">Developer tools</string>
<string name="dev_tools_show">Show developer tools</string>
<string name="dev_tools_hint">Show advanced testing and diagnostics controls.</string>
<string name="dev_tools_hint">Agent, graphics logs and other tools for testing DroidDeck</string>
<string name="sheet_lip">Options</string>
<string name="sheet_scope_steam">Steam defaults · used each time Steam starts</string>
<string name="sheet_scope_desktop">Desktop defaults · used each time Desktop starts</string>
@@ -1,57 +0,0 @@
package com.droiddeck.launcher.core
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
class WirelessAdbReconnectTest {
private val local = WirelessAdbFix.LOOPBACK
private val old = 35555
private val current = 36666
@Test
fun localPortRotationWithoutMdnsUsesPairedKeyFallback() {
var scanned = false
val result = WirelessAdbFix.chooseConnectPort(
local, old, property = { old }, advertised = { accept ->
check(!accept(old))
null
}, answers = { it == old }, authenticatedLocal = {
scanned = true
current
},
)
assertEquals(current, result)
check(scanned)
}
@Test
fun localPortFromPropertyAvoidsDiscoveryAndScan() {
val result = WirelessAdbFix.chooseConnectPort(
local, old, property = { current }, advertised = { error("unexpected NSD") },
answers = { it == current }, authenticatedLocal = { error("unexpected scan") },
)
assertEquals(current, result)
}
@Test
fun staleLocalAdvertisementDoesNotBlockNextValidPort() {
val result = WirelessAdbFix.chooseConnectPort(
local, old, property = { null },
advertised = { accept -> listOf(old, 35000, current).firstOrNull(accept) },
answers = { it == current }, authenticatedLocal = { error("unexpected scan") },
)
assertEquals(current, result)
}
@Test
fun remoteSavedConnectNeverUsesLocalPropertyOrScan() {
val result = WirelessAdbFix.chooseConnectPort(
"203.0.113.10", old, property = { error("unexpected local property") },
advertised = { accept -> listOf(old).firstOrNull(accept) },
answers = { error("unexpected local reachability check") },
authenticatedLocal = { error("unexpected loopback scan") },
)
assertNull(result)
}
}
@@ -1,38 +0,0 @@
package com.droiddeck.launcher.core
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class WirelessPairingKeypadTest {
@Test fun sixDigitsKeepLeadingZeroesAndRejectExtraKeys() {
val pad = WirelessPairingKeypad()
assertFalse(pad.ready)
listOf(0, 0, 1, 2, 3, 4).forEach { assertTrue(pad.press(it)) }
assertTrue(pad.ready)
assertFalse(pad.press(5))
assertFalse(pad.press(WirelessPairingKeypad.SUBMIT))
assertEquals("001234", pad.digits)
}
@Test fun deleteLetsYouCorrectTheLastDigit() {
val pad = WirelessPairingKeypad()
assertFalse(pad.press(WirelessPairingKeypad.DELETE))
"321987".forEach { pad.press(it.digitToInt()) }
assertTrue(pad.press(WirelessPairingKeypad.DELETE))
assertFalse(pad.ready)
assertEquals("32198–", pad.display)
assertTrue(pad.press(6))
assertEquals("321986", pad.digits)
}
@Test fun startingAnotherAttemptClearsTheCode() {
val pad = WirelessPairingKeypad()
assertFalse(pad.press(-1))
pad.press(7)
pad.clear()
assertEquals("", pad.digits)
assertEquals("––––––", pad.display)
}
}
@@ -1,6 +1,5 @@
package com.droiddeck.launcher.files
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
@@ -38,26 +37,4 @@ class AllFilesAccessTest {
assertFalse(AllFilesAccess.covers("/storage/1A2B-3C4D/Android/obb/com.droiddeck.launcher"))
assertFalse(AllFilesAccess.covers("/data/user/0/com.droiddeck.launcher/files"))
}
@Test
fun stateNamesWhatTheReportShows() {
assertEquals("not needed", AllFilesAccess.state(sdk = 29) { false })
assertEquals("missing", AllFilesAccess.state(sdk = 34) { false })
assertEquals("granted", AllFilesAccess.state(sdk = 34) { true })
}
@Test
fun sharedStorageMayHideFilesOnlyWithoutAccess() {
assertTrue(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 34) { false })
assertTrue(AllFilesAccess.mayHideFilesIn("/storage/1A2B-3C4D/Games", sdk = 34) { false })
assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 34) { true })
assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0", sdk = 29) { false })
}
@Test
fun appFoldersAndPrivateStorageNeverHideFiles() {
assertFalse(AllFilesAccess.mayHideFilesIn("/storage/emulated/0/Android/data/com.droiddeck.launcher/files", sdk = 34) { false })
assertFalse(AllFilesAccess.mayHideFilesIn("/data/user/0/com.droiddeck.launcher/files/Games", sdk = 34) { false })
assertFalse(AllFilesAccess.mayHideFilesIn("/mnt/media_rw/1A2B-3C4D", sdk = 34) { false })
}
}
@@ -22,7 +22,6 @@ import org.robolectric.annotation.Config
@Config(sdk = [33], qualifiers = "w960dp-h540dp-land")
class SteamIntegrationGroupTest {
@get:Rule val compose = createRobolectricComposeRule()
private val focus = mutableStateOf<Feature?>(null)
private val state = mutableStateOf(SteamIntegration.State())
private val requests = mutableListOf<Feature>()
private var appInfo = 0
@@ -30,27 +29,12 @@ class SteamIntegrationGroupTest {
private fun stateIs(value: String) = SemanticsMatcher.expectValue(SemanticsProperties.StateDescription, value)
private fun show(collapsible: Boolean = false) = compose.setContent {
private fun show() = compose.setContent {
DroidDeckTheme {
SteamIntegrationGroup(
state.value, focus = focus.value, onFeature = { requests.add(it) },
onAppInfo = { appInfo++ }, onLocation = { location++ }, collapsible = collapsible,
)
SteamIntegrationGroup(state.value, onFeature = { requests.add(it) }, onAppInfo = { appInfo++ }, onLocation = { location++ })
}
}
@Test fun overviewIntegrationCanBeManagedOrOpenedByFeature() {
show(collapsible = true)
val wifi = compose.onNodeWithTag("integration-action-wifi")
wifi.assertDoesNotExist()
compose.onNodeWithText("Manage").performClick()
wifi.assertExists()
compose.onNodeWithText("Close").performClick()
wifi.assertDoesNotExist()
compose.runOnIdle { focus.value = Feature.WIFI }
wifi.assertExists()
}
@Test fun everySwitchRequestsOnlyItsOwnFeature() {
state.value = SteamIntegration.State(home = true)
show()
+4 -4
View File
@@ -40,7 +40,7 @@ Player controls and observations work over authorized ADB on any build: `state`,
`resume`, `wait`, `launch`, `quit`, `focus`, `input`, `ui`, `logs`, `screenshot`, `record`, `pacing`,
`thermal`, `displays`, `wake`, `glasses` (except `glasses raw`), and `access`.
**Setup > Developer > droiddeckctl** is off by default in every build, including debug builds.
**Setup > Developer > Debugging tools** is off by default in every build, including debug builds.
It enables `run`, `guest`, `cdp`, all `env` operations, `override`, `prefs`, and `glasses raw`. The
toggle switches directly without a confirmation dialog. The bridge refuses to change it through `ui`
or preference writes. The existing preference key, `setting-agent-commands` test tag, JSON command
@@ -233,7 +233,7 @@ and returns its exit code with the last 160 KiB of stdout and stderr (`--timeout
`cloud down|up <store> <id>` syncs one game's cloud saves now, without launching it, with the
`result`, `files`, `bytes`, `reason`, `conflicts` and `detail` the game page shows; `--force` takes
that side over conflicts. The store id is the one in the game's install record (`library` shows
it). Both need Setup > Developer > droiddeckctl.
it). Both need Setup > Developer > Debugging tools.
`input pad` writes to the session's virtual pad, the one the guest sees, and never reaches the app's
own key handling. To test how DroidDeck's own screens treat a controller (menu focus and outlines,
@@ -243,13 +243,13 @@ controller, and presses the buttons in order: `a b x y lb rb select start guide
d-pad `up down left right`. `--hold` (120 ms) is how long each stays down and `--gap` (400 ms) the
pause after it; a d-pad press always waits at least 20 ms, so Android sees each release before
the next press. The device exists only while the command runs, takes about a second to appear, and
works without a session or Setup > Developer > droiddeckctl. Its name does not start with
works without a session or Setup > Developer > Debugging tools. Its name does not start with
`uinput-`, which the app treats as a system virtual device. `UINPUT_UNAVAILABLE` and `UINPUT_FAILED`
mean the same as for `input pen`.
`input pen` does not go through the app. It registers a virtual pen with `adb shell uinput -`, so
Android's own input reader makes the stylus events, as for a built-in pen, and it works on whatever
is on screen, without a session or Setup > Developer > droiddeckctl. Positions are fractions of
is on screen, without a session or Setup > Developer > Debugging tools. Positions are fractions of
the screen as shown; `dumpsys input` gives the frame, rotation and size of the display Android maps
internal touchscreens to. `hover` comes near and glides to `--to`; `tap`, `stroke` and `button`
hover for `--hover-ms` (80) before and after the touch or the button press. Each takes
+1 -1
View File
@@ -35,6 +35,6 @@ plays without sound rather than louder, and plays nothing if that fails too. Cov
Selecting a movie here sets `bootMovieApplyNext`, so the next session stages the movie as `bigpicture_startup.webm` and
points both sections at it, over a movie Steam had picked; otherwise a movie picked in Steam is left alone and taken over as
the choice here without being staged over Steam's own setting. Settings > Boot movie > Installed has a report button that
writes what Steam and DroidDeck know to `Download/DroidDeck/boot-movie-report.txt`; it only shows while droiddeckctl is on.
writes what Steam and DroidDeck know to `Download/DroidDeck/boot-movie-report.txt`; it only shows while Debugging tools is on.
A movie larger than 1920x1080 (4K and the like) is never copied or remuxed as it is: import and staging always convert it
(the converter scales to at most 1280x720), because such movies have made Steam crash while it starts.
+1 -1
View File
@@ -325,7 +325,7 @@ or repeatedly hit a path the wrappers cannot resolve.
### Opt-in tracer profiling
With **Setup > Developer > droiddeckctl** enabled, queue profiling for one session:
With **Setup > Developer > Debugging tools** enabled, queue profiling for one session:
```sh
tools/droiddeckctl proot-profile enable --slow-us 1000
+1 -1
View File
@@ -499,7 +499,7 @@ handed-off daemons. With only the hook's handoffs off (`DD_SPAWN_DAEMONS=0`), RE
runs in workers (`GuestWorkers.enabled`: the native userland, Android 11+, and the
`childProcessHandoff` session preference, on by default). It does not block Steam. Turning the
preference off (`droiddeckctl prefs set session childProcessHandoff false --type bool`, with
Setup > Developer > droiddeckctl on; see `docs/agent-control.md`) brings back
Setup > Developer > Debugging tools on; see `docs/agent-control.md`) brings back
the old behavior and the old requirement.
### C. Plan
+2 -4
View File
@@ -45,8 +45,7 @@ Links of the form `droiddeck://settings/<section>` open a Settings section direc
| Use as Home screen | Settings › Launcher (`droiddeck://settings/launcher`) | home screen, launcher |
| Launcher orientation | Settings › Launcher (`droiddeck://settings/launcher`) | rotate, portrait |
| Session orientation | Settings › Launcher (`droiddeck://settings/launcher`) | rotate, portrait |
| Launcher fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | status bar, navigation bar, portrait |
| Session fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | status bar, navigation bar, portrait |
| Fullscreen | Settings › Launcher (`droiddeck://settings/launcher`) | |
| Swipe between pages | Settings › Launcher (`droiddeck://settings/launcher`) | gesture |
| Controller haptics | Settings › Launcher (`droiddeck://settings/launcher`) | vibration, rumble |
| Dual screen launcher | Settings › Launcher (`droiddeck://settings/launcher`) | thor, second screen, bottom screen |
@@ -59,8 +58,7 @@ Links of the form `droiddeck://settings/<section>` open a Settings section direc
| Game debug logs | Settings › Developer (`droiddeck://settings/developer`) | logs, wine, proton |
| Enhanced diagnostics for next session | Settings › Developer (`droiddeck://settings/developer`) | logs |
| Reset all settings | Settings › Developer (`droiddeck://settings/developer`) | default |
| Show developer tools | Settings › Developer (`droiddeck://settings/developer`) | agent, ai, claude, codex |
| droiddeckctl | Settings › Developer (`droiddeck://settings/developer`) | debugging tools, cli |
| Developer tools | Settings › Developer (`droiddeck://settings/developer`) | agent, ai, claude, codex |
| Detailed graphics logs | Settings › Developer (`droiddeck://settings/developer`) | logs, gpu |
## Tabs
+1 -1
View File
@@ -600,7 +600,7 @@ def unpack_logs(archive: Path, destination: Path, session_id: str) -> None:
def require_commands(adb: str, serial: str) -> dict:
access = checked(provider_call(adb, serial, "access"), "ACCESS_FAILED")
if access.get("commands") is not True:
raise ControlError("droiddeckctl is off: turn on Setup > Developer > droiddeckctl on the device",
raise ControlError("Debugging tools are off: turn on Setup > Developer > Debugging tools on the device",
"AGENT_COMMANDS_DISABLED")
return access
+6 -2
View File
@@ -273,10 +273,14 @@ static int copy_of_memfd(int src, int flags) {
if (st.st_mode & 0111) copy = call_orig_syscall(SYS_memfd_create, (unsigned long)name, mfd_flags | MFD_EXEC, 0, 0, 0, 0);
if (copy < 0) copy = call_orig_syscall(SYS_memfd_create, (unsigned long)name, mfd_flags, 0, 0, 0, 0);
if (copy < 0) return -1;
struct stat made;
int ok = copy_memfd_contents(src, (int)copy, st.st_size) == 0 &&
call_orig_syscall(SYS_lseek, (unsigned long)copy, 0, SEEK_SET, 0, 0, 0) == 0 &&
call_orig_syscall(SYS_fchmod, (unsigned long)copy, st.st_mode & 07777, 0, 0, 0, 0) == 0 &&
call_orig_syscall(SYS_fcntl, (unsigned long)copy, F_ADD_SEALS, (unsigned long)(seals | F_SEAL_WRITE | F_SEAL_GROW | F_SEAL_SHRINK), 0, 0, 0) == 0;
call_orig_syscall(SYS_fstat, (unsigned long)copy, (unsigned long)&made, 0, 0, 0, 0) == 0;
if (ok && (made.st_mode & 07777) != (st.st_mode & 07777) &&
call_orig_syscall(SYS_fchmod, (unsigned long)copy, st.st_mode & 07777, 0, 0, 0, 0) != 0)
ok = errno == EACCES || errno == EPERM;
ok = ok && call_orig_syscall(SYS_fcntl, (unsigned long)copy, F_ADD_SEALS, (unsigned long)(seals | F_SEAL_WRITE | F_SEAL_GROW | F_SEAL_SHRINK), 0, 0, 0) == 0;
if (!ok) {
call_orig_syscall(SYS_close, (unsigned long)copy, 0, 0, 0, 0, 0);
return -1;
+1 -1
View File
@@ -373,7 +373,7 @@ class DroiddeckctlTest(FakeAdbTest):
code, out = self.run_ctl("run", "/usr/bin/sh", "--", "-c", "true")
self.assertEqual(7, code)
self.assertEqual("AGENT_COMMANDS_DISABLED", out["error"]["code"])
self.assertIn("Setup > Developer > droiddeckctl", out["error"]["message"])
self.assertIn("Setup > Developer > Debugging tools", out["error"]["message"])
self.assertEqual(["access"], [c.get("method") for c in self.calls()])
def test_override_checks_names_before_pushing_any_file(self):
+57 -2
View File
@@ -93,6 +93,7 @@ int main(int argc, char **argv) {
}
snprintf(path, sizeof(path), "/proc/self/fd/%d", src);
report("keep-cloexec-off", open(path, O_RDONLY), src);
printf("syscall-fchmod\t%d\n", syscall(SYS_fchmod, src, 0) == 0 ? 0 : errno);
report("write", open(path, O_RDWR), src);
int foreign = memfd_create("probe-foreign", 0);
fchmod(foreign, 0);
@@ -138,6 +139,37 @@ int main(int argc, char **argv) {
"""
CHMOD_REFUSED = r"""
#define _GNU_SOURCE
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/syscall.h>
long syscall(long number, ...) {
va_list ap;
va_start(ap, number);
long a[6];
for (int i = 0; i < 6; i++) a[i] = va_arg(ap, long);
va_end(ap);
long (*next)(long, ...) = (long (*)(long, ...))dlsym(RTLD_NEXT, "syscall");
if (number == SYS_fchmod) {
char link[64], target[64];
snprintf(link, sizeof(link), "/proc/self/fd/%ld", a[0]);
long n = next(SYS_readlinkat, AT_FDCWD, link, target, sizeof(target) - 1);
if (n > 7 && strncmp(target, "/memfd:", 7) == 0) {
errno = EACCES;
return -1;
}
}
return next(number, a[0], a[1], a[2], a[3], a[4], a[5]);
}
"""
class NativeHookMemfdReopenTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
@@ -153,12 +185,16 @@ class NativeHookMemfdReopenTest(unittest.TestCase):
(tmp / "probe.c").write_text(PROBE)
cls.probe = tmp / "probe"
subprocess.run([cls.cc, "-O1", "-o", str(cls.probe), str(tmp / "probe.c")], check=True)
(tmp / "chmod_refused.c").write_text(CHMOD_REFUSED)
cls.chmod_refused_lib = tmp / "chmod_refused.so"
subprocess.run([cls.cc, "-shared", "-fPIC", "-O1", "-o", str(cls.chmod_refused_lib), str(tmp / "chmod_refused.c"), "-ldl"], check=True)
cls.root = tmp / "root"
cls.root.mkdir()
cls.plain = cls.root / "plain"
cls.bare = cls.run_probe(False)
cls.kernel_openat2 = cls.bare["kernel-openat2"] == ["1"]
cls.hooked = cls.run_probe(True, *(["how"] if cls.kernel_openat2 else []))
cls.chmod_refused = cls.run_probe(True, preload_after=cls.chmod_refused_lib)
@classmethod
def tearDownClass(cls):
@@ -166,10 +202,11 @@ class NativeHookMemfdReopenTest(unittest.TestCase):
cls.tmp.cleanup()
@classmethod
def run_probe(cls, hook, *extra):
def run_probe(cls, hook, *extra, preload_after=None):
if cls.plain.exists():
os.chmod(cls.plain, 0o600)
hook_env = {"DDNATV_ROOT": str(cls.root), "LD_PRELOAD": str(cls.hook)} if hook else {}
preload = str(cls.hook) + (f":{preload_after}" if preload_after else "")
hook_env = {"DDNATV_ROOT": str(cls.root), "LD_PRELOAD": preload} if hook else {}
env = {k: v for k, v in os.environ.items() if k not in ("LD_PRELOAD", "DDNATV_ROOT")}
if cls.prefix:
cmd = list(cls.prefix) + [arg for key, value in hook_env.items() for arg in ("-E", f"{key}={value}")]
@@ -201,6 +238,24 @@ class NativeHookMemfdReopenTest(unittest.TestCase):
self.assertEqual("100003", offset)
self.assertEqual("0", mode)
def test_a_copy_whose_mode_cannot_be_set_still_answers_the_reopen(self):
self.assertEqual(["0"], self.hooked["syscall-fchmod"])
self.assertEqual([str(errno.EACCES)], self.chmod_refused["syscall-fchmod"])
want = self.chmod_refused["want"][0]
for form in ("self", "thread", "pid", "dev"):
for how in ("open", "openat", "syscall"):
with self.subTest(form=form, how=how):
status, total, seals, name, cloexec, offset, mode, unwritable, fixed = self.chmod_refused[f"{form}-{how}"]
self.assertEqual("ok", status)
self.assertEqual(want, total)
self.assertEqual(str(0x2 | 0x4 | 0x8), seals)
self.assertEqual("1", unwritable)
self.assertEqual("1", fixed)
self.assertEqual("/memfd:probe-module", name)
self.assertEqual("1", cloexec)
self.assertEqual(["err", str(errno.EACCES)], self.chmod_refused["write"])
self.assertEqual(["err", str(errno.EACCES)], self.chmod_refused["plain-file"])
def test_close_on_exec_follows_the_open_flags(self):
self.assertEqual("0", self.hooked["keep-cloexec-off"][4])