Allowing AppWidgetService to start without FEATURE_APP_WIDGETS

Bug: 26110877
Change-Id: Ide402274af4067c530793f0d674821f1294c4195
This commit is contained in:
Dmitri Plotnikov
2016-03-25 17:24:57 -07:00
parent 61ad7ad7fd
commit 0a3e17325c
3 changed files with 7 additions and 1 deletions

View File

@@ -1023,7 +1023,8 @@ public final class SystemServer {
mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);
}
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)) {
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)
|| context.getResources().getBoolean(R.bool.config_enableAppWidgetService)) {
mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);
}