OSDN Git Service

Do not return synthetic launcher activity for completely headless apps
authorRicky Wai <rickywai@google.com>
Thu, 5 Sep 2019 17:21:29 +0000 (18:21 +0100)
committerRicky Wai <rickywai@google.com>
Wed, 18 Sep 2019 10:55:39 +0000 (10:55 +0000)
commitba1b753b85d592daa621bad0a1d7388b996a0453
tree35704ba25c0f89ffbd66eeab03ef2726dac19aa8
parente569faf5fb2c7faf6d14b2899db66f242043cbb1
Do not return synthetic launcher activity for completely headless apps

Bug: 140477182
Test: Headless app: no icon is shown on launcher
Test: App with launchable activity but disabled by default: no icon
Test: App with launchable activity, enabled by default but then disabled by command: has an icon on launcher
Change-Id: I58a36ac93d34583b2d4e50464b73cced77ce8edb
Merged-In: I58a36ac93d34583b2d4e50464b73cced77ce8edb
(cherry picked from commit 3eb1cc6588b81102732a446a2adcdc799a2cf3d0)
services/core/java/com/android/server/pm/LauncherAppsService.java