Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion v2/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion v2/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ serde_json = "1"
tokio = { version = "1", features = ["process", "io-util", "time", "macros", "rt-multi-thread", "sync", "fs"] }

# Error handling
anyhow = "1"
thiserror = "1"

# Parsing
Expand Down
14 changes: 0 additions & 14 deletions v2/src-tauri/src/adb/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,6 @@ impl SubprocessAdb {
discover_adb_binary().map(Self::new)
}

/// Back-compat alias for the old PATH-only discovery.
pub fn from_path() -> Option<Self> {
Self::discover()
}

pub fn binary(&self) -> &PathBuf {
&self.binary
}

pub fn with_timeout(mut self, dur: Duration) -> Self {
self.command_timeout = dur;
self
}

async fn run(&self, args: &[&str]) -> AdbResult<AdbOutput> {
self.run_with_timeout(args, self.command_timeout).await
}
Expand Down
8 changes: 4 additions & 4 deletions v2/src-tauri/src/adb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ pub use driver::{AdbDriver, AdbError, AdbOutput, AdbResult, SubprocessAdb};
pub use install::{adb_path_in_install_root, install_platform_tools, InstallError};
pub use parse::{
parse_active_audio_device, parse_device_list, parse_disabled_packages_output,
parse_display_mode, parse_dumpsys_meminfo, parse_hardware_properties_temp,
parse_installed_packages_output, parse_ls_output, parse_meminfo_summary, parse_storage_info,
parse_thermal_max_celsius, parse_total_pss_by_process, parse_usage_stats, AppUsage,
DisplayMode, FileEntry, RamInfo, StorageInfo,
parse_display_mode, parse_hardware_properties_temp, parse_installed_packages_output,
parse_ls_output, parse_meminfo_summary, parse_storage_info, parse_thermal_max_celsius,
parse_total_pss_by_process, parse_usage_stats, AppUsage, DisplayMode, FileEntry, RamInfo,
StorageInfo,
};
pub use scan::{local_subnet_prefix, scan_subnet, ScanHit};
2 changes: 1 addition & 1 deletion v2/src-tauri/src/adb/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn parse_disabled_packages_output(output: &str) -> Vec<String> {
///
/// Per v1's Get-AppMemoryMap learnings: per-process query (`dumpsys meminfo <pkg>`)
/// is unreliable across Android versions; the system-wide section is robust.
pub fn parse_dumpsys_meminfo(meminfo: &str) -> HashMap<String, f64> {
fn parse_dumpsys_meminfo(meminfo: &str) -> HashMap<String, f64> {
static ROW: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r"^\s*([\d,]+)K:\s+([a-zA-Z0-9_.]+)").unwrap());

Expand Down
7 changes: 0 additions & 7 deletions v2/src-tauri/src/engine/app_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ use serde::{Deserialize, Serialize};
use super::detection::DeviceType;
use super::types::AppEntry;

/// A named app list — one of common / shield / googletv (or any user/community add).
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AppList {
pub name: String,
pub entries: Vec<AppEntry>,
}

/// All loaded app lists, indexed for lookup.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct AppListBundle {
Expand Down
2 changes: 1 addition & 1 deletion v2/src-tauri/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod safety;
pub mod snapshot;
pub mod types;

pub use app_lists::{AppList, AppListBundle};
pub use app_lists::AppListBundle;
pub use detection::{detect_device_type, DeviceType};
pub use launcher::{
is_last_enabled_home_handler, is_valid_package_name, launcher_catalog, launcher_rows,
Expand Down
15 changes: 0 additions & 15 deletions v2/src-tauri/src/engine/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ pub enum RiskTier {
Advanced,
}

impl RiskTier {
/// Parse a risk-tier label permissively. Accepts v1's strings
/// ("Safe" / "Medium" / "High Risk" / "Advanced") case-insensitively.
/// Defaults to `Medium` for unrecognized strings — safer than `Safe`.
pub fn parse_label(s: &str) -> Self {
match s.to_ascii_lowercase().as_str() {
"safe" => Self::Safe,
"medium" => Self::Medium,
"advanced" => Self::Advanced,
"high" | "high risk" => Self::High,
_ => Self::Medium,
}
}
}

/// One entry in the bloat list — direct port of v1's app schema.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AppEntry {
Expand Down
2 changes: 1 addition & 1 deletion v2/src/lib/components/FilesTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
background: none;
border: none;
padding: 0;
color: var(--fg);
color: var(--fg-primary);
cursor: pointer;
font-size: 0.95rem;
}
Expand Down
4 changes: 0 additions & 4 deletions v2/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,3 @@ export function deviceTypeLabel(t: DeviceType): string {
return "Unknown";
}
}

export function riskBadgeClass(r: RiskTier): string {
return `risk-${r}`;
}
1 change: 0 additions & 1 deletion v2/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { onMount } from "svelte";
import { api } from "$lib/api";
import type { Device, DeviceReport } from "$lib/types";
Expand Down
43 changes: 0 additions & 43 deletions v2/src/routes/devices/[serial]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2026,9 +2026,6 @@
margin: 0.4rem 0;
padding-left: 1.2rem;
}
.preview-disclaimer {
margin-top: 0 !important;
}
.header-actions {
display: flex;
gap: 0.8rem;
Expand Down Expand Up @@ -2098,27 +2095,6 @@
background: var(--bg-button);
color: var(--fg-secondary);
}
.state-badge {
display: inline-block;
font-size: 0.74rem;
padding: 0.15rem 0.55rem;
border-radius: 4px;
letter-spacing: 0.04em;
text-transform: uppercase;
font-family: ui-monospace, monospace;
}
.state-badge.state-enabled {
background: var(--ok-surface);
color: var(--ok);
}
.state-badge.state-disabled {
background: var(--warn-surface-2);
color: var(--warn);
}
.state-badge.state-missing {
background: var(--bg-muted);
color: var(--fg-faint);
}
.action-message {
margin-top: 0.4rem;
padding: 0.4rem 0.6rem;
Expand Down Expand Up @@ -2294,14 +2270,6 @@
}
.type-cell { white-space: nowrap; }
.type-cell .tag { white-space: nowrap; }
.checkbox-row {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
color: var(--fg-secondary);
cursor: pointer;
}
.legend {
display: flex;
align-items: center;
Expand All @@ -2314,17 +2282,6 @@
border-radius: 4px;
line-height: 1.4;
}
.install-output {
background: var(--bg-inset);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.7rem 1rem;
margin: 0.8rem 0;
font-family: ui-monospace, monospace;
font-size: 0.82rem;
white-space: pre-wrap;
word-break: break-word;
}
code {
background: var(--bg-inset);
border: 1px solid var(--border);
Expand Down
Loading