🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.os.windows-10
Article #1283

Re: Can we programmatically get package names of icons in a homescreen folder?

#1283
From: Maria Sophia
Date: Thu, 19 Nov 2026 21:58
99 lines
9359 bytes
Maria Sophia wrote:
> It should use Windows to list the folders on the Android
> homescreen and the packages that are in each of those folders.

This query will take as input the (unique) name of a folder on the Android 
homescreen (in this case, it's "weather") and spit out the packages in it.

1. Make a homescreen backup (default name '2026-11-19_12-57.novabackup')
2. Copy that backup file from Android to Windows over Wi-Fi/USB
   C:\> adb pull /storage/emulated/0/0000/bck/nova_backup/2026-11-19_12-57.novabackup
3. Extract it
   C:\> copy 2026-11-19_12-57.novabackup backup.zip && powershell -NoProfile -Command "Expand-Archive -LiteralPath backup.zip -DestinationPath backup_extracted -Force" && dir /s /b backup_extracted 
4. Open the sql database
   C:\> "C:\app\editor\sql\db4s\App\SQLiteDatabaseBrowser64\DB Browser for SQLite.exe" C:\app\editor\android\scrcpy\nova\backup_extracted\nova.db
5. In the "Execute SQL" tab, run this query: 
  /*
  Pulls all items stored inside the "weather" folder (container = 2921)
  from Nova Launcher's favorites table and extracts each app's package name.
   /*
     Pulls all items stored inside the "weather" folder (container = 2921)
     from Nova Launcher's favorites table and extracts each app's package name.
   */
   SELECT
       f._id AS item_id,              -- Unique row ID of the item in favorites
       f.title AS app_title,          -- Display name shown on the homescreen/folder
       CASE
           -- Prefer explicit iconPackage if Nova populated it
           WHEN f.iconPackage IS NOT NULL AND f.iconPackage != '' THEN f.iconPackage
           -- Otherwise, look for "component=pkg.name/ActivityName" inside intent
           WHEN INSTR(f.intent, 'component=') > 0 THEN
               SUBSTR(
                   -- Slice from right after "component=" (10 characters long) to the end
                   SUBSTR(f.intent, INSTR(f.intent, 'component=') + 10),
                   1,
                   -- Take characters up to (but not including) the first "/"
                   INSTR(SUBSTR(f.intent, INSTR(f.intent, 'component=') + 10), '/') - 1
               )
           ELSE ''                    -- Fallback if neither iconPackage nor component= is found
       END AS package_name,
       f.intent                       -- Raw Android intent string for reference
   FROM favorites f
   WHERE f.container = 2921           -- 2921 is the _id of the "weather" folder
   ORDER BY f.rank, f._id;             -- Keep folder sort order, breaking ties by row ID

These are the results from which package names & nicknames can be culled.

1892	AccuWeather	com.accuweather.android	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.accuweather.android/.splashscreen.ui.SplashActivity;end
1830	Windy.app	co.windyapp.android	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=co.windyapp.android/.ui.mainscreen.container.MainActivity;end
2456	AeroWind	aerow.us.aerowind	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=aerow.us.aerowind/.GetWeather;end
2448	AirVisual	com.airvisual	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.airvisual/.ui.activity.SplashActivity;end
1878	Good Weather	org.asdtm.goodweather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=org.asdtm.goodweather/.MainActivity;end
2266	Hey Sunrise	com.macca895.sunriise	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.macca895.sunriise/.main.MainActivity;end
2455	hiweather	com.lholman.hiweather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.lholman.hiweather/.MainActivity;end
2471	just weather	com.neverads.just_weather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.neverads.just_weather/com.neverads.myapp.MainActivity;end
2469	Klara	org.androworks.klara	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=org.androworks.klara/.MainActivity;end
2472	OpenWeather	uk.co.openweather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=uk.co.openweather/.MainActivity;end
2509	RadarWeather	org.woheller69.weather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=org.woheller69.weather/.activities.SplashActivity;end
2460	Rain	com.yoshi.rain	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.yoshi.rain/.MainActivity;end
2914	Weather	org.breezyweather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=org.breezyweather/.ui.main.MainActivity;end
2618	Weather	wangdaye.com.geometricweather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=wangdaye.com.geometricweather/.main.MainActivity;end
2473	Weather	com.alexplas.weathernew	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.alexplas.weathernew/.ui.MainActivity;end
1821	Weather Alerts	info.vazquezsoftware.weatheralarms	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=info.vazquezsoftware.weatheralarms/.LoadingActivity;end
2453	Weather Forecast	com.la.local.weather.forecast.app	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.la.local.weather.forecast.app/.activities.SplashActivity;end
1831	WindHub	com.windhub.marine.weather	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.windhub.marine.weather/wind.hub.ui.launcher.LauncherActivity;end
1824	Windy	com.windyty.android	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.windyty.android/.MainActivity;end
2468	Yr	no.nrk.yr	#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=no.nrk.yr/.MainActivity;end	

 C:\> where cut
       C:\Program Files\coreutils\bin\cut.exe
 C:\> cut -f2,3 output.txt
      AccuWeather     com.accuweather.android
      Windy.app       co.windyapp.android
      AeroWind        aerow.us.aerowind
      AirVisual       com.airvisual
      Good Weather    org.asdtm.goodweather
      Hey Sunrise     com.macca895.sunriise
      hiweather       com.lholman.hiweather
      just weather    com.neverads.just_weather
      Klara   org.androworks.klara
      OpenWeather     uk.co.openweather
      RadarWeather    org.woheller69.weather
      Rain    com.yoshi.rain
      Weather org.breezyweather
      Weather wangdaye.com.geometricweather
      Weather com.alexplas.weathernew
      Weather Alerts  info.vazquezsoftware.weatheralarms
      Weather Forecast        com.la.local.weather.forecast.app
      WindHub com.windhub.marine.weather
      Windy   com.windyty.android
      Yr      no.nrk.yr
      
Voila!

We just obtained the packages in any given Android homescreen folder.
Later I will make it more generic so that it's useful to many others.

But I got what I needed (although it took, oh, an hour or so).
-- 
Necessity and good ole' American ingenuity is the mother of invention.
Technical Details
Message-ID: <11dnre3$1266$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.194.26.236.42!not-for-mail
References: <11dnkrt$2pjn$1@nnrp.usenet.blueworldhosting.com> <11dnp91$1eem$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.194.26.236.42!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: comp.mobile.android,alt.comp.os.windows-10
Subject: Re: Can we programmatically get package names of icons in a homescreen folder?
Date: Thu, 19 Nov 2026 17:58:28 -0400
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <11dnre3$1266$1@nnrp.usenet.blueworldhosting.com>
References: <11dnkrt$2pjn$1@nnrp.usenet.blueworldhosting.com> <11dnp91$1eem$1@nnrp.usenet.blueworldhosting.com>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Nov 2026 21:58:27 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="9RiUIfIZ49Ur6NHYunfuiMbp5+uy/r7Ra0oMCv1+JsQ";
	logging-data="35014"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mojibake v24p7
Cancel-Lock: sha1:5nZL0+j4QBByd36i74HTUKYgqUw= sha256:rNn/+IYjr0RookgVZRBm/k4nX1KXg4XUFQU4AQGz9+U=
	sha1:cTkUICHDG1ThmcB/O//F3E5CXzE= sha256:KQbo8ETcLstRwLyKsWdux22/ub8ktco2pi3ezhafAIk=
Content-Language: en-GB