Article View: comp.mobile.android
Article #732Re: Can we programmatically get package names of icons in a homescreen folder?
From: Maria Sophia
Date: Fri, 20 Nov 2026 09:39
Date: Fri, 20 Nov 2026 09:39
67 lines
5661 bytes
5661 bytes
The code that output the previous output, does this in sequence...
1. Environment & Configuration Setup
A. Command environment
a. Disables command echoing and enables delayed expansion.
b. Sets the working directory to the script's path.
B. Configuration variables
a. Sets default configuration paths for ADB, SQLite, and work directories.
b. Defines the DEBUG toggle flag.
2. Dependency Verification
A. Executable checks
a. Locates adb.exe (checks system PATH or configured fallback path).
b. Locates sqlite3.exe (exits with an error if missing).
B. Directory setup
a. Creates the local working 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. Lists .novabackup files in the remote backup directory (with fallback search).
c. Prompts user to select or enter a backup filename/path.
d. Pulls the selected .novabackup file to the Windows workspace.
e. 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 if a .novabackup or .zip file is provided.
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 subroutine.
b. Queries pane folders (itemType = 2, container = -100).
c. Checks for loose non-folder apps (itemType <> 2) on the pane.
D. Section 3 (Other Folders)
a. Searches for orphaned folders not categorized under the dock or panes.
b. Lists and registers valid other 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 using a temporary PowerShell script to generate a safe filename.
B. Query Generation & Execution
a. Writes a dynamic SQLite query script to a temp file (.sql) extracting item ID, app title, package name, and raw intent.
b. Executes the query against nova.db using sqlite3.exe.
C. Output & Formatting
a. Formats output columns (package_name first, app_title second) into an auto-sized table via PowerShell.
b. Saves raw results (output.txt) and formatted results (target_apps.txt) to the work directory.
c. Prompts user to loop back to scan another folder/pane or proceed.
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 user to resolve app labels via adb dumpsys and aapt/aapt2.
B. Data Collection
a. Queries installed third-party packages from device (pm list packages -3).
b. Queries all referenced packages inside nova.db.
C. Diff Analysis & Cleanup
a. Generates and executes a PowerShell diff script to find installed packages with no home screen icon.
b. Outputs a formatted table of unplaced apps to unplaced_user_apps.txt.
c. Cleans up temporary script and text files (unless DEBUG=1) and exits cleanly.
Technical Details
Message-ID:
<11dp4gl$19hu$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mailReferences:
<11dnkrt$2pjn$1@nnrp.usenet.blueworldhosting.com> <11dnp91$1eem$1@nnrp.usenet.blueworldhosting.com> <11dnre3$1266$1@nnrp.usenet.blueworldhosting.com> <11dnvjh$2iq8$1@nnrp.usenet.blueworldhosting.com> <11do1un$2nuou$1@dont-email.me> <11dodu4$cth$1@nnrp.usenet.blueworldhosting.com> <11dofoj$b5k$1@nnrp.usenet.blueworldhosting.com> <11dogvd$1lkp$1@nnrp.usenet.blueworldhosting.com> <11dokg7$2gnq$1@nnrp.usenet.blueworldhosting.com> <11doman$1eh7$1@nnrp.usenet.blueworldhosting.com> <11doqpk$2uk4$1@nnrp.usenet.blueworldhosting.com> <11dp3lu$ekh$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail From: Maria Sophia <mariasophia@comprehension.com> Newsgroups: comp.mobile.android,alt.comp.os.windows-10,alt.msdos.batch Subject: Re: Can we programmatically get package names of icons in a homescreen folder? Date: Fri, 20 Nov 2026 05:39:33 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11dp4gl$19hu$1@nnrp.usenet.blueworldhosting.com> References: <11dnkrt$2pjn$1@nnrp.usenet.blueworldhosting.com> <11dnp91$1eem$1@nnrp.usenet.blueworldhosting.com> <11dnre3$1266$1@nnrp.usenet.blueworldhosting.com> <11dnvjh$2iq8$1@nnrp.usenet.blueworldhosting.com> <11do1un$2nuou$1@dont-email.me> <11dodu4$cth$1@nnrp.usenet.blueworldhosting.com> <11dofoj$b5k$1@nnrp.usenet.blueworldhosting.com> <11dogvd$1lkp$1@nnrp.usenet.blueworldhosting.com> <11dokg7$2gnq$1@nnrp.usenet.blueworldhosting.com> <11doman$1eh7$1@nnrp.usenet.blueworldhosting.com> <11doqpk$2uk4$1@nnrp.usenet.blueworldhosting.com> <11dp3lu$ekh$1@nnrp.usenet.blueworldhosting.com> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 20 Nov 2026 09:39:34 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM"; logging-data="42558"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake v24p7 Cancel-Lock: sha1:kgBMQTDj2sA90TBRS3g3DVKYNe0= sha256:NZ78UPr/LRXzdPuZGMqAES0fxfx/xZeTjlI2wBhAaXA= sha1:LG1gneNt15KuM4zbO5ZQCMe3au4= sha256:Kyd5E++xLKLLNaAmRH5Eq3N6BHJxkG1KceUmHGVcUGA= Content-Language: en-GB