QUERY_ALL_PACKAGES Permission on Android: Why Letting Apps Scan Your Full App List Leaks Personal Secrets (and Android 11+ Package Visibility)

Glowing cyan package visibility shield blocking crimson full app-inventory scraping rays from an Android smartphone

SENSITIVE PROFILING ALERT — CATEGORY E (SPECIAL SYSTEM ACCESS & DEVICE CONTROL) • XPAND PRIVACY JOURNAL: Why would a loan app, wallpaper pack, or casual game care about every single app installed on your Android phone? Because the list of apps in your drawer reveals your banks, health conditions, religion, dating life, and political views. That is why Google classifies installed app inventories as personal sensitive data—and locks QUERY_ALL_PACKAGES behind strict Play Store policies and Android 11+ Package Visibility filtering.

For the first decade of Android, any app on your phone could call getInstalledPackages() silently with zero permission prompt and build a complete dossier of every app you ever installed. Even if you turned off Location and Contacts, ad networks and data brokers used your app list as a near-permanent identity fingerprint.

In Android 11 (API level 30), Google ended free-for-all app snooping with Package Visibility Filtering. Now apps targeting modern Android cannot see unrelated apps on your device unless they use narrow <queries> rules or pass an invasive Google Play review for android.permission.QUERY_ALL_PACKAGES.

Protection Level
Normal + Play Restricted

Severity Rating
Critical — Personal Inventory Leak

Android 11+ Alternative
<queries> Manifest Scope

1. What Is QUERY_ALL_PACKAGES (and How Does Android 11+ Filtering Stop It)?

When an app targets Android 11 (API 30) or higher, system calls like PackageManager.getInstalledPackages(), getInstalledApplications(), and queryIntentActivities() return a tightly filtered list by default—only the app itself, core OS components, and apps it explicitly interacts with via intents. To unlock visibility into all apps on the phone, an app must declare QUERY_ALL_PACKAGES.

Why Honest Apps Use <queries> Instead: Android does not show a pop-up dialog when an app holds QUERY_ALL_PACKAGES. Instead, Google Play treats your app list as personal and sensitive data: unless the app is a core launcher, antivirus scanner, file manager, web browser, or enterprise manager, it is rejected from Play Store and told to declare narrow <queries> tags strictly for needed share targets or payment apps.

Comparison between blanket QUERY_ALL_PACKAGES app inventory scanning and Android 11+ scoped queries filtering
Screenshot 1: Blanket QUERY_ALL_PACKAGES exposes 100% of installed apps silently with zero runtime pop-up, whereas Android 11+ <queries> limits visibility strictly to declared share or payment intents.

Graph 1 highlights how dramatically Google shrunk third-party visibility into your app drawer from Android 10 to modern Android 11+ builds:

Timeline graph showing how Android 11 shrank installed app visibility from unfiltered access to queries manifest scope and Play-audited QUERY_ALL_PACKAGES
Graph 1: Default filtered visibility leaves unrelated personal apps completely invisible on modern Android unless a core utility qualifies for QUERY_ALL_PACKAGES.

2. Why It Is Dangerous: Intimate Profiling, Predatory Loan Apps & Banking Overlays

Why do data brokers, predatory credit apps, and malware gangs prize full app inventories so highly? Because every icon on your home screen tells a detailed life story:

Three privacy threats of QUERY_ALL_PACKAGES: sensitive lifestyle/health inference, predatory loan app harassment, and targeted banking trojan overlays
Screenshot 2: Three major harms when unrestricted app-inventory scanners inspect your phone: sensitive demographic profiling, banned predatory loan-app harvesting, and targeted banking trojan attacks.

Three High-Severity Abuses Driven by Full Installed App Inventories

  • 1. Deep Demographic & Health Inference: Simply reading package names reveals fertility or pregnancy trackers, diabetes monitors, mental-health portals, prayer apps, dating apps, disability tools, and brokerage accounts—creating sensitive ad segments even if GPS and Contacts are completely denied.
  • 2. Predatory Loan Apps & Financial Harassment: Google Play had to impose an explicit ban prohibiting personal loan, credit, and Earned Wage Access apps from using QUERY_ALL_PACKAGES (alongside Contacts and Gallery) after predatory lenders used installed banking/loan app lists to profile borrowers and target harassment.
  • 3. Malware Victim Reconnaissance: Sideloaded banking trojans scan your installed packages within seconds of launch to detect exact banking, UPI, or crypto wallet package IDs—then fetch matching fake login screens and Accessibility attack scripts.
Bar chart comparing QUERY_ALL_PACKAGES risk across loan apps, ad utilities, payment integrations, home launchers/AV, and offline tools
Graph 2: Only home launchers, security scanners, and browsers qualify legitimately—loan apps are strictly prohibited, and clean local tools like AmpereFlow and VEYRO scan zero unrelated packages.

3. Technical Comparison: Default Filtering vs. <queries> vs. QUERY_ALL_PACKAGES

Compare Android’s three package-visibility levels to see how least-privilege isolation protects your privacy:

Android Visibility ModeScope ExposedUser Prompt?Google Play & Privacy Verdict
Default Filtered Visibility (API 30+)Self, core system packages & explicitly invoked intents only.None neededSafest Default (Hides private banking, health & personal apps)
<queries> Manifest DeclarationOnly named package IDs, specific intent MIME types, or provider authorities.None neededRecommended for sharing, payment gateways & normal integrations
QUERY_ALL_PACKAGES100% inventory of installed user and system apps on the device.No Pop-Up (Silent)Play Restricted (Core launcher/AV/browser use only; banned for loans)
Legacy API 29 & Below BehaviorUnrestricted response from getInstalledPackages() on older OS builds.NoneObsolete Risk (Reason staying on Android 11+ matters)
Table 1: Breakdown of Android package visibility scopes from unfiltered legacy APIs to Android 11+ privacy filtering.

4. Red Flags vs. Legitimate Uses: Which Apps Need App Inventory Access?

Because Android does not display a runtime Allow/Deny prompt for QUERY_ALL_PACKAGES, check Play Store disclosures and developer categories against this table:

App CategoryNeeds QUERY_ALL_PACKAGES?VerdictPrivacy & Policy Check
Home Launchers, Mobile Antivirus, Backup Tools & Web BrowsersYes (Core feature draws app icons or scans all APKs)Verify Trusted BrandApproved core functionality when disclosed transparently.
Shopping, Ride-Hailing & Payment Checkout AppsNo (Must use targeted <queries>)Use Scoped Queries OnlyAn app checking whether PayPal or a specific wallet exists needs one <package> line, not all 150 apps.
Personal Loan, Credit & Instant Cash AppsStrictly BannedUninstall / AvoidGoogle Play explicitly forbids loan apps from collecting installed app inventories.
Games, Flashlights, Wallpapers & Sideloaded ModsNeverAlways Red FlagStrong signal of silent ad profiling or banking trojan target checks.
Offline Utilities (AmpereFlow & VEYRO)NoZero App ScanningHardware charging diagnostics and offline privacy tools inspect zero unrelated apps on your device.
Table 2: Decision checklist separating core device launchers/scanners from banned or suspicious app inventory collectors.

5. The Safe Way: 5 Steps to Keep Your App List Private

Because QUERY_ALL_PACKAGES has no simple Permission Manager toggle, prevention at install time and OS filtering make all the difference:

  1. Check Google Play “Data safety” & “App permissions” Before Downloading: Look for App info and performance > Installed apps under Data Safety—never install casual games, cleaners, or coupons that harvest installed app lists.
  2. Never Install Sideloaded Loan, Credit, or “Modded” APKs: Official Play Store policies ban credit apps from collecting installed app lists, whereas sideloaded loan APKs bypass those audits completely.
  3. Run Android 11 or Newer: Modern Android enforces default package visibility filtering automatically so random apps targeting API 30+ cannot scrape your app drawer silently.
  4. Delete Your Google Advertising ID: Visit Settings > Security & privacy > More privacy settings > Ads and tap Delete advertising ID to prevent cross-app broker stitching.
  5. Choose Self-Contained Offline Utilities: Use clean local tools—just like AmpereFlow and VEYRO on clickpms.com—that work locally with zero QUERY_ALL_PACKAGES or Data Safety app-list collection.
Five-step checklist to protect installed app inventory: check Play Data Safety, avoid unverified loan APKs, run Android 11+, delete Advertising ID, and use offline utilities
Screenshot 3: Five practical defenses to stop hidden app-list profiling before and after installing apps.

6. Frequently Asked Questions

Can I see or toggle off QUERY_ALL_PACKAGES inside Android Permission Manager?

No. Because Android classifies QUERY_ALL_PACKAGES as an install-time manifest permission protected by Google Play policy review rather than a runtime pop-up toggle, users do not see a switch in Permission Manager. That makes auditing Play Store Data safety and avoiding suspicious sideloaded APKs essential.

If an app cannot use QUERY_ALL_PACKAGES, how do “Share to WhatsApp” or UPI payments still work?

Developers declare targeted <queries> entries (either exact intent signatures like ACTION_SEND or specific payment app IDs) in AndroidManifest.xml. Android reveals only matching share or payment targets without exposing the rest of your private app list.

Are personal loan apps allowed to scan my installed apps if I grant consent?

No on Google Play. Under Google Play’s Personal Loans policy, personal loan and credit apps are explicitly prohibited from accessing or requesting QUERY_ALL_PACKAGES along with Contacts and media storage—even with a consent prompt.

7. Verified Official Documentation & Privacy References