Is it possible, with macOS/iOS to do what Windows/Android does?
How do you generate a list of every app you've put in every folder on
your iOS home screen (similar to how I just did it on Android)?
Is it possible, with macOS/iOS to do what Windows/Android does?
On Sat, 21 Nov 2026 01:41:04 -0400, Maria Sophia wrote:
Is it possible, with macOS/iOS to do what Windows/Android does?
You would need an actual rCLcomputerrCY to be able to do that, and if you remember, Apple dropped the rCLComputerrCY part from its name decades ago.
On 2026-11-20 22:41, Maria Sophia wrote:
How do you generate a list of every app you've put in every folder on
your iOS home screen (similar to how I just did it on Android)?
Is it possible, with macOS/iOS to do what Windows/Android does?
The correct answer is:
Who the hell cares?
On 2026-11-21 2:14 a.m., Alan wrote:
On 2026-11-20 22:41, Maria Sophia wrote:
How do you generate a list of every app you've put in every
folder on your iOS home screen (similar to how I just did it on
Android)?
Is it possible, with macOS/iOS to do what Windows/Android does?
The correct answer is:
Who the hell cares?
+1
Maria Sophia searches on the Internet for "things that nobody does
that can be accomplished in Android but not iOS" and then asks us
how to do it.
Is it possible, with macOS/iOS to do what Windows/Android does?
You would need an actual |computeri to be able to do that, and if you remember, Apple dropped the |Computeri part from its name decades ago.
Lawrence D|+Oliveiro wrote:
Is it possible, with macOS/iOS to do what Windows/Android does?
You would need an actual -|computer-i to be able to do that, and if
you remember, Apple dropped the -|Computer-i part from its name
decades ago.
That's not only presciently funny in that iOS was designed, from
the very start, to be so crippled as to keep people inside the
Apple ecosystem.
Is there even a way to list all iOS apps to something as simple as
a file?
"things that nobody does
CrudeSausage wrote:
"things that nobody does
The question here is valid, as it's useful for inventory audits & archival.
Q: Is there a way to list all apps in each homescreen folder or not?
A: ?
Is there even a way to list all iOS apps to something as simple as a file?
NOTE:
I'm well aware that Apple zealots typically respond "yes" (like we counted nospam as having done over a hundred times in a 3-year span), but just
saying "yes" without showing some indication of how, is more telling than
it appears to be, because what it really means is the respondent hates that Apple products are so crippled that they can't do the simplest of things
that every other common consumer operating system has no problem doing.
I'm well aware that Apple zealots typically respond "yes" ...
CrudeSausage wrote:
"things that nobody does
The question here is valid, as it's useful for inventory audits &
archival.
Q: Is there a way to list all apps in each homescreen folder or
not? A: ?
Is there even a way to list all iOS apps to something as simple as
a file?
NOTE:
I'm well aware that Apple zealots typically respond "yes" (like we
counted nospam as having done over a hundred times in a 3-year
span), but just saying "yes" without showing some indication of
how, is more telling than it appears to be, because what it really
means is the respondent hates that Apple products are so crippled
that they can't do the simplest of things that every other common
consumer operating system has no problem doing.
I'm well aware that Apple zealots typically respond "yes" ...
But if the answer is no, they tend not to respond at all ...
Lawrence D-oOliveiro wrote:
I'm well aware that Apple zealots typically respond "yes" ...
But if the answer is no, they tend not to respond at all ...
Hi Lawrence,
Thanks for that succinct and honest-to-the-core bit of sagacious
insight.
One time, oh, I can't count the years, I asked the iOS newsgroups
how to graphically display in real time the signal strength of all
the nearby wi-fi access points, as this is something every other
OS easily does. a. The immediate answer came back as "yes", but
with no explanation. b. Hmmm..., well, it seems like a proper
answer, right?
c. I mean, how can iOS be so brain dead as to not be able to do
that?
And yet, it can't.
Snit (Michael Glasser, Brock McNuggets, et al.) pasted, over 200
times! during that time that of course iOS could do something
"even that simple".
To "prove it", Snit proudly created this video showing that iOS
was capable of something as trivially easy as graphing signal
strength over time for all the nearby Wi-Fi (and cellular, by the
way) access points. <https://youtu.be/7QaABa6DFIo> iKooks can't
even see the fatal flaw!
"%PS_SANITIZE%" echo $raw = $env:SELECTED_LABEL
"%PS_SANITIZE%" echo $s = [regex]::Replace($raw, '[\\/:*?"<>|() ]+', '_')
"%PS_SANITIZE%" echo $s = $s.Trim('_')
"%PS_SANITIZE%" echo if ([string]::IsNullOrWhiteSpace($s)) { $s = "nova_target" }
"%PS_SANITIZE%" echo [System.IO.File]::WriteAllText($env:SAFE_NAME_FILE, $s, (New-Object System.Text.UTF8Encoding($false)))
"%SQL_QUERY_FILE%" echo .header on
"%SQL_QUERY_FILE%" echo .mode tabs
"%SQL_QUERY_FILE%" echo SELECT f._id AS item_id,
"%SQL_QUERY_FILE%" echo f.title AS display_name,
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN f.iconPackage IS NOT NULL AND LENGTH(TRIM(f.iconPackage^)^) ^> 0 THEN TRIM(f.iconPackage^)
"%SQL_QUERY_FILE%" echo WHEN INSTR(f.intent, 'component='^) ^> 0 THEN
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), '/'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), '/'^) - 1^)
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), ';'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), ';'^) - 1^)
"%SQL_QUERY_FILE%" echo ELSE SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^)
"%SQL_QUERY_FILE%" echo END
"%SQL_QUERY_FILE%" echo WHEN INSTR(f.intent, 'package='^) ^> 0 THEN
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), ';'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), ';'^) - 1^)
"%SQL_QUERY_FILE%" echo ELSE SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^)
"%SQL_QUERY_FILE%" echo END
"%SQL_QUERY_FILE%" echo ELSE ''
"%SQL_QUERY_FILE%" echo END AS package_name,
"%SQL_QUERY_FILE%" echo f.intent
"%SQL_QUERY_FILE%" echo FROM favorites f
"%SQL_QUERY_FILE%" echo WHERE !SQL_WHERE!
"%SQL_QUERY_FILE%" echo ORDER BY !SQL_ORDER!;
"%PS_FORMAT%" echo $rawFile = $env:RAW_OUT
"%PS_FORMAT%" echo $cleanFile = $env:CLEAN_OUT
"%PS_FORMAT%" echo $logFile = $env:LOG_OUT
"%PS_FORMAT%" echo $label = $env:SELECTED_LABEL
"%PS_FORMAT%" echo $rows = Import-Csv -LiteralPath $rawFile -Delimiter "`t"
"%PS_FORMAT%" echo $lines = $rows ^| Select-Object package_name, display_name ^| Format-Table -AutoSize ^| Out-String -Width 4096
"%PS_FORMAT%" echo $tableLines = @($lines -split "`r?`n" ^| ForEach-Object { $_.TrimEnd() } ^| Where-Object { $_ -ne '' })
"%PS_FORMAT%" echo $header = " $label"
"%PS_FORMAT%" echo if ($label -match '^pane\s+(\d+)\s+-\s+(.+)$') { $header = (' pane {0} folder "{1}"' -f $Matches[1], $Matches[2]) }
"%PS_FORMAT%" echo $body = ($tableLines ^| ForEach-Object { ' ' + $_ }) -join "`r`n"
"%PS_FORMAT%" echo $clean = $header + "`r`n" + $body + "`r`n"
"%PS_FORMAT%" echo $utf8 = New-Object System.Text.UTF8Encoding($false)
"%PS_FORMAT%" echo [System.IO.File]::WriteAllText($cleanFile, $clean, $utf8)
"%PS_FORMAT%" echo $timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
"%PS_FORMAT%" echo $entry = "`r`n============================================================`r`nExport: $timestamp`r`n$clean"
"%PS_FORMAT%" echo [System.IO.File]::AppendAllText($logFile, $entry, $utf8)
"!SQL_NOVA_PKGS!" echo SELECT DISTINCT package_name
"!SQL_NOVA_PKGS!" echo FROM (
"!SQL_NOVA_PKGS!" echo SELECT CASE
"!SQL_NOVA_PKGS!" echo WHEN iconPackage IS NOT NULL AND LENGTH(TRIM(iconPackage^)^) ^> 0 THEN TRIM(iconPackage^)
"!SQL_NOVA_PKGS!" echo WHEN INSTR(intent, 'component='^) ^> 0 THEN
"!SQL_NOVA_PKGS!" echo CASE
"!SQL_NOVA_PKGS!" echo WHEN INSTR(SUBSTR(intent, INSTR(intent, 'component='^) + 10^), '/'^) ^> 0 THEN SUBSTR(
"!SQL_NOVA_PKGS!" echo SUBSTR(intent, INSTR(intent, 'component='^) + 10^),
"!SQL_NOVA_PKGS!" echo 1,
"!SQL_NOVA_PKGS!" echo INSTR(SUBSTR(intent, INSTR(intent, 'component='^) + 10^), '/'^) - 1
"!SQL_NOVA_PKGS!" echo ^)
"!SQL_NOVA_PKGS!" echo ELSE SUBSTR(intent, INSTR(intent, 'component='^) + 10^)
"!SQL_NOVA_PKGS!" echo END
"!SQL_NOVA_PKGS!" echo ELSE ''
"!SQL_NOVA_PKGS!" echo END AS package_name
"!SQL_NOVA_PKGS!" echo FROM favorites
"!SQL_NOVA_PKGS!" echo )
"!SQL_NOVA_PKGS!" echo WHERE LENGTH(package_name^) ^> 0;
"!PS_DIFF_3P!" echo $adbExe = $env:ADB_EXE
"!PS_DIFF_3P!" echo $adbTarget = $env:RUN_ADB_TARGET
"!PS_DIFF_3P!" echo $resolveLabels = ($env:DO_RESOLVE_LABELS -eq '1')
"!PS_DIFF_3P!" echo $pm3Lines = Get-Content -LiteralPath $env:PM_3P_FILE -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo $installed3 = [System.Collections.Generic.HashSet[string]]::new([System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo foreach ($line in $pm3Lines) {
"!PS_DIFF_3P!" echo $p = ($line -replace '\r', '').Trim()
"!PS_DIFF_3P!" echo if ($p.StartsWith('package:')) { $p = $p.Substring(8).Trim() }
"!PS_DIFF_3P!" echo if (-not [string]::IsNullOrWhiteSpace($p)) { [void]$installed3.Add($p) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $novaLines = Get-Content -LiteralPath $env:NOVA_PKGS_FILE -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo $inNova = [System.Collections.Generic.HashSet[string]]::new([System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo foreach ($n in $novaLines) {
"!PS_DIFF_3P!" echo $pkg = ($n -replace '\r', '').Trim()
"!PS_DIFF_3P!" echo if (-not [string]::IsNullOrWhiteSpace($pkg)) { [void]$inNova.Add($pkg) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $missingList = [System.Collections.Generic.List[string]]::new()
"!PS_DIFF_3P!" echo foreach ($pkg in $installed3) {
"!PS_DIFF_3P!" echo if (-not $inNova.Contains($pkg)) { [void]$missingList.Add($pkg) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $missing = @($missingList.ToArray())
"!PS_DIFF_3P!" echo [System.Array]::Sort($missing, [System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo $aaptCmd = if ($resolveLabels) { Get-Command aapt -ErrorAction SilentlyContinue } else { $null }
"!PS_DIFF_3P!" echo $idx = 0
"!PS_DIFF_3P!" echo $results = foreach ($pkg in $missing) {
"!PS_DIFF_3P!" echo $idx++
"!PS_DIFF_3P!" echo $label = ''
"!PS_DIFF_3P!" echo if ($resolveLabels) {
"!PS_DIFF_3P!" echo if (($idx %% 10) -eq 1 -or $idx -eq $missing.Count) {
"!PS_DIFF_3P!" echo Write-Host ("Resolving titles: {0}/{1} ({2})..." -f $idx, $missing.Count, $pkg)
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $dumpLines = ^& $adbExe -s $adbTarget shell dumpsys package $pkg 2^>$null
"!PS_DIFF_3P!" echo foreach ($dl in $dumpLines) {
"!PS_DIFF_3P!" echo if ($dl -match 'nonLocalizedLabel="([^"]+)"') { $label = $Matches[1].Trim() }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo if ([string]::IsNullOrWhiteSpace($label) -and $aaptCmd) {
"!PS_DIFF_3P!" echo $apkPathLine = (^& $adbExe -s $adbTarget shell pm path $pkg 2^>$null ^| Select-Object -First 1)
"!PS_DIFF_3P!" echo if ($apkPathLine -and $apkPathLine.Trim().StartsWith('package:')) {
"!PS_DIFF_3P!" echo $apkRemote = $apkPathLine.Trim().Substring(8).Trim()
"!PS_DIFF_3P!" echo $apkLocal = Join-Path $env:TEMP "adbfolder_probe.apk"
"!PS_DIFF_3P!" echo ^& $adbExe -s $adbTarget pull $apkRemote $apkLocal ^>$null 2^>^&1
"!PS_DIFF_3P!" echo if (Test-Path -LiteralPath $apkLocal) {
"!PS_DIFF_3P!" echo $badging = ^& $aaptCmd.Source dump badging $apkLocal 2^>$null
"!PS_DIFF_3P!" echo foreach ($bl in $badging) {
"!PS_DIFF_3P!" echo if ($bl -match "^application-label:'([^']+)'") { $label = $Matches[1].Trim(); break }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo Remove-Item -LiteralPath $apkLocal -Force -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo [PSCustomObject]@{ package_name = $pkg; app_title = $label }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $tableText = if (@($results).Count -gt 0) {
"!PS_DIFF_3P!" echo ((@($results) ^| Format-Table -AutoSize ^| Out-String -Width 4096) -split "`r?`n" ^| ForEach-Object { $_.TrimEnd() } ^| Where-Object { $_ -ne '' }) -join "`r`n" + "`r`n"
"!PS_DIFF_3P!" echo } else { "" }
"!PS_DIFF_3P!" echo [System.IO.File]::WriteAllText($env:UNPLACED_OUT, $tableText, (New-Object System.Text.UTF8Encoding($false)))
"!PS_DIFF_3P!" echo Write-Host ("User packages (-3): {0} | In Nova layout: {1} | No icon in Nova: {2}" -f $installed3.Count, $inNova.Count, $missing.Count)
"!PS_DIFF_3P!" echo if (@($results).Count -gt 0) { Write-Host ""; Write-Output $tableText.TrimEnd() }
"%PS_SANITIZE%" echo $raw = $env:SELECTED_LABEL
"%PS_SANITIZE%" echo $s = [regex]::Replace($raw, '[\\/:*?"<>|() ]+', '_')
"%PS_SANITIZE%" echo $s = $s.Trim('_')
"%PS_SANITIZE%" echo if ([string]::IsNullOrWhiteSpace($s)) { $s = "nova_target" }
"%PS_SANITIZE%" echo [System.IO.File]::WriteAllText($env:SAFE_NAME_FILE, $s, (New-Object System.Text.UTF8Encoding($false)))
"%SQL_QUERY_FILE%" echo .header on
"%SQL_QUERY_FILE%" echo .mode tabs
"%SQL_QUERY_FILE%" echo SELECT f._id AS item_id,
"%SQL_QUERY_FILE%" echo f.title AS display_name,
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN f.iconPackage IS NOT NULL AND LENGTH(TRIM(f.iconPackage^)^) ^> 0 THEN TRIM(f.iconPackage^)
"%SQL_QUERY_FILE%" echo WHEN INSTR(f.intent, 'component='^) ^> 0 THEN
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), '/'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), '/'^) - 1^)
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), ';'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^), ';'^) - 1^)
"%SQL_QUERY_FILE%" echo ELSE SUBSTR(f.intent, INSTR(f.intent, 'component='^) + 10^)
"%SQL_QUERY_FILE%" echo END
"%SQL_QUERY_FILE%" echo WHEN INSTR(f.intent, 'package='^) ^> 0 THEN
"%SQL_QUERY_FILE%" echo CASE
"%SQL_QUERY_FILE%" echo WHEN INSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), ';'^) ^> 0 THEN SUBSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), 1, INSTR(SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^), ';'^) - 1^)
"%SQL_QUERY_FILE%" echo ELSE SUBSTR(f.intent, INSTR(f.intent, 'package='^) + 8^)
"%SQL_QUERY_FILE%" echo END
"%SQL_QUERY_FILE%" echo ELSE ''
"%SQL_QUERY_FILE%" echo END AS package_name,
"%SQL_QUERY_FILE%" echo f.intent
"%SQL_QUERY_FILE%" echo FROM favorites f
"%SQL_QUERY_FILE%" echo WHERE !SQL_WHERE!
"%SQL_QUERY_FILE%" echo ORDER BY !SQL_ORDER!;
"%PS_FORMAT%" echo $rawFile = $env:RAW_OUT
"%PS_FORMAT%" echo $cleanFile = $env:CLEAN_OUT
"%PS_FORMAT%" echo $logFile = $env:LOG_OUT
"%PS_FORMAT%" echo $label = $env:SELECTED_LABEL
"%PS_FORMAT%" echo $rows = Import-Csv -LiteralPath $rawFile -Delimiter "`t"
"%PS_FORMAT%" echo $lines = $rows ^| Select-Object package_name, display_name ^| Format-Table -AutoSize ^| Out-String -Width 4096
"%PS_FORMAT%" echo $tableLines = @($lines -split "`r?`n" ^| ForEach-Object { $_.TrimEnd() } ^| Where-Object { $_ -ne '' })
"%PS_FORMAT%" echo $header = " $label"
"%PS_FORMAT%" echo if ($label -match '^pane\s+(\d+)\s+-\s+(.+)$') { $header = (' pane {0} folder "{1}"' -f $Matches[1], $Matches[2]) }
"%PS_FORMAT%" echo $body = ($tableLines ^| ForEach-Object { ' ' + $_ }) -join "`r`n"
"%PS_FORMAT%" echo $clean = $header + "`r`n" + $body + "`r`n"
"%PS_FORMAT%" echo $utf8 = New-Object System.Text.UTF8Encoding($false)
"%PS_FORMAT%" echo [System.IO.File]::WriteAllText($cleanFile, $clean, $utf8)
"%PS_FORMAT%" echo $timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
"%PS_FORMAT%" echo $entry = "`r`n============================================================`r`nExport: $timestamp`r`n$clean"
"%PS_FORMAT%" echo [System.IO.File]::AppendAllText($logFile, $entry, $utf8)
"!SQL_NOVA_PKGS!" echo SELECT DISTINCT package_name
"!SQL_NOVA_PKGS!" echo FROM (
"!SQL_NOVA_PKGS!" echo SELECT CASE
"!SQL_NOVA_PKGS!" echo WHEN iconPackage IS NOT NULL AND LENGTH(TRIM(iconPackage^)^) ^> 0 THEN TRIM(iconPackage^)
"!SQL_NOVA_PKGS!" echo WHEN INSTR(intent, 'component='^) ^> 0 THEN
"!SQL_NOVA_PKGS!" echo CASE
"!SQL_NOVA_PKGS!" echo WHEN INSTR(SUBSTR(intent, INSTR(intent, 'component='^) + 10^), '/'^) ^> 0 THEN SUBSTR(
"!SQL_NOVA_PKGS!" echo SUBSTR(intent, INSTR(intent, 'component='^) + 10^),
"!SQL_NOVA_PKGS!" echo 1,
"!SQL_NOVA_PKGS!" echo INSTR(SUBSTR(intent, INSTR(intent, 'component='^) + 10^), '/'^) - 1
"!SQL_NOVA_PKGS!" echo ^)
"!SQL_NOVA_PKGS!" echo ELSE SUBSTR(intent, INSTR(intent, 'component='^) + 10^)
"!SQL_NOVA_PKGS!" echo END
"!SQL_NOVA_PKGS!" echo ELSE ''
"!SQL_NOVA_PKGS!" echo END AS package_name
"!SQL_NOVA_PKGS!" echo FROM favorites
"!SQL_NOVA_PKGS!" echo )
"!SQL_NOVA_PKGS!" echo WHERE LENGTH(package_name^) ^> 0;
"!PS_DIFF_3P!" echo $adbExe = $env:ADB_EXE
"!PS_DIFF_3P!" echo $adbTarget = $env:RUN_ADB_TARGET
"!PS_DIFF_3P!" echo $resolveLabels = ($env:DO_RESOLVE_LABELS -eq '1')
"!PS_DIFF_3P!" echo $pm3Lines = Get-Content -LiteralPath $env:PM_3P_FILE -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo $installed3 = [System.Collections.Generic.HashSet[string]]::new([System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo foreach ($line in $pm3Lines) {
"!PS_DIFF_3P!" echo $p = ($line -replace '\r', '').Trim()
"!PS_DIFF_3P!" echo if ($p.StartsWith('package:')) { $p = $p.Substring(8).Trim() }
"!PS_DIFF_3P!" echo if (-not [string]::IsNullOrWhiteSpace($p)) { [void]$installed3.Add($p) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $novaLines = Get-Content -LiteralPath $env:NOVA_PKGS_FILE -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo $inNova = [System.Collections.Generic.HashSet[string]]::new([System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo foreach ($n in $novaLines) {
"!PS_DIFF_3P!" echo $pkg = ($n -replace '\r', '').Trim()
"!PS_DIFF_3P!" echo if (-not [string]::IsNullOrWhiteSpace($pkg)) { [void]$inNova.Add($pkg) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $missingList = [System.Collections.Generic.List[string]]::new()
"!PS_DIFF_3P!" echo foreach ($pkg in $installed3) {
"!PS_DIFF_3P!" echo if (-not $inNova.Contains($pkg)) { [void]$missingList.Add($pkg) }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $missing = @($missingList.ToArray())
"!PS_DIFF_3P!" echo [System.Array]::Sort($missing, [System.StringComparer]::OrdinalIgnoreCase)
"!PS_DIFF_3P!" echo $aaptCmd = if ($resolveLabels) { Get-Command aapt -ErrorAction SilentlyContinue } else { $null }
"!PS_DIFF_3P!" echo $idx = 0
"!PS_DIFF_3P!" echo $results = foreach ($pkg in $missing) {
"!PS_DIFF_3P!" echo $idx++
"!PS_DIFF_3P!" echo $label = ''
"!PS_DIFF_3P!" echo if ($resolveLabels) {
"!PS_DIFF_3P!" echo if (($idx %% 10) -eq 1 -or $idx -eq $missing.Count) {
"!PS_DIFF_3P!" echo Write-Host ("Resolving titles: {0}/{1} ({2})..." -f $idx, $missing.Count, $pkg)
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $dumpLines = ^& $adbExe -s $adbTarget shell dumpsys package $pkg 2^>$null
"!PS_DIFF_3P!" echo foreach ($dl in $dumpLines) {
"!PS_DIFF_3P!" echo if ($dl -match 'nonLocalizedLabel="([^"]+)"') { $label = $Matches[1].Trim() }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo if ([string]::IsNullOrWhiteSpace($label) -and $aaptCmd) {
"!PS_DIFF_3P!" echo $apkPathLine = (^& $adbExe -s $adbTarget shell pm path $pkg 2^>$null ^| Select-Object -First 1)
"!PS_DIFF_3P!" echo if ($apkPathLine -and $apkPathLine.Trim().StartsWith('package:')) {
"!PS_DIFF_3P!" echo $apkRemote = $apkPathLine.Trim().Substring(8).Trim()
"!PS_DIFF_3P!" echo $apkLocal = Join-Path $env:TEMP "adbfolder_probe.apk"
"!PS_DIFF_3P!" echo ^& $adbExe -s $adbTarget pull $apkRemote $apkLocal ^>$null 2^>^&1
"!PS_DIFF_3P!" echo if (Test-Path -LiteralPath $apkLocal) {
"!PS_DIFF_3P!" echo $badging = ^& $aaptCmd.Source dump badging $apkLocal 2^>$null
"!PS_DIFF_3P!" echo foreach ($bl in $badging) {
"!PS_DIFF_3P!" echo if ($bl -match "^application-label:'([^']+)'") { $label = $Matches[1].Trim(); break }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo Remove-Item -LiteralPath $apkLocal -Force -ErrorAction SilentlyContinue
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo [PSCustomObject]@{ package_name = $pkg; app_title = $label }
"!PS_DIFF_3P!" echo }
"!PS_DIFF_3P!" echo $tableText = if (@($results).Count -gt 0) {
"!PS_DIFF_3P!" echo ((@($results) ^| Format-Table -AutoSize ^| Out-String -Width 4096) -split "`r?`n" ^| ForEach-Object { $_.TrimEnd() } ^| Where-Object { $_ -ne '' }) -join "`r`n" + "`r`n"
"!PS_DIFF_3P!" echo } else { "" }
"!PS_DIFF_3P!" echo [System.IO.File]::WriteAllText($env:UNPLACED_OUT, $tableText, (New-Object System.Text.UTF8Encoding($false)))
"!PS_DIFF_3P!" echo Write-Host ("User packages (-3): {0} | In Nova layout: {1} | No icon in Nova: {2}" -f $installed3.Count, $inNova.Count, $missing.Count)
"!PS_DIFF_3P!" echo if (@($results).Count -gt 0) { Write-Host ""; Write-Output $tableText.TrimEnd() }
For the record, here is the python script I wrote today based on the
Windows batch script I had written yesterday that is an example of
what we'd like to accomplish with iOS over Wi-Fi/USB to any common desktop.
def which(exe_name):
"""Return path to executable if found in PATH or configured paths."""
found = shutil.which(exe_name)
return found
def which(exe_name):
"""Return path to executable if found in PATH or configured paths.""" >> found = shutil.which(exe_name)
return found
from shutil import which
Maria Sophia wrote:
For the record, here is the python script I wrote today based on the
Windows batch script I had written yesterday that is an example of
what we'd like to accomplish with iOS over Wi-Fi/USB to any common desktop.
Actually, that was the batch script. This is the X-platform python script.
I tested them side by side (found some bugs) and now they work the same.
#!/usr/bin/env python3
# -------------------------------------------------------------------------
# adbfolder.py
# Usage: python adbfolder.py
Maria Sophia <mariasophia@comprehension.com> wrote:
Maria Sophia wrote:
For the record, here is the python script I wrote today based on theActually, that was the batch script. This is the X-platform python script.
Windows batch script I had written yesterday that is an example of
what we'd like to accomplish with iOS over Wi-Fi/USB to any common desktop. >>
It demonstrably isn't x-platform. You've specified paths which assume
Windows and only work on your own idiosyncratic system setup.
And *yet again * you've posted useless python code that is guaranteed to fail. Why will you never learn?
I tested them side by side (found some bugs) and now they work the same.
#!/usr/bin/env python3
# -------------------------------------------------------------------------
# adbfolder.py
# Usage: python adbfolder.py
By setting the environment above this usage is superfluous. You can run the script directly.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 35:15:16 |
| Calls: | 1,266 |
| Files: | 1,362 |
| D/L today: |
3 files (6,742K bytes) |
| Messages: | 284,775 |