diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-01-28 15:34:50 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-02-05 19:26:40 +0000 |
commit | 898c13df7b9b12ff10062f3542593e12fbe0c119 (patch) | |
tree | 323bc4d7da06b48af2079f44c5f8d346d265e956 /services/appwidget/java | |
parent | df88d73092c62a1a3cd2b2056ca63ae2e70cc238 (diff) | |
download | frameworks_base-898c13df7b9b12ff10062f3542593e12fbe0c119.zip frameworks_base-898c13df7b9b12ff10062f3542593e12fbe0c119.tar.gz frameworks_base-898c13df7b9b12ff10062f3542593e12fbe0c119.tar.bz2 |
Check feature bits before loading optional services
At startup, we check with PackageManager whether a system service is
available before attempting to load it. A system service is available
if its associated feature (similar to hardware features) is present.
This does not remove unavailable services from the compiled jar.
Change-Id: I13571805083aa4e65519a74acb52efd17b9fb3d7
Diffstat (limited to 'services/appwidget/java')
-rw-r--r-- | services/appwidget/java/service.mk | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/services/appwidget/java/service.mk b/services/appwidget/java/service.mk deleted file mode 100644 index 0e33446..0000000 --- a/services/appwidget/java/service.mk +++ /dev/null @@ -1,11 +0,0 @@ -# Include only if the service is required -ifneq ($(findstring appwidget,$(REQUIRED_SERVICES)),) - -SUB_DIR := appwidget/java - -LOCAL_SRC_FILES += \ - $(call all-java-files-under,$(SUB_DIR)) - -#DEFINED_SERVICES += com.android.server.appwidget.AppWidgetService - -endif |