• Re: PSA/QUESTION: Porting Windows batch to Python for macOS/Linux users

    From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 15:47:48 2026
    From Newsgroup: comp.sys.mac.system

    I tentatively declare this functionality has never been written before.

    AFAICT anyway... (but I'd be happy if someone can prove me wrong)...

    I ran a seach today, and while I can find some overlap (see references
    added to the code below), this appears to be UNIQUE functionality for us.

    Which is a good thing.
    I'm all about adding value that was not there before I added it.

    It's how I'm wired.
    Below is a sample run so people get an idea of the input and output steps.

    C:\app\editor\android\scrcpy> python adbfolder.py
    Checking required tools (adb and sqlite3) ...
    Working directory: C:\app\editor\android\scrcpy
    Nova work directory: C:\app\editor\android\scrcpy\nova
    ----------------

    Select source for Nova Launcher database:
    [1] Pull .novabackup from Android via ADB and extract nova.db [Default]
    [2] Use an existing nova.db or .novabackup or .zip already on Windows

    Enter choice [1 or 2] [Default: 1]: 1
    --- Pull Nova Backup from Android ---
    Targeting device: 192.168.1.4:5555
    Open Nova Launcher settings on device to create a new backup first? [y/N] [Default: n]: n
    Listing backups in /storage/emulated/0/0000/bck/nova_backup ...


    [1] 2026-11-21_16-55.novabackup
    [2] 2026-11-21_16-37.novabackup
    [3] 2026-11-21_11-39.novabackup
    [4] 2026-11-21_11-05.novabackup
    [5] 2026-11-21_10-26.novabackup
    [6] 2026-11-20_21-09.novabackup
    [7] 2026-11-20_20-49.novabackup
    [8] 2026-11-20_20-48.novabackup
    [9] 2026-11-20_00-43.novabackup
    [10] 2026-11-20_00-28.novabackup
    [11] 2026-11-19_12-57.novabackup
    [12] 2026-08-19_21-51.novabackup
    [13] 2026-08-19_11-31.novabackup
    [14] 2026-08-16_11-36.novabackup
    Select backup number [1-14, Default: 1] [Default: 1]: 1

    Pulling "/storage/emulated/0/0000/bck/nova_backup/2026-11-21_16-55.novabackup" to "C:\app\editor\android\scrcpy\nova\2026-11-21_16-55.novabackup" ...
    Extracting backup.zip to 'C:\app\editor\android\scrcpy\nova\backup_extracted' ...

    Using database: C:\app\editor\android\scrcpy\nova\backup_extracted\nova.db Scanning Nova Launcher dock, panes and folders ...

    dock
    [1] dock apps
    [2] shortcuts
    pane 0
    [3] track
    [4] Remote
    [5] TTS
    [6] webcam
    [7] todo
    [8] automate
    [9] obd
    [10] stuff
    [11] sos
    [12] Clock
    [13] backgnd
    [14] converter
    [15] privacy
    [16] SvcMode
    [17] epub
    [18] PlantID
    [19] hike
    [20] motion
    [21] toon
    [22] shortcut
    pane 1
    [23] time
    [24] comms
    [25] buy
    [26] files
    [27] net
    [28] web
    [29] weather
    [30] nature
    [31] auto
    [32] pic
    [33] audio
    [34] vid
    [35] todo
    [36] spoof
    [37] sensor
    [38] apk
    [39] sys

    Select number [1-39, q to quit]: 36

    Querying "pane 1 - spoof" ...

    --- Result (C:\app\editor\android\scrcpy\nova\pane_1_-_spoof_apps.txt) ---

    pane 1 folder "spoof"
    package_name display_name
    com.rasfar.mock.location Mocation
    com.discipleskies.mock_location_spoofer DS Fake GPS Location
    com.mock.cartage Cartage
    fake.gps.location.changer.spoof.location Fake GPS Location
    com.bomerapps.movablemockgps Movable Mock GPS

    Raw tab-delimited output saved to: C:\app\editor\android\scrcpy\nova\output.txt
    Formatted app list saved to: C:\app\editor\android\scrcpy\nova\pane_1_-_spoof_apps.txt
    Running export log saved to: C:\app\editor\android\scrcpy\nova\adbfolder_log.txt

    Export another folder or pane? [y/N] [Default: n]: n

    Check user apps -3 with no icon in Nova before quitting? [y/N] [Default: n]: y Resolve app titles via adb/aapt slower over Wi-Fi? [y/N] [Default: n]: y Querying third-party packages from device 192.168.1.4:5555 ...
    Querying packages referenced anywhere in nova.db ...
    Resolving titles: 1/65 (ai.articlereader.mobileapp)...
    Resolving titles: 11/65 (com.cloudedge.smarteye)...
    Resolving titles: 21/65 (com.i45.launchdialer)...
    Resolving titles: 31/65 (com.netvor.settings.database.provider)...
    Resolving titles: 41/65 (dev.patrickgold.florisboard)...
    Resolving titles: 51/65 (org.bromite.webview)...
    Resolving titles: 61/65 (org.schabi.newpipe.debug)...
    Resolving titles: 65/65 (za.kilowatch.ultimatefilemanager)...

    User packages (-3): 635 | In Nova layout: 856 | No icon in Nova: 65

    package_name app_title ai.articlereader.mobileapp Article Reader
    app.fluffy Fluffy
    asav.roomtemperature.us Room Temperature Thermometer aws.apps.usbDeviceEnumerator USB Device Info com.alextern.shortcutexecutors ShortcutExecutors
    .... scores of identified headless apps removed for brevity ... qrcodegenerator.qrcreator.qrmaker.createqrcode QR Code Generator
    rb.camere AllWrite za.kilowatch.ultimatefilemanager Ultimate File Manager Pro
    Saved unplaced user app list to: C:\app\editor\android\scrcpy\nova\unplaced_user_apps.txt

    Press Enter to exit...

    C:\app\editor\android\scrcpy> type adbfolder.py

    #!/usr/bin/env python3
    # ----------------------------------------------------------------------
    # adbfolder.py
    # Usage: python adbfolder.py
    # ----------------------------------------------------------------------
    # This functionality doesn't exist anywhere else in the world (AFAIK).
    # An Android homescreen forensic inventory and archival utility.
    #
    # Outputs a perfect textual inventory, with debug capability, of an Android
    # homescreen, including location of all panes, folders, packages and titles.
    #
    # Requires adb, sqlite3, tabulate and Nova Launcher (on Android).
    # Optionally requires aapt/aapt2 to determine labels on orphan packages.
    #
    # Intended to assist in debug, inventory, archival, backup and restore.
    # Tested on Windows over Wi-Fi/USB, but should work on macOS/Linux also.
    #
    # Will pull a backup from android via adb or read an existing nova db or
    # nova backup archive on windows needing only adb and sql dependencies
    #
    # List order is top to bottom, left to right, meaning the leftmost pane
    # is 1st, then subsequent panes, from 0 to 1 to 2 and so on to the right.
    #
    # Similarly, the topleft folder is 1st, then the next folder to the right.
    #
    # Likewise, packages and titles inside of folders are listed in top to
    # bottom order, left to right, providing an exact textual description.
    #
    # Bare icons, not inside folders, are listed separately as a line item.
    # The dock and folders in the dock are treated much like the panes are.
    #
    # This script not only provides a textual inventory of the name and
    # homescreen location of every folder name, package name and display
    # name ever added to the homescreen, but it optionally will 'diff'
    # against packages which were manually installed by the user but
    # which have no current homescreen icon (i.e., "headless" apps).
    #
    # Note the display_name is the current icon title for a given app icon,
    # which can be changed by the user, so it's not always the original.
    # However, for apps installed by the user but without homescreen icons,
    # the optional lookup pulls the app's original defined Android app_label.
    #
    # Output is appended to a timestamped running log file for traceability.
    # Unless the user wipes out the running log, this becomes an automatic
    # audit of all the physical changes a user has made to the homescreen.
    # ----------------------------------------------------------------------
    # Q: Why is saying YES to "Resolve app titles via adb/aapt" very slow?
    # A: For each of the unplaced packages, the script does:
    # a. adb shell dumpsys package <pkg> to look for nonLocalizedLabel=
    # b. If that fails: adb shell pm path <pkg> to find the APK location
    # c. adb pull <apk> to download the APK to the PC
    # d. aapt dump badging <apk> to read the app label from the APK
    # Which is up to 4 ADB commands times N apps = 4N round-trips.
    # Over USB, each round-trip is fast (milliseconds).
    # But, over Wi-Fi, each one has wireless handshake latency,
    # so the total time adds up just waiting on ADB to return results.
    # ----------------------------------------------------------------------
    # I think this is unique functionality, but please see also:
    # novalaunchereditor
    # <https://github.com/SamLeatherdale/novalaunchereditor>
    # SQLite Viewer
    # <https://www.sqliteview.com/app>
    # Note that Lawnchair purports to import Nova SQL databases
    # <https://github.com/LawnchairLauncher/docs/blob/main/help/core-features/backup-restore-and-reset.md>
    # ----------------------------------------------------------------------
    # v2p0 20261122 Searched the Internet for any application that has this
    # functionality (see references above) and didn't find anything yet.
    # v1p9 20261122 Replaced redundant which() wrapper with a direct
    # shutil.which import so that which("adb"), which("sqlite3"),
    # which("aapt") and which("aapt2") all work out of the box.
    # v1p8 20261121 Fixed bugs in the optional search for orphan packages
    # v1p7 20261121 Modified the closing comments to reflect the python flow
    # Fixed passing of capture_output=True and text=True twice by
    # mistake in the helper section.
    # v1p6 20261121 Ported to adbfolder.py v1p6 (took a half-dozen iterations)
    # Matched output of abfolder.bat v6p1 with adbfolder.py v1p6
    # v1p0 20261121 First attempt at porting adbfolder.bat to adbfolder.py
    # What's different between the batch and python is mostly:
    # a. SQLite queries primarily use Python's built-in sqlite3 module.
    # b. Output tables use the third-party tabulate module.
    # c. Archive extraction uses Python's zipfile.
    # d. Filename sanitization uses Python regular expressions.
    # e. There are no generated PowerShell scripts or BAT subroutines.
    # f. The optional missing-package check uses Python sets to
    # compare installed packages against Nova database packages.
    # g. Debugging is enabled with DEBUG = True or the ADBFOLDER_DEBUG=1
    # environment variable.
    # ----------------------------------------------------------------------
    # ----------------------------------------------------------------------

    import os
    import sys
    import re
    import subprocess
    import shutil
    import sqlite3
    import zipfile
    import logging
    from shutil import which
    from pathlib import Path
    from datetime import datetime
    from tabulate import tabulate

    # ------------------------------------------------------------------------
    # Configuration
    # ------------------------------------------------------------------------
    DEBUG = False # set True for verbose traces

    ADB_EXE = Path(r"C:\app\editor\android\scrcpy\adb.exe")
    SQLITE_EXE = Path(r"C:\app\editor\android\sdk\platform-tools\sqlite3.exe")
    WORK_DIR = Path(r"C:\app\editor\android\scrcpy\nova")
    ANDROID_BCK_DIR = "/storage/emulated/0/0000/bck/nova_backup"
    DEFAULT_CONTAINER = 2921

    TEMP = Path(os.environ.get("TEMP", Path.home() / "tmp"))


    def debug(msg):
    if DEBUG:
    print(f"[DEBUG] {msg}")


    # ------------------------------------------------------------------------
    # Helpers
    # ------------------------------------------------------------------------
    def run(cmd, **kwargs):
    """Run a command and return CompletedProcess."""
    debug(f"Running: {' '.join(map(str, cmd))}")

    kwargs.setdefault("capture_output", True)
    kwargs.setdefault("text", True)
    kwargs.setdefault("encoding", "utf-8")
    kwargs.setdefault("errors", "replace")
    kwargs.setdefault("timeout", 60)

    return subprocess.run(cmd, **kwargs)

    def ensure_dir(path: Path):
    path.mkdir(parents=True, exist_ok=True)


    def prompt(msg, default=None):
    if default is not None:
    msg = f"{msg} [Default: {default}]: "
    else:
    msg = f"{msg}: "
    val = input(msg).strip()
    return val if val else (default or "")


    def yes_no(msg, default="n"):
    val = prompt(f"{msg} [y/N]" if default != "y" else f"{msg} [Y/n]", default)
    return val.lower().startswith("y")

    # ------------------------------------------------------------------------
    # Dependency check
    # ------------------------------------------------------------------------
    def check_dependencies():
    print("Checking required tools (adb and sqlite3) ...")

    # ADB
    global ADB_EXE
    path_adb = which("adb")
    if not ADB_EXE.exists():
    if path_adb:
    print(f"[INFO] Configured ADB_EXE not found; using PATH: {path_adb}")
    ADB_EXE = Path(path_adb)
    else:
    print(f"[WARN] adb.exe not found at '{ADB_EXE}' and not in PATH.")
    else:
    if not path_adb:
    print(f"[INFO] adb.exe found at configured path, though not in PATH.")

    # SQLite
    global SQLITE_EXE
    path_sqlite = which("sqlite3")
    if not SQLITE_EXE.exists():
    if path_sqlite:
    print(f"[INFO] Configured SQLITE_EXE not found; using PATH: {path_sqlite}")
    SQLITE_EXE = Path(path_sqlite)
    else:
    print(f"[ERROR] sqlite3.exe not found at '{SQLITE_EXE}' and not in PATH.")
    input("Press Enter to exit...")
    sys.exit(1)
    else:
    if not path_sqlite:
    print(f"[INFO] sqlite3.exe found at configured path, though not in PATH.")

    ensure_dir(WORK_DIR)

    print(f"Working directory: {Path.cwd()}")
    print(f"Nova work directory: {WORK_DIR}")
    print("----------------")
    print()


    # ------------------------------------------------------------------------
    # ADB helpers
    # ------------------------------------------------------------------------
    def adb_devices():
    """Return list of connected device serials."""
    res = run([str(ADB_EXE), "devices"])
    devices = []
    for line in res.stdout.strip().splitlines()[1:]:
    parts = line.split()
    if parts and "\t" in line or len(parts) >= 2:
    serial = parts[0]
    state = parts[1] if len(parts) > 1 else ""
    if state == "device":
    devices.append(serial)
    return devices


    def adb_shell(serial, cmd):
    return run([str(ADB_EXE), "-s", serial, "shell", cmd])


    def adb_pull(serial, remote, local):
    return run([str(ADB_EXE), "-s", serial, "pull", remote, str(local)])


    def adb_push(serial, local, remote):
    return run([str(ADB_EXE), "-s", serial, "push", str(local), remote])


    # ------------------------------------------------------------------------
    # Backup pull from Android
    # ------------------------------------------------------------------------
    def pull_from_android():
    print("--- Pull Nova Backup from Android ---")

    if not ADB_EXE.exists():
    print(f"[ERROR] adb.exe not found at: '{ADB_EXE}'")
    input("Press Enter to exit...")
    sys.exit(1)

    devices = adb_devices()
    if not devices:
    print("[ERROR] No connected ADB devices found.")
    input("Press Enter to exit...")
    sys.exit(1)

    serial = devices[0]
    debug(f"ADB_TARGET={serial}")
    print(f"Targeting device: {serial}")

    make_bck = yes_no("Open Nova Launcher settings on device to create a new backup first?")
    if make_bck:
    print("Launching Nova Launcher settings on device ...")
    print("Tap Backup & restore > Backup > Save to save to your device")
    run([
    str(ADB_EXE), "-s", serial, "shell",
    "am", "start",
    "-n",
    "com.teslacoilsw.launcher/com.teslacoilsw.launcher.preferences.SettingsActivity"
    ])
    input("Create your backup in Nova Launcher on the device, then press ENTER to list backups.")

    print(f"Listing backups in {ANDROID_BCK_DIR} ...")
    print()

    # List backups in default dir
    res = adb_shell(serial, f"ls -1t '{ANDROID_BCK_DIR}'/*.novabackup 2>/dev/null")

    backups = parse_adb_lines(res.stdout)

    if not backups:
    print(f"[INFO] No .novabackup files found in {ANDROID_BCK_DIR}.")
    print("Searching Android storage for *.novabackup files ...")
    print()

    search_cmd = (
    "for d in /storage/emulated/0 /storage/*; "
    "do [ -d \"$d\" ] && [ \"$d\" != \"/storage/emulated\" ] && "
    "find \"$d\" -maxdepth 5 -name '*.novabackup' 2>/dev/null; done"
    )
    res = adb_shell(serial, search_cmd)
    backups = parse_adb_lines(res.stdout)

    if not backups:
    print(f"[WARN] No .novabackup files found in {ANDROID_BCK_DIR} or Android storage.")
    remote_bck = manual_backup_path()
    else:
    print()
    for i, (fname, fpath) in enumerate(backups, 1):
    print(f" [{i}] {fname}")
    pick = prompt(f"Select backup number [1-{len(backups)}, Default: 1]", "1")
    try:
    idx = int(pick) - 1
    if not (0 <= idx < len(backups)):
    raise ValueError
    except ValueError:
    # Treat as manual path
    remote_bck = manual_backup_path(pick)
    else:
    fname, fpath = backups[idx]
    remote_bck = fpath

    return download_and_extract(serial, remote_bck)


    def parse_adb_lines(text):
    """Parse ADB output into list of (filename, fullpath)."""
    results = []
    for line in text.splitlines():
    line = line.strip().replace("\r", "")
    if not line:
    continue
    path = Path(line)
    fname = path.name
    results.append((fname, line))
    # Newest first, matching `ls -1t`
    results.sort(key=lambda x: x[0], reverse=True)
    return results

    def manual_backup_path(prefill=""):
    if prefill:
    bck_file = prefill.strip().strip('"')
    else:
    bck_file = prompt(
    "Enter backup filename or full Android path "
    "e.g. 2026-11-19_12-57.novabackup"
    )
    if not bck_file:
    print("[ERROR] No backup filename provided.")
    input("Press Enter to exit...")
    sys.exit(1)

    remote_bck = bck_file
    if not remote_bck.startswith("/"):
    remote_bck = f"{ANDROID_BCK_DIR}/{remote_bck}"
    fname = Path(remote_bck).name
    return remote_bck


    def download_and_extract(serial, remote_bck):
    local_bck = WORK_DIR / Path(remote_bck).name
    local_zip = WORK_DIR / "backup.zip"
    extract_dir = WORK_DIR / "backup_extracted"

    print()
    print(f'Pulling "{remote_bck}" to "{local_bck}" ...')
    res = adb_pull(serial, remote_bck, local_bck)
    if res.returncode != 0:
    print("[ERROR] Failed to pull backup from Android.")
    input("Press Enter to exit...")
    sys.exit(1)

    if local_zip.exists():
    local_zip.unlink()

    # Rename pulled file to backup.zip
    shutil.move(str(local_bck), str(local_zip))

    if extract_dir.exists():
    shutil.rmtree(extract_dir)

    print(f"Extracting backup.zip to '{extract_dir}' ...")
    try:
    with zipfile.ZipFile(local_zip, "r") as zf:
    zf.extractall(extract_dir)
    except Exception as e:
    print(f"[ERROR] Failed to extract backup.zip: {e}")
    input("Press Enter to exit...")
    sys.exit(1)

    db_path = extract_dir / "nova.db"
    return db_path


    # ------------------------------------------------------------------------
    # Local source selection
    # ------------------------------------------------------------------------
    def use_local_source():
    print("--- Local Database Selection ---")
    print(f'Enter the path to nova.db or a .novabackup or .zip file.')
    print(f'Default: {WORK_DIR / "backup_extracted" / "nova.db"}')
    print()

    while True:
    user_db = prompt("Path to database or backup file [Enter for default]")
    if not user_db:
    db_path = WORK_DIR / "backup_extracted" / "nova.db"
    else:
    user_db = user_db.strip().strip('"')
    db_path = Path(user_db).resolve()

    if not db_path.exists():
    print(f"[ERROR] File not found: '{db_path}'")
    retry = prompt("Try again? [Y/n]", "y")
    if retry.lower().startswith("n"):
    sys.exit(1)
    continue

    ext = db_path.suffix.lower()
    if ext == ".novabackup":
    return extract_local_archive(db_path, restore_prompt=True)
    elif ext == ".zip":
    return extract_local_archive(db_path, restore_prompt=False)
    else:
    return db_path


    def extract_local_archive(archive_path, restore_prompt=False):
    extract_dir = WORK_DIR / "backup_extracted"
    if extract_dir.exists():
    shutil.rmtree(extract_dir)

    print(f'Extracting "{archive_path}" to "{extract_dir}" ...')
    try:
    with zipfile.ZipFile(archive_path, "r") as zf:
    zf.extractall(extract_dir)
    except Exception as e:
    print(f"[ERROR] Failed to extract archive: {e}")
    input("Press Enter to exit...")
    sys.exit(1)

    db_path = extract_dir / "nova.db"

    if restore_prompt and yes_no("Restore this backup in Nova on the connected device?"):
    restore_backup_to_device(db_path)

    return db_path


    def restore_backup_to_device(db_path):
    if not ADB_EXE.exists():
    print(f"[ERROR] adb.exe not found at '{ADB_EXE}'; cannot send backup to device.")
    input("Press Enter to exit...")
    sys.exit(1)

    devices = adb_devices()
    if not devices:
    print("[ERROR] No connected ADB device found; cannot restore the backup.")
    input("Press Enter to exit...")
    sys.exit(1)

    serial = devices[0]
    nova_backup_dir = "/storage/emulated/0/Android/data/com.teslacoilsw.launcher/files/Backup"

    print(f'Copying "{db_path}" to Nova backup folder on {serial} ...')
    adb_shell(serial, f"mkdir -p '{nova_backup_dir}'")
    res = adb_push(serial, db_path, nova_backup_dir + "/")
    if res.returncode != 0:
    print("[ERROR] Failed to copy the backup to the device.")
    input("Press Enter to exit...")
    sys.exit(1)

    print(f"Launching Nova Launcher settings on {serial} ...")
    run([
    str(ADB_EXE), "-s", serial, "shell",
    "am", "start",
    "-n",
    "com.teslacoilsw.launcher/com.teslacoilsw.launcher.preferences.SettingsActivity"
    ])
    print("In Nova, choose Backup & restore and restore the backup you copied.")


    # ------------------------------------------------------------------------
    # SQLite helpers (use Python sqlite3 module, fall back to CLI)
    # ------------------------------------------------------------------------
    def sqlite_query(db_path, sql, params=()):
    """Execute a SELECT query using Python sqlite3. Returns list of tuples."""
    try:
    conn = sqlite3.connect(str(db_path))
    cur = conn.execute(sql, params)
    rows = cur.fetchall()
    conn.close()
    return rows
    except sqlite3.Error as e:
    print(f"[ERROR] SQLite query failed: {e}")
    input("Press Enter to exit...")
    sys.exit(1)


    def sqlite_query_cli(db_path, sql, params=()):
    """Fallback: write SQL to temp file and run sqlite3 CLI."""
    sql_file = TEMP / "adbfolder_query.sql"
    sql_file.write_text(sql, encoding="utf-8")
    res = run([str(SQLITE_EXE), str(db_path)], input=sql, text=True)
    if res.returncode != 0:
    print(f"[ERROR] sqlite3 CLI failed: {res.stderr}")
    input("Press Enter to exit...")
    sys.exit(1)
    rows = []
    for line in res.stdout.strip().splitlines():
    rows.append(tuple(line.split("\t")))
    return rows


    # ------------------------------------------------------------------------
    # Target enumeration
    # ------------------------------------------------------------------------
    class Target:
    def __init__(self, num, label, where, order):
    self.num = num
    self.label = label
    self.where = where
    self.order = order


    def enumerate_targets(db_path):
    targets = []
    tgt_count = 0
    listed_folder_ids = set()

    # 1. Dock
    print("dock")
    tgt_count += 1
    targets.append(Target(tgt_count, "dock apps", "f.container = -101",
    "f.screen, f.cellY, f.cellX, f.rank, f._id"))
    print(f" [{tgt_count}] dock apps")

    rows = sqlite_query(db_path,
    "SELECT _id, COALESCE(NULLIF(TRIM(title), ''), '(Untitled Folder)') "
    "FROM favorites WHERE itemType = 2 AND container = -101 "
    "ORDER BY cellY, cellX, rank, _id")
    for fid, fname in rows:
    tgt_count += 1
    label = f"dock - {fname}"
    targets.append(Target(tgt_count, label, f"f.container = {fid}",
    "f.rank, f._id"))
    listed_folder_ids.add(str(fid))
    print(f" [{tgt_count}] {fname}")

    # 2. Panes 0-14
    for pane in range(15):
    tgt_count = scan_pane(db_path, pane, targets, tgt_count, listed_folder_ids)

    # 3. Other folders (orphaned folders not under dock or a pane)
    rows = sqlite_query(db_path,
    "SELECT _id, COALESCE(NULLIF(TRIM(title), ''), '(Untitled Folder)') "
    "FROM favorites WHERE itemType = 2 "
    "ORDER BY LOWER(title), _id")
    other_has_folders = False
    for fid, fname in rows:
    if str(fid) in listed_folder_ids:
    continue
    if not other_has_folders:
    print("other")
    other_has_folders = True
    tgt_count += 1
    label = f"other - {fname}"
    targets.append(Target(tgt_count, label, f"f.container = {fid}",
    "f.rank, f._id"))
    print(f" [{tgt_count}] {fname}")

    return targets, tgt_count


    def scan_pane(db_path, pane, targets, tgt_count, listed_folder_ids):
    rows = sqlite_query(db_path,
    "SELECT _id, COALESCE(NULLIF(TRIM(title), ''), '(Untitled Folder)') "
    "FROM favorites WHERE itemType = 2 AND container = -100 "
    "AND CAST(screen AS INTEGER) = ? "
    "ORDER BY cellY, cellX, rank, _id", (pane,))

    loose_cnt = sqlite_query(db_path,
    "SELECT COUNT(*) FROM favorites WHERE container = -100 "
    "AND CAST(screen AS INTEGER) = ? AND itemType <> 2", (pane,))[0][0]

    has_pane_folders = len(rows) > 0
    print_header = has_pane_folders or loose_cnt > 0

    if print_header:
    print(f"pane {pane}")

    for fid, fname in rows:
    tgt_count += 1
    label = f"pane {pane} - {fname}"
    targets.append(Target(tgt_count, label, f"f.container = {fid}",
    "f.rank, f._id"))
    listed_folder_ids.add(str(fid))
    print(f" [{tgt_count}] {fname}")

    if loose_cnt > 0:
    tgt_count += 1
    label = f"pane {pane} loose apps"
    where = (f"f.container = -100 AND CAST(f.screen AS INTEGER) = {pane} "
    f"AND f.itemType <> 2")
    order = "f.cellY, f.cellX, f.rank, f._id"
    targets.append(Target(tgt_count, label, where, order))
    print(f" [{tgt_count}] pane {pane} loose apps")

    return tgt_count

    # ------------------------------------------------------------------------
    # Sanitize label -> safe filename
    # ------------------------------------------------------------------------
    def sanitize_label(label):
    safe = re.sub(r'[\\/:*?"<>|() ]+', '_', label).strip('_')
    if not safe:
    safe = "nova_target"
    return safe


    # ------------------------------------------------------------------------
    # Run query and format output
    # ------------------------------------------------------------------------
    def run_query(db_path, target, work_dir):
    safe_name = sanitize_label(target.label)
    raw_out = work_dir / "output.txt"
    clean_out = work_dir / f"{safe_name}_apps.txt"
    log_out = work_dir / "adbfolder_log.txt"

    sql = f"""
    SELECT f._id AS item_id,
    f.title AS display_name,
    CASE
    WHEN f.iconPackage IS NOT NULL AND LENGTH(TRIM(f.iconPackage)) > 0
    THEN TRIM(f.iconPackage)
    WHEN INSTR(f.intent, 'component=') > 0 THEN
    CASE
    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)
    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)
    ELSE SUBSTR(f.intent, INSTR(f.intent, 'component=') + 10)
    END
    WHEN INSTR(f.intent, 'package=') > 0 THEN
    CASE
    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)
    ELSE SUBSTR(f.intent, INSTR(f.intent, 'package=') + 8)
    END
    ELSE ''
    END AS package_name,
    f.intent
    FROM favorites f
    WHERE {target.where}
    ORDER BY {target.order};
    """

    print()
    print(f'Querying "{target.label}" ...')

    try:
    rows = sqlite_query(db_path, sql)
    except SystemExit:
    rows = sqlite_query_cli(db_path, sql)

    # Write raw tab-delimited output (all columns)
    with open(raw_out, "w", encoding="utf-8") as f:
    f.write("item_id\tdisplay_name\tpackage_name\tintent\n")
    for row in rows:
    f.write("\t".join(str(c) if c is not None else "" for c in row) + "\n")

    # Format only package_name and display_name, in that order
    display_rows = [(row[2], row[1]) for row in rows] # (package_name, display_name)

    table_text = ""
    if display_rows:
    table_text = tabulate(
    display_rows,
    headers=["package_name", "display_name"],
    tablefmt="plain"
    )

    indented = [" " + line for line in table_text.splitlines()]

    # Header matching batch format
    if target.label.startswith("pane ") and " - " in target.label:
    parts = target.label.split(" - ", 1)
    pane_num = parts[0].replace("pane ", "").strip()
    folder_name = parts[1]
    header = f' pane {pane_num} folder "{folder_name}"'
    else:
    header = f" {target.label}"

    clean_text = header + "\n" + "\n".join(indented) + "\n"

    # Write clean output
    clean_out.write_text(clean_text, encoding="utf-8")

    # Append to running log
    timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
    entry = (
    "\n============================================================\n"
    f"Export: {timestamp}\n"
    f"{clean_text}"
    )
    with open(log_out, "a", encoding="utf-8") as f:
    f.write(entry)

    print()
    print(f"--- Result ({clean_out}) ---")
    print()
    print(clean_text)
    print(f"Raw tab-delimited output saved to: {raw_out}")
    print(f"Formatted app list saved to: {clean_out}")
    print(f"Running export log saved to: {log_out}")
    print()

    return clean_out

    # ------------------------------------------------------------------------
    # Optional: check missing third-party packages
    # ------------------------------------------------------------------------

    def check_missing_3p(serial, db_path, work_dir):
    print()
    if not yes_no("Check user apps -3 with no icon in Nova before quitting?"):
    return

    if not ADB_EXE.exists():
    print(f"[INFO] adb.exe not found at '{ADB_EXE}'; skipping device package check.")
    return

    devices = adb_devices()
    if not devices:
    print("[INFO] No connected ADB device found; skipping device package check.")
    return

    target_serial = devices[0]
    debug(f"RUN_ADB_TARGET={target_serial}")

    if not db_path or not db_path.exists():
    print("[INFO] Nova database not available; skipping device package check.")
    return

    resolve_labels = yes_no(
    "Resolve app titles via adb/aapt slower over Wi-Fi?",
    default="n"
    )
    do_resolve = resolve_labels

    pm_3p_file = TEMP / "adbfolder_pm3.txt"
    nova_pkgs_file = TEMP / "adbfolder_nova_pkgs.txt"
    unplaced_out = work_dir / "unplaced_user_apps.txt"

    print(f"Querying third-party packages from device {target_serial} ...")
    res = adb_shell(target_serial, "pm list packages -3 2>/dev/null")
    pm_3p_file.write_text(res.stdout, encoding="utf-8")

    installed3 = set()
    for line in pm_3p_file.read_text(encoding="utf-8").splitlines():
    p = line.replace("\r", "").strip()
    if p.startswith("package:"):
    p = p[8:].strip()
    if p:
    installed3.add(p)

    print("Querying packages referenced anywhere in nova.db ...")
    rows = sqlite_query(db_path,
    "SELECT DISTINCT package_name FROM ("
    " SELECT CASE"
    " WHEN iconPackage IS NOT NULL AND LENGTH(TRIM(iconPackage)) > 0"
    " THEN TRIM(iconPackage)"
    " WHEN INSTR(intent, 'component=') > 0 THEN"
    " CASE"
    " WHEN INSTR(SUBSTR(intent, INSTR(intent, 'component=') + 10), '/') > 0"
    " THEN SUBSTR(SUBSTR(intent, INSTR(intent, 'component=') + 10),"
    " 1, INSTR(SUBSTR(intent, INSTR(intent, 'component=') + 10), '/') - 1)"
    " ELSE SUBSTR(intent, INSTR(intent, 'component=') + 10)"
    " END"
    " ELSE ''"
    " END AS package_name"
    " FROM favorites"
    ")"
    "WHERE LENGTH(package_name) > 0")

    in_nova = set()
    for (pkg,) in rows:
    if pkg:
    in_nova.add(pkg)

    missing = sorted(installed3 - in_nova, key=str.lower)

    results = []
    for i, pkg in enumerate(missing, 1):
    label = ""

    if do_resolve:
    if i % 10 == 1 or i == len(missing):
    print(f"Resolving titles: {i}/{len(missing)} ({pkg})...")

    dump = adb_shell(
    target_serial,
    f"dumpsys package {pkg} 2>/dev/null"
    )

    for dl in dump.stdout.splitlines():
    m = re.search(r'nonLocalizedLabel="([^"]+)"', dl)
    if m:
    label = m.group(1).strip()

    if not label:
    # Try aapt path
    # apk_path = shutil.which("aapt") or shutil.which("aapt2")
    apk_path = which("aapt") or which("aapt2")

    if apk_path:
    path_res = adb_shell(
    target_serial,
    f"pm path {pkg} 2>/dev/null"
    )

    for pl in path_res.stdout.splitlines():
    pl = pl.strip()

    if pl.startswith("package:"):
    apk_remote = pl[8:].strip()
    apk_local = TEMP / "adbfolder_probe.apk"

    pull_res = adb_pull(
    target_serial,
    apk_remote,
    apk_local
    )

    if pull_res.returncode == 0 and apk_local.exists():
    badging = run([
    apk_path,
    "dump",
    "badging",
    str(apk_local)
    ])

    if badging.stdout:
    for bl in badging.stdout.splitlines():
    m = re.match(
    r"^application-label:'([^']+)'",
    bl
    )
    if m:
    label = m.group(1).strip()
    break

    if badging.returncode != 0:
    debug(
    f"AAPT failed for {pkg}: {badging.stderr}"
    )

    try:
    apk_local.unlink()
    except Exception:
    pass

    break

    results.append((pkg, label))

    # Write output
    lines = []
    if results:
    lines.append(
    tabulate(
    results,
    headers=["package_name", "app_title"],
    tablefmt="plain"
    ).splitlines()
    )

    flat = []
    for group in lines:
    flat.extend(group)

    table_text = "\n".join(flat) + ("\n" if flat else "")
    unplaced_out.write_text(table_text, encoding="utf-8")

    print()
    print(
    f"User packages (-3): {len(installed3)} | "
    f"In Nova layout: {len(in_nova)} | "
    f"No icon in Nova: {len(missing)}"
    )

    if results:
    print()
    print(table_text.rstrip())

    print(f"Saved unplaced user app list to: {unplaced_out}")
    print()

    # Cleanup temp files unless debug
    if not DEBUG:
    for f in [pm_3p_file, nova_pkgs_file]:
    try:
    f.unlink()
    except Exception:
    pass
    # ------------------------------------------------------------------------
    # Main
    # ------------------------------------------------------------------------
    def main():
    global DEBUG
    # Allow env override
    if os.environ.get("ADBFOLDER_DEBUG", "0") == "1":
    DEBUG = True

    check_dependencies()

    print("Select source for Nova Launcher database:")
    print("[1] Pull .novabackup from Android via ADB and extract nova.db [Default]")
    print("[2] Use an existing nova.db or .novabackup or .zip already on Windows")
    print()

    src_choice = prompt("Enter choice [1 or 2]", "1")

    if src_choice == "2":
    db_path = use_local_source()
    else:
    db_path = pull_from_android()

    if not db_path or not db_path.exists():
    print(f"[ERROR] nova.db not found at: '{db_path}'")
    input("Press Enter to exit...")
    sys.exit(1)

    print()
    print(f"Using database: {db_path}")
    print("Scanning Nova Launcher dock, panes and folders ...")
    print()

    targets, tgt_count = enumerate_targets(db_path)

    print()
    pick = prompt(f"Select number [1-{tgt_count}, q to quit]")
    if pick.lower() == "q" or pick == "0":
    check_missing_3p(None, db_path, WORK_DIR)
    print("Bye.")
    return

    try:
    idx = int(pick) - 1
    if not (0 <= idx < tgt_count):
    raise ValueError
    except ValueError:
    print(f"[ERROR] Invalid selection: '{pick}'")
    input("Press Enter to exit...")
    sys.exit(1)

    target = targets[idx]

    debug(f"SELECTED_LABEL={target.label}")
    debug(f"SQL_WHERE={target.where}")
    debug(f"SQL_ORDER={target.order}")

    run_query(db_path, target, WORK_DIR)

    while True:
    loop_more = yes_no("Export another folder or pane?", default="n")
    if not loop_more:
    break
    # Re-enumerate (in case something changed) and pick again
    targets, tgt_count = enumerate_targets(db_path)
    print()
    pick = prompt(f"Select number [1-{tgt_count}, q to quit]")
    if pick.lower() == "q" or pick == "0":
    break
    try:
    idx = int(pick) - 1
    if not (0 <= idx < tgt_count):
    raise ValueError
    except ValueError:
    print(f"[ERROR] Invalid selection: '{pick}'")
    break
    target = targets[idx]
    run_query(db_path, target, WORK_DIR)

    check_missing_3p(None, db_path, WORK_DIR)
    input("Press Enter to exit...")


    if __name__ == "__main__":
    main()

    # ----------------------------------------------------------------------
    # end of adbfolder.py
    # ----------------------------------------------------------------------
    # ----------------------------------------------------------------------
    # Step by step description of what this script does
    # ----------------------------------------------------------------------
    # 1. Environment & Configuration Setup
    # A. Command environment
    # a. Initializes Python execution environment
    # b. Imports required Python modules and dependencies
    # B. Configuration variables
    # a. Sets default configuration paths for ADB, SQLite
    # and work directories
    # b. Defines the DEBUG toggle flag
    # c. Defines temporary and Android backup directories
    #
    # 2. Dependency Verification
    # A. Executable checks
    # a. Locates adb.exe and checks system PATH
    # or configured fallback path
    # b. Locates sqlite3.exe and exits with an error if missing
    # B. Directory setup
    # a. Creates the Nova work directory if it does not exist
    #
    # 3. Source Selection Menu
    # A. Choice [1]: Pull from Android via ADB
    # a. Detects connected ADB device target
    # b. Optionally launches Nova Launcher settings to create a backup
    # c. Lists .novabackup files in the remote backup directory
    # with fallback search of Android storage
    # d. Prompts user to select or enter a backup filename/path
    # e. Pulls the selected .novabackup file to the Windows workspace
    # f. Renames the pulled file to backup.zip and extracts it
    # into backup_extracted to retrieve nova.db
    # B. Choice [2]: Use Local Database / Archive
    # a. Prompts user for a custom path to nova.db, .novabackup or .zip
    # with a retry loop
    # b. Validates file existence
    # c. Automatically extracts archives when necessary
    # d. Optionally offers to restore a .novabackup database
    # to the device
    #
    # 4. Database Verification & Target Enumeration
    # A. Database validation
    # a. Verifies that nova.db exists at the target path
    # B. Section 1 [Dock]
    # a. Scans dock apps [container = -101]
    # b. Scans and lists any dock folders
    # C. Section 2 [Panes 0-14]
    # a. Iterates through home screen panes 0 to 14
    # via the scan_pane function
    # b. Queries pane folders [itemType = 2, container = -100]
    # c. Checks for loose non-folder apps [itemType <> 2] on each pane
    # D. Section 3 [Other Folders]
    # a. Searches for orphaned folders not categorized under dock
    # or panes
    # b. Lists and registers remaining folders
    #
    # 5. User Selection & Query Execution [run_query]
    # A. Selection & Sanity
    # a. Prompts user to select a target number or quit [q or 0]
    # b. Sanitizes the selected label to generate a safe filename
    # B. Query Generation & Execution
    # a. Builds a dynamic SQLite query extracting:
    # i. Item ID
    # ii. Display name
    # iii. Package name
    # iv. Raw intent
    # b. Executes the query against nova.db using Python sqlite3
    # c. Falls back to the sqlite3 command-line executable if necessary
    # C. Output & Formatting
    # a. Writes raw tab-delimited results to output.txt
    # b. Formats output columns [package_name, display_name]
    # into an aligned table via tabulate
    # c. Adds a descriptive pane/folder heading and indents the table
    # by two spaces for easier reading and future concatenation
    # d. Saves formatted results to [target]_apps.txt
    # e. Appends each formatted export with a timestamp to
    # adbfolder_log.txt without overwriting previous exports
    # f. Displays the formatted results and output file locations
    # D. Repeat Export
    # a. Prompts user to export another folder or pane
    # b. Re-enumerates targets in case the database layout has changed
    # c. Repeats the selection and export process as requested
    #
    # 6. Optional Unplaced Third-Party Package Check [check_missing_3p]
    # A. Pre-check Validation
    # a. Prompts user whether to check for user-installed packages
    # [-3] missing from the Nova layout
    # b. Verifies ADB device connectivity and database availability
    # c. Optionally prompts to resolve app titles via adb/aapt
    # B. Data Collection
    # a. Queries installed third-party packages from device
    # [adb shell pm list packages -3]
    # b. Queries all referenced packages inside nova.db
    # c. Compares installed packages against packages referenced in Nova
    # C. Optional App Title Resolution
    # a. Runs adb shell dumpsys package for each unplaced package
    # b. Searches for nonLocalizedLabel in the package information
    # c. If unavailable, uses adb shell pm path to locate the APK
    # d. Pulls the APK to the PC and uses aapt/aapt2 to read its label
    # D. Diff Analysis & Output
    # a. Identifies installed third-party packages with no Nova icon
    # b. Generates a formatted package_name / app_title table
    # c. Saves results to unplaced_user_apps.txt
    # d. Displays package counts and the resulting unplaced app list
    # E. Cleanup
    # a. Removes temporary package-list files unless DEBUG=1
    # b. Exits cleanly
    # -------------------------------------------------------------------
    # -------------------------------------------------------------------
    --
    Usenet is where you can sometimes find people who know more than you do.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 17:45:34 2026
    From Newsgroup: comp.sys.mac.system

    Lawrence D˙Oliveiro wrote:
    But I see that instead of writing cur = conn.cursor(),
    cur.execute(...), and cur.fetchall() in every query function, your
    suggestion allows us to create a cursor, run a cmd with bound
    values, and yield rows one at a time as a generator instead of
    loading everything into a list up front, where mapfn lets us
    optionally transform each row on the fly to pull a single column.

    You see why all languages are not the same. The concept of what is ´high-levelˇ has progressed somewhat since the 1970s.

    Hi Lawrence,

    This is about philosophy...

    You're likely a coder. I'm decidedly not. That tempers our philosophies. Neither is right or wrong & certainly most people would say what you did.

    To people, every car is different.
    To most people, every rock is the same.

    Hmmm...

    To me, every car is the same (they're just commodities).
    But every rock is different (since I love geology).

    Notice something there... about "loving" something, versus just "using" it.

    To make that loving-vs-using clearer

    To most people every hammer is the same.
    To me, every hammer is (just about) the same.

    Hmmm... a hammer is just a tool for getting a job done.

    What am I getting at...

    When I program, it's a means to the end.
    It's not an end in and of itself.

    To me, all languages do the same damn thing.
    Just with idiotically absurd crazy meaningless syntax differences.

    Bear in mind, I hate coding.
    What I hate most is putting a character in the wrong spot.

    And being penalized for hours simply for making a syntax mistake.
    Which is meaningless.

    I wasted my time on a syntax error when it was meaningless to even enforce
    that syntax in the first place. Hmmm... that's not what you hear from
    coders.

    But I'm not a coder.

    Now, rest assured I've coded in hex (so to speak), as I wrote assembly code
    for a Motorola 68701 that I wired way back in the 80s', and that's the only pure language that doesn't have "too many" syntax issues.

    Anyway, I certainly UNDERSTAND why a coder, like you appear to be, would
    like a lot about python, but for me, a decidedly non coder, I didn't see
    much of additional value OTHER THAN it's way better than batch coding was.

    Notice I agree on this with you.
    1. My batch code had to include a ton of stupid tricks (e.g., powershell)
    2. The python equivalent didn't need anywhere nearly as many stupid tricks

    So, we agree. Python coding was very much less hateful than the batch was.
    --
    Usenet is kind-hearted intelligent people helping each other do things.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 17:53:46 2026
    From Newsgroup: comp.sys.mac.system

    Maria Sophia wrote:
    So, we agree. Python coding was very much less hateful than the batch was.

    BTW, while it's not a fair fight, given I had started from scratch on the Windows batch code, look at the time-lapse of the version changes...

    C:\app\editor\android\scrcpy> dir adbfolder*
    Directory of C:\app\editor\android\scrcpy
    11/22/2026 06:27 AM 49,526 adbfolder.bat
    11/19/2026 10:59 PM 8,392 adbfolder.bat_v1p0.txt
    11/19/2026 11:17 PM 10,960 adbfolder.bat_v1p1.txt
    11/19/2026 11:20 PM 11,324 adbfolder.bat_v1p2.txt
    11/19/2026 11:23 PM 12,712 adbfolder.bat_v1p3.txt
    11/19/2026 11:48 PM 13,732 adbfolder.bat_v1p4.txt
    11/19/2026 11:52 PM 15,500 adbfolder.bat_v1p5.txt
    11/19/2026 11:56 PM 15,646 adbfolder.bat_v1p6.txt
    11/20/2026 12:08 AM 17,612 adbfolder.bat_v1p7.txt
    11/20/2026 12:13 AM 20,506 adbfolder.bat_v1p8.txt
    11/20/2026 12:24 AM 21,847 adbfolder.bat_v1p9.txt
    11/20/2026 12:27 AM 21,976 adbfolder.bat_v2p0.txt
    11/20/2026 12:31 AM 22,565 adbfolder.bat_v2p1.txt
    11/20/2026 12:39 AM 25,095 adbfolder.bat_v2p2.txt
    11/20/2026 12:49 AM 19,915 adbfolder.bat_v2p3.txt
    11/20/2026 01:07 AM 22,339 adbfolder.bat_v2p4.txt
    11/20/2026 01:12 AM 22,539 adbfolder.bat_v2p5.txt
    11/20/2026 01:16 AM 22,615 adbfolder.bat_v2p6.txt
    11/20/2026 01:25 AM 22,315 adbfolder.bat_v2p7.txt
    11/20/2026 01:26 AM 22,811 adbfolder.bat_v2p8.txt
    11/20/2026 01:53 AM 26,974 adbfolder.bat_v2p9.txt
    11/20/2026 02:10 AM 27,537 adbfolder.bat_v3p0.txt
    11/20/2026 02:13 AM 28,815 adbfolder.bat_v3p1.txt
    11/20/2026 02:16 AM 30,225 adbfolder.bat_v3p2.txt
    11/20/2026 02:23 AM 30,856 adbfolder.bat_v3p3.txt
    11/20/2026 02:26 AM 33,435 adbfolder.bat_v3p4.txt
    11/20/2026 02:29 AM 33,541 adbfolder.bat_v3p5.txt
    11/20/2026 02:41 AM 34,672 adbfolder.bat_v3p6.txt
    11/20/2026 03:02 AM 35,318 adbfolder.bat_v3p7.txt
    11/20/2026 03:09 AM 36,169 adbfolder.bat_v3p8.txt
    11/20/2026 03:13 AM 30,020 adbfolder.bat_v3p9.txt
    11/20/2026 03:27 AM 35,595 adbfolder.bat_v4p0.txt
    11/20/2026 03:38 AM 36,131 adbfolder.bat_v4p1.txt
    11/20/2026 03:42 AM 36,028 adbfolder.bat_v4p2.txt
    11/20/2026 03:55 AM 36,312 adbfolder.bat_v4p3.txt
    11/20/2026 04:00 AM 36,316 adbfolder.bat_v4p4.txt
    11/20/2026 04:10 AM 37,178 adbfolder.bat_v4p5.txt
    11/20/2026 04:10 AM 30,190 adbfolder.bat_v4p6.txt
    11/20/2026 04:39 AM 31,783 adbfolder.bat_v4p7.txt
    11/20/2026 04:51 AM 31,923 adbfolder.bat_v4p8.txt
    11/20/2026 04:53 AM 30,991 adbfolder.bat_v4p9.txt
    11/20/2026 04:57 AM 31,593 adbfolder.bat_v5p0.txt
    11/20/2026 05:00 AM 31,144 adbfolder.bat_v5p1.txt
    11/20/2026 05:04 AM 31,064 adbfolder.bat_v5p2.txt
    11/20/2026 05:18 AM 38,215 adbfolder.bat_v5p3.txt
    11/20/2026 05:52 AM 42,401 adbfolder.bat_v5p4.txt
    11/21/2026 01:09 AM 43,764 adbfolder.bat_v5p5.txt
    11/21/2026 02:59 PM 45,057 adbfolder.bat_v5p6.txt
    11/21/2026 03:26 PM 46,559 adbfolder.bat_v5p7.txt
    11/21/2026 03:36 PM 46,781 adbfolder.bat_v5p8.txt
    11/21/2026 04:10 PM 48,281 adbfolder.bat_v5p9.txt
    11/21/2026 04:26 PM 48,307 adbfolder.bat_v6.0.txt
    11/21/2026 09:42 PM 49,634 adbfolder.bat_v6p0.txt
    11/21/2026 10:41 PM 49,146 adbfolder.bat_v6p1.txt
    11/22/2026 06:27 AM 49,526 adbfolder.bat_v6p2.txt
    11/22/2026 03:28 PM 41,455 adbfolder.py
    11/21/2026 08:27 PM 29,889 adbfolder.py_v1p0.txt
    11/21/2026 08:28 PM 29,696 adbfolder.py_v1p1.txt
    11/21/2026 08:32 PM 29,551 adbfolder.py_v1p2.txt
    11/21/2026 08:41 PM 29,857 adbfolder.py_v1p3.txt
    11/21/2026 08:54 PM 29,937 adbfolder.py_v1p4.txt
    11/21/2026 10:17 PM 29,941 adbfolder.py_v1p5.txt
    11/22/2026 02:09 AM 37,477 adbfolder.py_v1p6.txt
    11/22/2026 02:36 AM 39,362 adbfolder.py_v1p7.txt
    11/22/2026 02:55 AM 40,481 adbfolder.py_v1p8.txt
    11/22/2026 05:43 AM 40,709 adbfolder.py_v1p9.txt
    11/22/2026 03:28 PM 41,455 adbfolder.py_v2p0.txt


    Remember, this all started because I was too lazy to write down
    the display name and then look up the package name for the 20
    apps in my homescreen "weather" folder, so now I can do that
    in only about 30 seconds! :)


    C:\app\editor\android\scrcpy> adbfolder.bat
    Checking required tools (adb and sqlite3) ...
    Working directory: "C:\app\editor\android\scrcpy"
    Nova work directory: "C:\app\editor\android\scrcpy\nova"
    ----------------

    Select source for Nova Launcher database:
    [1] Pull .novabackup from Android via ADB and extract nova.db [Default]
    [2] Use an existing nova.db or .novabackup or .zip already on Windows

    Enter choice [1 or 2]: 1

    --- Pull Nova Backup from Android ---
    Targeting device: 192.168.1.4:5555
    Open Nova Launcher settings on device to create a new backup first? [y/N]:
    n Listing backups in
    /storage/emulated/0/0000/bck/nova_backup ...
    [1] 2026-11-21_16-55.novabackup
    [2] 2026-11-21_16-37.novabackup
    [3] 2026-11-21_11-39.novabackup
    [4] 2026-11-21_11-05.novabackup
    [5] 2026-11-21_10-26.novabackup
    [6] 2026-11-20_21-09.novabackup
    [7] 2026-11-20_20-49.novabackup
    [8] 2026-11-20_20-48.novabackup
    [9] 2026-11-20_00-43.novabackup
    [10] 2026-11-20_00-28.novabackup
    [11] 2026-11-19_12-57.novabackup
    [12] 2026-08-19_21-51.novabackup
    [13] 2026-08-19_11-31.novabackup
    [14] 2026-08-16_11-36.novabackup

    Select backup number [1-14, Default: 1]: 1

    Pulling
    "/storage/emulated/0/0000/bck/nova_backup/2026-11-21_16-55.novabackup" to "C:\app\editor\android\scrcpy\nova\2026-11-21_16-55.novabackup" ... /storage/emulated/0/0000/bck/nova_backup/2026-... 0 skipped. 3.3 MB/s
    (6576523 bytes in 1.884s)
    Extracting backup.zip to
    "C:\app\editor\android\scrcpy\nova\backup_extracted" ...

    Using database:
    "C:\app\editor\android\scrcpy\nova\backup_extracted\nova.db"
    Scanning Nova Launcher dock, panes and folders ...

    dock
    [1] dock apps
    [2] shortcuts
    pane 0
    [3] track
    [4] Remote
    [5] TTS
    [6] webcam
    [7] todo
    [8] automate
    [9] obd
    [10] stuff
    [11] sos
    [12] Clock
    [13] backgnd
    [14] converter
    [15] privacy
    [16] SvcMode
    [17] epub
    [18] PlantID
    [19] hike
    [20] motion
    [21] toon
    [22] shortcut
    pane 1
    [23] time
    [24] comms
    [25] buy
    [26] files
    [27] net
    [28] web
    [29] weather
    [30] nature
    [31] auto
    [32] pic
    [33] audio
    [34] vid
    [35] todo
    [36] spoof
    [37] sensor
    [38] apk
    [39] sys

    Select number [1-39, q to quit]: 29

    Querying "pane 1 - weather" ...

    --- Result (C:\app\editor\android\scrcpy\nova\pane_1_-_weather_apps.txt)
    ---

    pane 1 folder "weather"
    package_name display_name
    ------------ ------------
    com.accuweather.android AccuWeather
    co.windyapp.android Windy.app
    aerow.us.aerowind AeroWind
    com.airvisual AirVisual
    org.asdtm.goodweather Good Weather
    com.macca895.sunriise Hey Sunrise
    com.lholman.hiweather hiweather
    com.neverads.just_weather just weather
    org.androworks.klara Klara
    uk.co.openweather OpenWeather
    org.woheller69.weather RadarWeather
    com.yoshi.rain Rain
    org.breezyweather Weather
    wangdaye.com.geometricweather Weather
    com.alexplas.weathernew Weather
    info.vazquezsoftware.weatheralarms Weather Alerts
    com.la.local.weather.forecast.app Weather Forecast
    com.windhub.marine.weather WindHub
    com.windyty.android Windy
    no.nrk.yr Yr

    Raw tab-delimited output saved to: "C:\app\editor\android\scrcpy\nova\output.txt"
    Formatted app list saved to: "C:\app\editor\android\scrcpy\nova\pane_1_-_weather_apps.txt"
    Running export log saved to: "C:\app\editor\android\scrcpy\nova\adbfolder_log.txt"

    Export another folder or pane? [y/N]: n

    Check user apps -3 with no icon in Nova before quitting? [y/N]: n
    Press any key to continue . . .

    C:\app\editor\android\scrcpy>
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 18:03:06 2026
    From Newsgroup: comp.sys.mac.system

    Lawrence D'Oliveiro wrote:

    You see why all languages are not the same. The concept of what is
    high-level has progressed somewhat since the 1970s.

    This is about philosophy...

    I showed you an example where it was a bit more than just
    philosophy, did I not: Python offers constructs that let you do more
    with less code, than perhaps what you were used to. Less code to write
    means less effort and time required, less chance for bugs to get in,
    and less ongoing maintenance effort required into the future.

    Hi Lawrence,

    Fair point. And I think I may have been so busy explaining my philosophy
    about how much I hate syntax issues in programming that I didn't give your actual example the thoughtful attention it deserved.

    You're right. Your example demonstrates something more substantive than
    simply having different syntax or a different programming philosophy.

    The generator approach, for instance, isn't just a shorter way of writing
    the same code. It can change how I can approach the problem. Being able to yield rows as they're needed, rather than loading everything into memory,
    is a genuine functional advantage. And being able to encapsulate the
    repetitive database operations in a reusable helper reduces both code and opportunities for mistakes.

    Hence, I apologize for going overboard on how much I hate syntax to easily
    and openly agree with you about the benefits of doing more with less code.
    Less boilerplate, fewer opportunities for errors, and less maintenance down
    the road are all things I appreciate. In fact, the whole point of writing
    the code was to be able to do in 30 seconds what would have taken me, oh,
    maybe an hour to do manually (for a few folders).

    I'm all for investing up front for a later return on that investment.

    In fact, your help with my experience with Python has already demonstrated exactly the point you're making. Compared with my original Windows batch/PowerShell approach, the Python implementation required considerably fewer nutty workarounds and much less convoluted code as a result.

    So perhaps I'm giving Python less credit than it deserves simply because
    I'm looking at it through the lens of someone who would rather be doing something else than looking up the syntax rules when it throws an error.

    I do appreciate your APSW suggestion and, more importantly, your taking the time to show me a better way of approaching the database code.

    You're being kind, informative, and helpful.
    I don't want my philosophical ramblings to obscure that!

    Thanks for the discussion.
    Apologies for going overboard on my hatred for syntax. :)
    Nolo contendere.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 22:12:18 2026
    From Newsgroup: comp.sys.mac.system

    Lawrence D˘Oliveiro wrote:
    On Sun, 22 Nov 2026 17:53:46 -0400, Maria Sophia wrote:

    C:\app\editor\android\scrcpy> dir adbfolder*
    Directory of C:\app\editor\android\scrcpy
    11/22/2026 06:27 AM 49,526 adbfolder.bat
    11/19/2026 10:59 PM 8,392 adbfolder.bat_v1p0.txt
    11/19/2026 11:17 PM 10,960 adbfolder.bat_v1p1.txt
    11/19/2026 11:20 PM 11,324 adbfolder.bat_v1p2.txt
    11/19/2026 11:23 PM 12,712 adbfolder.bat_v1p3.txt
    [etc, etc]

    Have you thought of using version control?

    Funny you mention data management version (DM) control... as I have to
    points on that rather extremely important topic...

    1. I screwed up a lot!
    Quite a few times my fingermemory hit the gvim bangwritequit and then
    I would type the name but I'd type the wrong name 'cuz they're
    similar in both name and version numbering system.

    2. There is tons of DM in the comments, probably more than with most.

    But yes, a proper version-control system would be useful but I've never set
    one up. Is there a simple-to-use reasonably good free dm system available?

    Looking it up, there seems to be the following that may be of use:
    <https://tortoisegit.org/download/>
    <https://git-scm.com/install/windows>

    Git for Windows + TortoiseGit, with a very simple operating model
    is what I may consider.
    1. Git for Windows is the version-control engine
    2. TortoiseGit is the Windows GUI to it

    Any other suggestions?

    Anything would likely be better'n this...

    C:\app\editor\android\scrcpy> dir adb*

    Directory of C:\app\editor\android\scrcpy

    11/21/2026 12:09 AM 27,142 adbconnect.bat
    06/11/2026 11:10 PM 3,461 adbconnect.bat.v1p1.txt
    06/11/2026 10:55 PM 2,441 adbconnect.bat_v1p0.txt
    06/11/2026 11:16 PM 5,126 adbconnect.bat_v1p2.txt
    06/11/2026 11:26 PM 5,590 adbconnect.bat_v1p3.txt
    06/13/2026 12:03 PM 5,870 adbconnect.bat_v1p4.txt
    06/15/2026 02:00 PM 6,293 adbconnect.bat_v1p5.txt
    06/15/2026 02:38 PM 8,437 adbconnect.bat_v1p6.txt
    06/20/2026 02:48 AM 9,553 adbconnect.bat_v1p7.txt
    06/20/2026 03:17 AM 7,868 adbconnect.bat_v1p8.txt
    06/21/2026 01:49 AM 9,519 adbconnect.bat_v1p9.txt
    06/21/2026 05:54 PM 5,473 adbconnect.bat_v2p0.txt
    06/21/2026 05:54 PM 6,033 adbconnect.bat_v2p1.txt
    06/27/2026 04:02 AM 8,451 adbconnect.bat_v2p2.txt
    06/29/2026 10:19 PM 14,975 adbconnect.bat_v2p4.txt
    07/12/2026 01:39 PM 9,991 adbconnect.bat_v2p5.txt
    08/09/2026 03:09 PM 13,858 adbconnect.bat_v2p6.txt
    08/09/2026 11:36 PM 14,241 adbconnect.bat_v2p7.txt
    08/30/2026 12:09 AM 15,309 adbconnect.bat_v2p8.txt
    08/30/2026 12:13 AM 15,664 adbconnect.bat_v2p9.txt
    08/30/2026 12:23 AM 16,885 adbconnect.bat_v3p0.txt
    09/03/2026 06:52 PM 18,577 adbconnect.bat_v3p1.txt
    09/13/2026 12:40 PM 19,475 adbconnect.bat_v3p2.txt
    11/06/2026 10:19 AM 19,901 adbconnect.bat_v3p3.txt
    11/06/2026 11:08 AM 23,137 adbconnect.bat_v3p4.txt
    11/06/2026 12:02 PM 24,694 adbconnect.bat_v3p5.txt
    11/20/2026 11:25 PM 26,635 adbconnect.bat_v3p6.txt
    11/21/2026 12:09 AM 27,142 adbconnect.bat_v3p7.txt
    06/16/2026 03:38 PM 3,897 adbconnect.readme.txt
    06/20/2026 03:28 AM 2,813 adbconnect.sh
    06/11/2026 02:33 PM 830 adbconnect.vbs
    06/10/2026 04:10 AM 3,139 adbconnect.vbs.txt
    11/21/2026 12:19 AM 10,976 adbconnecttls.bat
    06/29/2026 09:52 PM 2,996 adbconnecttls.bat_v1p0.txt
    06/29/2026 09:56 PM 4,007 adbconnecttls.bat_v1p1.txt
    06/29/2026 09:58 PM 4,728 adbconnecttls.bat_v1p2.txt
    06/29/2026 10:03 PM 5,789 adbconnecttls.bat_v1p3.txt
    08/30/2026 12:08 AM 7,415 adbconnecttls.bat_v1p4.txt
    09/30/2026 07:01 PM 8,961 adbconnecttls.bat_v1p5.txt
    08/30/2026 12:33 AM 8,888 adbconnecttls.bat_v1p6.txt
    10/30/2026 01:52 PM 9,377 adbconnecttls.bat_v1p7.txt
    11/20/2026 11:32 PM 10,521 adbconnecttls.bat_v1p8.txt
    11/21/2026 12:19 AM 10,976 adbconnecttls.bat_v1p9.txt
    06/27/2026 08:30 AM 1,016 adbconnecttls.vbs
    10/27/2026 01:58 PM 18,036 adbcopy.bat
    07/08/2026 07:38 AM 15,462 adbcopy.bat_comments
    05/28/2026 01:27 PM 1,723 adbcopy.bat_v1p0.txt
    05/28/2026 01:30 PM 1,644 adbcopy.bat_v1p1.txt
    05/28/2026 01:33 PM 3,114 adbcopy.bat_v1p2.bat
    05/28/2026 01:34 PM 3,387 adbcopy.bat_v1p3.txt
    05/28/2026 01:37 PM 4,335 adbcopy.bat_v1p4.txt
    05/28/2026 01:44 PM 4,640 adbcopy.bat_v1p5.txt
    05/28/2026 01:45 PM 2,851 adbcopy.bat_v1p6.txt
    05/28/2026 01:47 PM 2,899 adbcopy.bat_v1p7.txt
    05/28/2026 01:49 PM 3,021 adbcopy.bat_v1p8.txt
    06/13/2026 10:59 PM 3,740 adbcopy.bat_v1p9.txt
    06/17/2026 10:40 PM 3,825 adbcopy.bat_v2p0.txt
    06/21/2026 05:41 AM 5,562 adbcopy.bat_v2p2.txt
    07/07/2026 06:45 PM 5,090 adbcopy.bat_v2p3.txt
    07/07/2026 06:50 PM 5,883 adbcopy.bat_v2p4.txt
    07/08/2026 07:00 AM 9,351 adbcopy.bat_v2p5.txt
    07/08/2026 07:25 AM 15,167 adbcopy.bat_v2p6.txt
    07/08/2026 07:44 AM 9,068 adbcopy.bat_v2p7.txt
    07/08/2026 07:53 AM 9,303 adbcopy.bat_v2p8.txt
    07/08/2026 08:10 AM 9,693 adbcopy.bat_v2p9.txt
    07/08/2026 10:44 AM 9,881 adbcopy.bat_v3p0.txt
    07/27/2026 12:58 PM 10,879 adbcopy.bat_v3p1.txt
    07/27/2026 01:01 PM 11,988 adbcopy.bat_v3p2.txt
    07/27/2026 01:03 PM 12,583 adbcopy.bat_v3p3.txt
    08/01/2026 02:50 AM 12,847 adbcopy.bat_v3p4.txt
    08/01/2026 02:57 AM 12,981 adbcopy.bat_v3p5.txt
    09/28/2026 09:50 PM 13,275 adbcopy.bat_v3p6.txt
    09/28/2026 09:55 PM 13,578 adbcopy.bat_v3p7.txt
    10/23/2026 06:01 PM 15,638 adbcopy.bat_v3p8.txt
    10/23/2026 06:01 PM 15,064 adbcopy.bat_v3p9.txt
    10/23/2026 06:01 PM 16,571 adbcopy.bat_v4p0.txt
    10/23/2026 06:07 PM 16,838 adbcopy.bat_v4p1.txt
    10/27/2026 01:53 PM 17,949 adbcopy.bat_v4p2.txt
    10/27/2026 01:58 PM 18,036 adbcopy.bat_v4p3.txt
    08/01/2026 03:06 AM 11,140 adbcopy_debug.bat
    06/27/2026 03:28 PM 3,616 adbdebug.bat_v1p0.txt
    11/06/2026 10:27 AM 7,129 adbdebug.txt
    11/21/2026 12:38 AM 24,197 adbdebugtls.bat
    06/29/2026 07:53 PM 7,982 adbdebugtls.bat_v1p0.txt
    06/29/2026 08:29 PM 11,207 adbdebugtls.bat_v1p1.bat
    06/29/2026 08:44 PM 13,028 adbdebugtls.bat_v1p2.txt
    06/29/2026 09:05 PM 13,918 adbdebugtls.bat_v1p3.txt
    06/29/2026 09:47 PM 15,226 adbdebugtls.bat_v1p4.txt
    06/29/2026 10:37 PM 16,691 adbdebugtls.bat_v1p5.txt
    07/12/2026 01:52 PM 18,131 adbdebugtls.bat_v1p6.txt
    11/21/2026 12:21 AM 18,008 adbdebugtls.bat_v1p7.txt
    07/12/2026 03:14 PM 22,311 adbdebugtls.bat_v1p8.txt
    07/12/2026 06:23 PM 27,638 adbdebugtls.bat_v1p9.txt
    08/07/2026 09:55 PM 23,754 adbdebugtls.bat_v2p0.txt
    08/09/2026 02:04 PM 23,971 adbdebugtls.bat_v2p1.txt
    11/21/2026 12:38 AM 24,197 adbdebugtls.bat_v2p2.txt
    07/13/2026 08:43 PM 3,294 adbevent.bat_v1p0.txt
    07/14/2026 12:26 PM 3,906 adbevent.bat_v1p1.txt
    11/22/2026 06:27 AM 49,526 adbfolder.bat
    11/19/2026 10:59 PM 8,392 adbfolder.bat_v1p0.txt
    11/19/2026 11:17 PM 10,960 adbfolder.bat_v1p1.txt
    11/19/2026 11:20 PM 11,324 adbfolder.bat_v1p2.txt
    11/19/2026 11:23 PM 12,712 adbfolder.bat_v1p3.txt
    11/19/2026 11:48 PM 13,732 adbfolder.bat_v1p4.txt
    11/19/2026 11:52 PM 15,500 adbfolder.bat_v1p5.txt
    11/19/2026 11:56 PM 15,646 adbfolder.bat_v1p6.txt
    11/20/2026 12:08 AM 17,612 adbfolder.bat_v1p7.txt
    11/20/2026 12:13 AM 20,506 adbfolder.bat_v1p8.txt
    11/20/2026 12:24 AM 21,847 adbfolder.bat_v1p9.txt
    11/20/2026 12:27 AM 21,976 adbfolder.bat_v2p0.txt
    11/20/2026 12:31 AM 22,565 adbfolder.bat_v2p1.txt
    11/20/2026 12:39 AM 25,095 adbfolder.bat_v2p2.txt
    11/20/2026 12:49 AM 19,915 adbfolder.bat_v2p3.txt
    11/20/2026 01:07 AM 22,339 adbfolder.bat_v2p4.txt
    11/20/2026 01:12 AM 22,539 adbfolder.bat_v2p5.txt
    11/20/2026 01:16 AM 22,615 adbfolder.bat_v2p6.txt
    11/20/2026 01:25 AM 22,315 adbfolder.bat_v2p7.txt
    11/20/2026 01:26 AM 22,811 adbfolder.bat_v2p8.txt
    11/20/2026 01:53 AM 26,974 adbfolder.bat_v2p9.txt
    11/20/2026 02:10 AM 27,537 adbfolder.bat_v3p0.txt
    11/20/2026 02:13 AM 28,815 adbfolder.bat_v3p1.txt
    11/20/2026 02:16 AM 30,225 adbfolder.bat_v3p2.txt
    11/20/2026 02:23 AM 30,856 adbfolder.bat_v3p3.txt
    11/20/2026 02:26 AM 33,435 adbfolder.bat_v3p4.txt
    11/20/2026 02:29 AM 33,541 adbfolder.bat_v3p5.txt
    11/20/2026 02:41 AM 34,672 adbfolder.bat_v3p6.txt
    11/20/2026 03:02 AM 35,318 adbfolder.bat_v3p7.txt
    11/20/2026 03:09 AM 36,169 adbfolder.bat_v3p8.txt
    11/20/2026 03:13 AM 30,020 adbfolder.bat_v3p9.txt
    11/20/2026 03:27 AM 35,595 adbfolder.bat_v4p0.txt
    11/20/2026 03:38 AM 36,131 adbfolder.bat_v4p1.txt
    11/20/2026 03:42 AM 36,028 adbfolder.bat_v4p2.txt
    11/20/2026 03:55 AM 36,312 adbfolder.bat_v4p3.txt
    11/20/2026 04:00 AM 36,316 adbfolder.bat_v4p4.txt
    11/20/2026 04:10 AM 37,178 adbfolder.bat_v4p5.txt
    11/20/2026 04:10 AM 30,190 adbfolder.bat_v4p6.txt
    11/20/2026 04:39 AM 31,783 adbfolder.bat_v4p7.txt
    11/20/2026 04:51 AM 31,923 adbfolder.bat_v4p8.txt
    11/20/2026 04:53 AM 30,991 adbfolder.bat_v4p9.txt
    11/20/2026 04:57 AM 31,593 adbfolder.bat_v5p0.txt
    11/20/2026 05:00 AM 31,144 adbfolder.bat_v5p1.txt
    11/20/2026 05:04 AM 31,064 adbfolder.bat_v5p2.txt
    11/20/2026 05:18 AM 38,215 adbfolder.bat_v5p3.txt
    11/20/2026 05:52 AM 42,401 adbfolder.bat_v5p4.txt
    11/21/2026 01:09 AM 43,764 adbfolder.bat_v5p5.txt
    11/21/2026 02:59 PM 45,057 adbfolder.bat_v5p6.txt
    11/21/2026 03:26 PM 46,559 adbfolder.bat_v5p7.txt
    11/21/2026 03:36 PM 46,781 adbfolder.bat_v5p8.txt
    11/21/2026 04:10 PM 48,281 adbfolder.bat_v5p9.txt
    11/21/2026 09:42 PM 49,634 adbfolder.bat_v6p0.txt
    11/21/2026 10:41 PM 49,146 adbfolder.bat_v6p1.txt
    11/22/2026 06:27 AM 49,526 adbfolder.bat_v6p2.txt
    11/22/2026 03:28 PM 41,455 adbfolder.py
    11/21/2026 08:27 PM 29,889 adbfolder.py_v1p0.txt
    11/21/2026 08:28 PM 29,696 adbfolder.py_v1p1.txt
    11/21/2026 08:32 PM 29,551 adbfolder.py_v1p2.txt
    11/21/2026 08:41 PM 29,857 adbfolder.py_v1p3.txt
    11/21/2026 08:54 PM 29,937 adbfolder.py_v1p4.txt
    11/21/2026 10:17 PM 29,941 adbfolder.py_v1p5.txt
    11/22/2026 02:09 AM 37,477 adbfolder.py_v1p6.txt
    11/22/2026 02:36 AM 39,362 adbfolder.py_v1p7.txt
    11/22/2026 02:55 AM 40,481 adbfolder.py_v1p8.txt
    11/22/2026 05:43 AM 40,709 adbfolder.py_v1p9.txt
    11/22/2026 03:28 PM 41,455 adbfolder.py_v2p0.txt
    06/19/2026 04:56 PM 6,764 adblogcat.bat
    06/19/2026 04:19 PM 2,492 adblogcat.bat_v1p0.txt
    06/19/2026 04:36 PM 3,397 adblogcat.bat_v1p2.txt
    06/19/2026 04:38 PM 3,397 adblogcat.bat_v1p3.txt
    06/19/2026 04:40 PM 3,833 adblogcat.bat_v1p4.txt
    06/19/2026 04:56 PM 6,764 adblogcat.bat_v1p5.txt
    11/21/2026 12:50 AM 5,345 adbrecent.bat
    11/13/2026 12:38 PM 1,040 adbrecent.bat_v1p0.txt
    11/13/2026 12:44 PM 1,087 adbrecent.bat_v1p1.txt
    11/13/2026 12:47 PM 1,095 adbrecent.bat_v1p2.txt
    11/13/2026 12:59 PM 1,366 adbrecent.bat_v1p3.txt
    11/13/2026 01:01 PM 1,792 adbrecent.bat_v1p4.txt
    11/13/2026 01:05 PM 1,873 adbrecent.bat_v1p5.txt
    11/13/2026 01:17 PM 2,043 adbrecent.bat_v1p6.txt
    11/13/2026 01:25 PM 2,200 adbrecent.bat_v1p7.txt
    11/13/2026 01:30 PM 2,643 adbrecent.bat_v1p8.txt
    11/13/2026 01:31 PM 2,846 adbrecent.bat_v1p9.txt
    11/13/2026 01:35 PM 3,659 adbrecent.bat_v2p0.txt
    11/13/2026 01:44 PM 3,689 adbrecent.bat_v2p1.txt
    11/13/2026 01:43 PM 3,820 adbrecent.bat_v2p2.txt
    11/13/2026 01:49 PM 4,242 adbrecent.bat_v2p3.txt
    11/13/2026 02:45 PM 5,384 adbrecent.bat_v2p4.txt
    11/21/2026 12:50 AM 58 adbrecent_ignore.txt
    09/27/2026 05:01 AM 10,273 adbreinstall.bat
    09/27/2026 03:57 AM 5,087 adbreinstall.bat_v1p0.txt
    09/27/2026 04:17 AM 8,279 adbreinstall.bat_v1p1.txt
    09/27/2026 05:00 AM 10,273 adbreinstall.bat_v1p2.txt

    And that's just my adb script folder.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.lang.python,alt.os.linux,comp.sys.mac.system,alt.comp.os.windows-11 on Sun Nov 22 22:37:21 2026
    From Newsgroup: comp.sys.mac.system

    Together, we created unique useful functionality which, to my knowledge,
    does not exist anywhere else in the world, so we've done a lot in two days.

    To ensure more people have access to the solutions, I just posted the
    results (using a keyword-rich title so that search engines can easily find
    it) to the XDA Developer's forum (for Android:Desktop interoperability).

    [GUIDE] PSA: Extract app titles & package names from Nova Launcher home screen folders (using Windows ADB + SQLite + the last known good Nova version)
    <https://xdaforums.com/t/guide-psa-extract-app-titles-package-names-from-nova-launcher-home-screen-folders-using-windows-adb-sqlite-the-last-known-good-nova-version.4809412/>

    Dunno if this link to the batch file works for others not logged in though:
    <https://xdaforums.com/attachments/adbfolder-bat_v6p2-txt.6413467/>

    Likewise with the Python code:
    <https://xdaforums.com/attachments/adbfolder-py_v2p0-txt.6413468/>
    --
    Always seeking efficiency on computers, much like physics seeks entropy
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to alt.comp.os.windows-11,comp.lang.python,alt.os.linux,comp.sys.mac.system on Mon Nov 23 14:48:56 2026
    From Newsgroup: comp.sys.mac.system

    Chris wrote:
    Git for Windows + TortoiseGit, with a very simple operating model
    is what I may consider.
    1. Git for Windows is the version-control engine
    2. TortoiseGit is the Windows GUI to it

    Any other suggestions?

    To me, watching someone try to do serious software development on
    Windows is like ... watching someone trying to swim in mud.

    Windows is used the world over for professional software development.

    Someone just today also kindly & helpfully suggested "fossil" for DM
    (e.g., version control) on Windows (among other platforms).

    So that's two choices so far...

    Subject: Re: What free version control data management system do you use for coding?
    Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.freeware
    From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
    Message-ID: <KnRMS.674$0fO2.371@fx01.ams4>
    Date: Mon, 23 Nov 2026 14:51:21 +0800

    But yes, a proper version-control system would be useful but I've never set one up. Is there a simple-to-use reasonably good free dm system available?

    Fossil.

    https://fossil-scm.org/home/doc/trunk/www/index.wiki

    It's from the same people who make SQLite, and is fairly robust for
    small projects. It's just a single binary, and you start to use it by
    creating a single database -- you can name it anything you want, but
    .fossil is traditional -- that holds everything. You can even run it
    as a web server to have a wiki with your project.

    I think that fits what you're asking about.

    I personally also use Perforce, which is free, but not open source, for
    small teams. Five users last time I checked. It's not too simple to
    set up, which is why I think Fossil fits your question better. Yes, it
    comes in a Windows binary /that just works/.


    Best wishes, and happy version control systems!
    --
    Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
    I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
    Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
    --- Synchronet 3.21e-Linux NewsLink 1.2