Home / Safety Hub / Factory app audit
Factory app audit
See every app on your Android phone, including the ones that came installed at the factory, and highlight the suspicious ones. Free. Runs on your Windows PC. Nothing is uploaded.
What it flags
- Apps whose names resemble known stalkerware or monitoring software.
- Apps with an active accessibility service, notification access or device-administrator power.
- Hidden apps with no launcher icon, and apps installed outside a known app store.
- Unfamiliar packages in the factory image, and known preinstalled ad frameworks.
- Sensitive permissions that have actually been granted (camera, microphone, SMS, call log, location, contacts).
- Device warnings: test-keys builds, unlocked bootloader, debuggable builds and old security patches.
How to use it
- On your phone: Settings > About phone > tap Build number 7 times to enable Developer options.
- Settings > Developer options > turn on USB debugging.
- Install Android platform-tools on your PC (developer.android.com/tools/releases/platform-tools) and unzip it, or place the platform-tools folder next to the script.
- Unzip the download, plug in your phone by USB, unlock it, and double-click Run-AppAudit.cmd. Tap Allow on the phone when it asks.
- Open the report that appears. Start with the red HIGH items.
Windows may warn you about a downloaded script. Choose More info > Run anyway only if you are happy with the source shown below. The script reads package lists, permissions and settings from your phone over adb. It does not install anything, change anything or send anything off your PC.
Reading the results
- This is a set of checks, not a virus scan. A flag does not prove an app is malicious, and no flag does not prove a phone is clean.
- Factory images often include vendor, carrier and chipset packages with odd names. Search the exact package name before acting.
- For factory apps the report shows a reversible command that switches the app off for your user only (no root). The undo command is shown beside it. Do not remove anything you do not understand.
- For apps you installed, remove them in Settings. If one will not uninstall, remove its device-admin and accessibility access first.
- If you think someone is monitoring you, plan your safety first: removing a stalkerware app can alert the person who installed it. See the Help page for local support.
Download details
File: PrivaShred-AppAudit.zip · SHA-256: 6fa024d17f7149dfd8890b1615109f55f7283fe46e7e3b4dfc4618992bf206d7 · Windows 10 or 11 with PowerShell 5.1. Mac and Linux are not supported yet.
Read the full source (about 19 KB)
# PrivaShred App Audit - lists factory-installed (system) and user-installed packages on a USB-connected
# Android phone, highlights suspicious ones, and writes an HTML + CSV report. Runs 100% locally.
# Needs: USB debugging ON, phone connected + authorised, Android platform-tools (adb).
param([string]$Adb = '', [string]$MockDir = '', [switch]$NoOpen)
$ErrorActionPreference = 'Continue'
$here = $PSScriptRoot
if (-not $here) { $here = (Get-Location).Path }
function Find-Adb {
if ($Adb -and (Test-Path $Adb)) { return $Adb }
$c = @()
if ($env:ANDROID_HOME) { $c += (Join-Path $env:ANDROID_HOME 'platform-tools\adb.exe') }
if ($env:ANDROID_SDK_ROOT) { $c += (Join-Path $env:ANDROID_SDK_ROOT 'platform-tools\adb.exe') }
$c += (Join-Path $env:LOCALAPPDATA 'Android\Sdk\platform-tools\adb.exe')
$c += (Join-Path $here 'platform-tools\adb.exe')
foreach ($p in $c) { if (Test-Path $p) { return $p } }
$g = Get-Command adb -ErrorAction SilentlyContinue
if ($g) { return $g.Source }
return $null
}
$script:AdbPath = $null
$script:Serial = ''
function Q([string]$name, [string[]]$a) {
if ($MockDir) {
$f = Join-Path $MockDir ($name + '.txt')
if (Test-Path $f) { return (Get-Content $f -Raw) } else { return '' }
}
$pre = @()
if ($script:Serial) { $pre = @('-s', $script:Serial) }
try { return (& $script:AdbPath @pre @a 2>&1 | Out-String) } catch { return '' }
}
Write-Host ''
Write-Host ' PrivaShred App Audit' -ForegroundColor Cyan
Write-Host ' Runs locally. Nothing is uploaded.' -ForegroundColor DarkGray
Write-Host ''
if (-not $MockDir) {
$script:AdbPath = Find-Adb
if (-not $script:AdbPath) {
Write-Host ' adb not found. Install Android platform-tools, or set ANDROID_HOME, or put platform-tools next to this script.' -ForegroundColor Red
exit 1
}
$dev = (& $script:AdbPath devices 2>&1 | Out-String) -split "`r?`n" | Where-Object { $_ -match '\t(device|unauthorized|offline)$' }
if (-not $dev) {
Write-Host ' No phone found. Plug in by USB, turn on Developer options > USB debugging, then run again.' -ForegroundColor Red
exit 1
}
$ok = @($dev | Where-Object { $_ -match '\tdevice$' })
if ($ok.Count -eq 0) {
Write-Host ' Phone is unauthorised. Unlock it and tap Allow on the USB debugging prompt, then run again.' -ForegroundColor Red
exit 1
}
$script:Serial = ($ok[0] -split "`t")[0]
}
# ---------- device facts ----------
function GetProp($k) {
if ($MockDir) {
$f = Join-Path $MockDir 'props.txt'
if (Test-Path $f) {
foreach ($l in (Get-Content $f)) { if ($l -match ('^\[' + [regex]::Escape($k) + '\]: \[(.*)\]$')) { return $matches[1] } }
}
return ''
}
return ((Q 'x' @('shell', 'getprop', $k)).Trim())
}
$model = (GetProp 'ro.product.manufacturer') + ' ' + (GetProp 'ro.product.model')
$android = GetProp 'ro.build.version.release'
$patch = GetProp 'ro.build.version.security_patch'
$tags = GetProp 'ro.build.tags'
$vboot = GetProp 'ro.boot.verifiedbootstate'
$dbg = GetProp 'ro.debuggable'
$fp = GetProp 'ro.build.fingerprint'
$devWarn = New-Object System.Collections.ArrayList
if ($tags -match 'test-keys') { [void]$devWarn.Add(@('HIGH', 'Build is signed with test-keys. A genuine factory ROM is signed with release-keys. This usually means a custom or modified ROM.')) }
if ($vboot -match 'orange|yellow|red') { [void]$devWarn.Add(@('MED', ('Verified boot state is "' + $vboot + '" (bootloader unlocked or custom OS key). Factory-sealed phones show "green".'))) }
if ($dbg -eq '1') { [void]$devWarn.Add(@('MED', 'ro.debuggable=1: this is a debuggable build, not a normal consumer build.')) }
if ($patch -match '^\d{4}-\d{2}-\d{2}$') {
$pd = [datetime]::ParseExact($patch, 'yyyy-MM-dd', $null)
if ($pd -lt (Get-Date).AddMonths(-12)) { [void]$devWarn.Add(@('MED', ('Security patch level is ' + $patch + ' (over 12 months old). Old patch levels leave known holes open.'))) }
}
# ---------- package lists ----------
Write-Host ' Reading package lists...' -ForegroundColor Gray
function Parse-Pkgs([string]$txt) {
$r = @{}
foreach ($l in ($txt -split "`r?`n")) {
if ($l -match '^package:(.*?)=([\w\.]+)(?:\s+installer=(\S+))?\s*$') {
$r[$matches[2]] = @{ path = $matches[1]; installer = $matches[3] }
} elseif ($l -match '^package:([\w\.]+)\s*$') {
if (-not $r.ContainsKey($matches[1])) { $r[$matches[1]] = @{ path = ''; installer = '' } }
}
}
return $r
}
$sys = Parse-Pkgs (Q 'pkgs_system' @('shell', 'pm', 'list', 'packages', '-f', '-i', '-s'))
$tp = Parse-Pkgs (Q 'pkgs_3p' @('shell', 'pm', 'list', 'packages', '-f', '-i', '-3'))
$dis = Parse-Pkgs (Q 'pkgs_disabled' @('shell', 'pm', 'list', 'packages', '-d'))
if ($sys.Count -eq 0 -and $tp.Count -eq 0) { Write-Host ' Could not read the package list.' -ForegroundColor Red; exit 1 }
Write-Host ' Reading permissions (this can take a minute)...' -ForegroundColor Gray
$perm = @{}
$cur = $null
foreach ($l in ((Q 'dumpsys_package' @('shell', 'dumpsys', 'package')) -split "`r?`n")) {
if ($l -match '^\s{2}Package \[([\w\.]+)\]') { $cur = $matches[1]; if (-not $perm.ContainsKey($cur)) { $perm[$cur] = New-Object 'System.Collections.Generic.HashSet[string]' }; continue }
if ($l -match '^[A-Za-z]') { $cur = $null; continue }
if ($cur -and $l -match '^\s+([A-Za-z0-9_\.]+\.permission\.[A-Za-z0-9_\.]+):\s+granted=true') {
$nm = $matches[1]; [void]$perm[$cur].Add($nm.Substring($nm.LastIndexOf('.') + 1))
}
}
$acc = @{}; foreach ($m in [regex]::Matches((Q 'acc' @('shell', 'settings', 'get', 'secure', 'enabled_accessibility_services')), '([\w\.]+)/')) { $acc[$m.Groups[1].Value] = 1 }
$nl = @{}; foreach ($m in [regex]::Matches((Q 'nl' @('shell', 'settings', 'get', 'secure', 'enabled_notification_listeners')), '([\w\.]+)/')) { $nl[$m.Groups[1].Value] = 1 }
$da = @{}; foreach ($m in [regex]::Matches((Q 'dp' @('shell', 'dumpsys', 'device_policy')), 'ComponentInfo\{([\w\.]+)/')) { $da[$m.Groups[1].Value] = 1 }
$launch = @{}
$ltxt = Q 'launcher' @('shell', 'cmd', 'package', 'query-activities', '--brief', '-a', 'android.intent.action.MAIN', '-c', 'android.intent.category.LAUNCHER')
foreach ($l in ($ltxt -split "`r?`n")) { if ($l -match '^\s*([\w\.]+)/') { $launch[$matches[1]] = 1 } }
$haveLaunch = ($launch.Count -gt 0)
# ---------- rules ----------
$core = @('android', 'com.android.', 'com.google.', 'com.qualcomm.', 'com.qti.', 'com.mediatek.', 'org.codeaurora.', 'vendor.', 'com.samsung.', 'com.sec.', 'com.oppo.', 'com.coloros.', 'com.oplus.', 'com.heytap.', 'com.realme.', 'com.xiaomi.', 'com.miui.', 'com.mi.', 'com.huawei.', 'com.hihonor.', 'com.honor.', 'com.motorola.', 'com.lenovo.', 'com.sony.', 'com.sonymobile.', 'com.lge.', 'com.oneplus.', 'com.nothing.', 'com.asus.', 'com.nokia.', 'com.hmd.', 'com.zte.', 'com.vivo.', 'com.bbk.', 'com.transsion.', 'com.unisoc.', 'com.sprd.', 'com.tcl.', 'com.fairphone.', 'com.telstra.', 'com.optus.', 'com.vodafone.')
$bloat = @('com.facebook.', 'com.netflix.', 'com.amazon.', 'com.microsoft.', 'com.spotify.', 'com.linkedin.', 'com.zhiliaoapp.', 'com.booking.', 'com.opera.', 'com.ebay.', 'com.instagram.', 'com.twitter.', 'com.tiktok.', 'com.agoda.', 'com.tripadvisor.')
$adfw = @('com.ironsource.', 'com.aura.', 'com.digitalturbine.', 'com.dti.', 'com.mobiroo.', 'com.fyber.', 'com.appnext.', 'com.cleanmaster.', 'com.lbe.')
$spy = 'spy|stalk|keylog|snoop|mspy|flexispy|cocospy|hoverwatch|truthspy|xnspy|mobistealth|kidsguard|clevguard|eyezy|umobix|pctattletale|catwatchful|webwatcher|minspy|spyzie|phonespector|spybubble|stealthgenie|ikeymonitor|spyera|mobilespy|retinax|fonetracker|spyhuman|easyspy|copy9|cellspy|phonesheriff'
$stores = @('com.android.vending', 'com.sec.android.app.samsungapps', 'com.heytap.market', 'com.xiaomi.mipicks', 'com.huawei.appmarket', 'com.amazon.venezia', 'com.oppo.market', 'com.google.android.feedback')
$sens = @('CAMERA', 'RECORD_AUDIO', 'READ_SMS', 'RECEIVE_SMS', 'SEND_SMS', 'READ_CALL_LOG', 'WRITE_CALL_LOG', 'PROCESS_OUTGOING_CALLS', 'ACCESS_FINE_LOCATION', 'ACCESS_BACKGROUND_LOCATION', 'READ_CONTACTS', 'MANAGE_EXTERNAL_STORAGE', 'REQUEST_INSTALL_PACKAGES', 'SYSTEM_ALERT_WINDOW', 'READ_PHONE_STATE', 'ANSWER_PHONE_CALLS')
function Starts([string]$p, [string[]]$list) { foreach ($x in $list) { if ($p.StartsWith($x) -or $p -eq $x.TrimEnd('.')) { return $true } }; return $false }
$rank = @{ 'HIGH' = 3; 'MED' = 2; 'LOW' = 1 }
$cls = @{ 'HIGH' = 'hi'; 'MED' = 'md'; 'LOW' = 'lo' }
$rows = New-Object System.Collections.ArrayList
function Evaluate([string]$pkg, [hashtable]$info, [bool]$isSystem) {
$why = New-Object System.Collections.ArrayList
$granted = @(); if ($perm.ContainsKey($pkg)) { $granted = @($perm[$pkg] | Where-Object { $sens -contains $_ }) }
$n = $granted.Count
$isCore = Starts $pkg $core
$inst = $info.installer; if ($inst -eq 'null') { $inst = '' }
$side = ((-not $isSystem) -and (-not ($stores -contains $inst)))
if ($pkg -match $spy) { [void]$why.Add(@('HIGH', 'Name resembles known stalkerware / monitoring software.')) }
if ($acc.ContainsKey($pkg) -and -not $isCore) { $s = 'MED'; if ($side) { $s = 'HIGH' }; [void]$why.Add(@($s, 'Has an ACTIVE accessibility service (can read the screen and tap for you).')) }
if ($nl.ContainsKey($pkg) -and -not $isCore) { $s = 'MED'; if ($side) { $s = 'HIGH' }; [void]$why.Add(@($s, 'Is an ACTIVE notification listener (can read every notification, including codes).')) }
if ($da.ContainsKey($pkg) -and -not $isCore) { $s = 'MED'; if ($side) { $s = 'HIGH' }; [void]$why.Add(@($s, 'Is an ACTIVE device administrator (hard to uninstall).')) }
if ($isSystem) {
if (-not $isCore) {
if (Starts $pkg $adfw) { [void]$why.Add(@('MED', 'Known preinstall / ad-delivery framework.')) }
elseif (Starts $pkg $bloat) { [void]$why.Add(@('LOW', 'Preinstalled third-party app (carrier or vendor deal). Usually harmless, often removable.')) }
else {
$s = 'MED'; $t = 'Unfamiliar vendor namespace in the factory image. Search the package name before trusting it.'
if ($n -ge 4) { $s = 'HIGH'; $t = 'Unfamiliar factory-image package holding ' + $n + ' sensitive permissions (' + ($granted -join ', ') + ').' }
[void]$why.Add(@($s, $t))
}
}
} else {
if ($side) {
$s = 'LOW'; $t = 'Not installed from a known app store (installer: ' + $(if ($inst) { $inst } else { 'unknown' }) + ').'
if ($n -ge 3) { $s = 'MED'; $t += ' Holds ' + $n + ' sensitive permissions (' + ($granted -join ', ') + ').' }
[void]$why.Add(@($s, $t))
}
if ($haveLaunch -and -not $launch.ContainsKey($pkg)) {
$s = 'MED'; $t = 'No launcher icon (hidden from the app drawer).'
if ($n -ge 3) { $s = 'HIGH'; $t += ' Holds ' + $n + ' sensitive permissions (' + ($granted -join ', ') + ').' }
[void]$why.Add(@($s, $t))
}
}
$top = 0; foreach ($w in $why) { if ($rank[$w[0]] -gt $top) { $top = $rank[$w[0]] } }
$sev = ''; foreach ($k in $rank.Keys) { if ($rank[$k] -eq $top) { $sev = $k } }
$part = ''
if ($info.path -match '^/(system_ext|system|vendor|product|odm|apex|data)/') { $part = $matches[1] }
[void]$rows.Add([pscustomobject]@{
Package = $pkg; Type = $(if ($isSystem) { 'Factory/system' } else { 'User-installed' }); Partition = $part
Installer = $inst; Disabled = $dis.ContainsKey($pkg); Sensitive = ($granted -join ' '); SensCount = $n
Severity = $sev; Top = $top; Reasons = (($why | ForEach-Object { $_[0] + ': ' + $_[1] }) -join ' | '); WhyList = $why
})
}
foreach ($k in $sys.Keys) { Evaluate $k $sys[$k] $true }
foreach ($k in $tp.Keys) { if (-not $sys.ContainsKey($k)) { Evaluate $k $tp[$k] $false } }
# ---------- report ----------
$stamp = Get-Date -Format 'yyyyMMdd-HHmm'
$dir = Join-Path $here 'reports'
if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir | Out-Null }
$safeModel = ($model -replace '[^A-Za-z0-9]+', '-').Trim('-')
$csv = Join-Path $dir ('PrivaShred-AppAudit-' + $safeModel + '-' + $stamp + '.csv')
$htm = Join-Path $dir ('PrivaShred-AppAudit-' + $safeModel + '-' + $stamp + '.html')
$rows | Sort-Object @{e = 'Top'; Descending = $true }, Package | Select-Object Package, Type, Partition, Installer, Disabled, Sensitive, Severity, Reasons | Export-Csv -Path $csv -NoTypeInformation -Encoding UTF8
function HtmlEnc([string]$s) { return [System.Net.WebUtility]::HtmlEncode($s) }
$flag = @($rows | Where-Object { $_.Top -gt 0 } | Sort-Object @{e = 'Top'; Descending = $true }, @{e = 'SensCount'; Descending = $true }, Package)
$nH = @($rows | Where-Object { $_.Top -eq 3 }).Count; $nM = @($rows | Where-Object { $_.Top -eq 2 }).Count; $nL = @($rows | Where-Object { $_.Top -eq 1 }).Count
$sb = New-Object System.Text.StringBuilder
$css = @'
:root{--bg:#04070D;--panel:#0b1626;--line:#1b3a4d;--t:#e8f0f8;--m:#9fb3c8;--teal:#19e6c1;--hi:#ff5d6c;--md:#ffb020;--lo:#6fa8ff}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(rgba(25,230,193,.05) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,rgba(25,230,193,.05) 1px,transparent 1px) 0 0/48px 48px,var(--bg);color:var(--t);font:15px/1.5 system-ui,Segoe UI,sans-serif;padding:32px 20px}
.w{max-width:1100px;margin:auto}h1{font:700 34px/1.1 system-ui;letter-spacing:.02em;margin:0 0 4px}h1 span{color:var(--teal)}
.m{color:var(--m)}.mono{font-family:Consolas,monospace}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}
.c{background:var(--panel);border:1px solid var(--line);padding:14px 16px}.c b{display:block;font-size:30px}
.hi{color:var(--hi)}.md{color:var(--md)}.lo{color:var(--lo)}
.warn{border:1px solid var(--md);background:rgba(255,176,32,.08);padding:10px 14px;margin:8px 0}.warn.HIGH{border-color:var(--hi);background:rgba(255,93,108,.08)}
.bar{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.bar button,.bar input{background:var(--panel);color:var(--t);border:1px solid var(--line);padding:9px 14px;font:inherit}.bar button.on{border-color:var(--teal);color:var(--teal)}.bar input{flex:1;min-width:200px}
.r{background:var(--panel);border:1px solid var(--line);padding:14px 16px;margin:10px 0}
.r.HIGH{border-color:var(--hi)}.r.MED{border-color:var(--md)}
.tag{display:inline-block;font:700 12px Consolas,monospace;letter-spacing:.1em;padding:3px 8px;margin-right:8px;color:#04070D}
.tag.HIGH{background:var(--hi)}.tag.MED{background:var(--md)}.tag.LOW{background:var(--lo)}
.pk{font:700 16px Consolas,monospace;word-break:break-all}ul{margin:8px 0 8px 18px;padding:0}li{margin:3px 0}
code{background:#0e2236;padding:2px 6px;font:13px Consolas,monospace;word-break:break-all}
'@
[void]$sb.Append('<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>PrivaShred App Audit</title><style>' + $css + '</style></head><body><div class="w">')
[void]$sb.Append('<h1>PRIVA<span>SHRED</span> App Audit</h1><div class="m">' + (HtmlEnc $model) + ' · Android ' + (HtmlEnc $android) + ' · patch ' + (HtmlEnc $patch) + ' · ' + (Get-Date -Format 'd MMM yyyy HH:mm') + '<br>Generated on this PC. Nothing was uploaded.</div>')
[void]$sb.Append('<div class="cards"><div class="c"><b>' + $rows.Count + '</b>packages checked</div><div class="c"><b>' + $sys.Count + '</b>factory/system</div><div class="c"><b>' + $tp.Count + '</b>user-installed</div><div class="c"><b class="hi">' + $nH + '</b>high</div><div class="c"><b class="md">' + $nM + '</b>medium</div><div class="c"><b class="lo">' + $nL + '</b>low</div></div>')
foreach ($w in $devWarn) { [void]$sb.Append('<div class="warn ' + $w[0] + '"><b>Device: </b>' + (HtmlEnc $w[1]) + '</div>') }
if ($fp) { [void]$sb.Append('<div class="m mono" style="font-size:12px;word-break:break-all">Build: ' + (HtmlEnc $fp) + '</div>') }
[void]$sb.Append('<div class="bar"><button class="on" data-f="all">All flagged (' + $flag.Count + ')</button><button data-f="HIGH">High</button><button data-f="MED">Medium</button><button data-f="LOW">Low</button><input id="q" placeholder="Search package name..."></div><div id="list">')
foreach ($r in $flag) {
[void]$sb.Append('<div class="r ' + $r.Severity + '" data-s="' + $r.Severity + '"><span class="tag ' + $r.Severity + '">' + $r.Severity + '</span><span class="pk">' + (HtmlEnc $r.Package) + '</span><div class="m">' + $r.Type + $(if ($r.Partition) { ' · /' + $r.Partition } else { '' }) + $(if ($r.Installer) { ' · installer ' + (HtmlEnc $r.Installer) } else { '' }) + $(if ($r.Disabled) { ' · currently disabled' } else { '' }) + '</div><ul>')
foreach ($w in $r.WhyList) { [void]$sb.Append('<li><b class="' + $cls[$w[0]] + '">' + $w[0] + '</b> ' + (HtmlEnc $w[1]) + '</li>') }
[void]$sb.Append('</ul>')
if ($r.Type -eq 'Factory/system') {
[void]$sb.Append('<div class="m">Switch off for your user (no root, reversible): <code>adb shell pm uninstall -k --user 0 ' + (HtmlEnc $r.Package) + '</code><br>Undo: <code>adb shell cmd package install-existing ' + (HtmlEnc $r.Package) + '</code></div>')
} else {
[void]$sb.Append('<div class="m">Remove: Settings > Apps > this app > Uninstall (or <code>adb uninstall ' + (HtmlEnc $r.Package) + '</code>). If it will not uninstall, remove its Device admin / Accessibility access in Settings first.</div>')
}
[void]$sb.Append('</div>')
}
if ($flag.Count -eq 0) { [void]$sb.Append('<div class="r">Nothing flagged by these checks.</div>') }
[void]$sb.Append('</div><div class="r"><b>How to read this</b><ul><li>These are heuristics, not a virus scan. Flagged does not mean malicious, and unflagged does not prove safe.</li><li>For any unfamiliar package, search its exact name before acting. Factory images often include vendor, carrier and chipset packages with odd names.</li><li>Be most careful with HIGH items that are user-installed, hidden, or hold accessibility / device-admin power.</li><li>A full inventory of every package is in the CSV next to this report.</li></ul></div>')
[void]$sb.Append('<script>var f="all",q="";function go(){document.querySelectorAll(".r[data-s]").forEach(function(e){var ok=(f=="all"||e.dataset.s==f)&&e.innerText.toLowerCase().indexOf(q)>-1;e.style.display=ok?"":"none"})}document.querySelectorAll(".bar button").forEach(function(b){b.onclick=function(){document.querySelectorAll(".bar button").forEach(function(x){x.className=""});b.className="on";f=b.dataset.f;go()}});document.getElementById("q").oninput=function(e){q=e.target.value.toLowerCase();go()}</script></div></body></html>')
[System.IO.File]::WriteAllText($htm, $sb.ToString(), (New-Object System.Text.UTF8Encoding($false)))
Write-Host (' Checked ' + $rows.Count + ' packages: ' + $nH + ' high, ' + $nM + ' medium, ' + $nL + ' low.') -ForegroundColor Green
Write-Host (' Report: ' + $htm)
Write-Host (' CSV: ' + $csv)
if (-not $NoOpen) { Start-Process $htm }
Get these protections in your pocket: PrivaShred on Google Play includes shredding, a vault, password checks and a spyware audit.
General information only, not legal or professional advice.