diff options
author | Amith Yamasani <yamasani@google.com> | 2012-10-19 18:23:52 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-10-22 12:38:53 -0700 |
commit | cd75706117432e33d11639e675bcff50479a6bb9 (patch) | |
tree | cd2ea01c3733f2e4be7730d90d1d4692dbe82f58 /services/java/com/android/server/BackupManagerService.java | |
parent | 39c6526249a27b9dd9252910adecf8353b0792f0 (diff) |
System server should always send broadcasts to a specific or all users
Bug: 7368245
Log a warning if the system process calls unqualified sendBroadcast()
and other calls.
As a result of the logging above, found a few more method calls such as
bindService() that would benefit from being more explicit to avoid
future confusion and reduce the log warnings.
Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
Diffstat (limited to 'services/java/com/android/server/BackupManagerService.java')
-rw-r--r-- | services/java/com/android/server/BackupManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/BackupManagerService.java b/services/java/com/android/server/BackupManagerService.java index f241c8090dbc..dcbf3f51257d 100644 --- a/services/java/com/android/server/BackupManagerService.java +++ b/services/java/com/android/server/BackupManagerService.java @@ -836,7 +836,8 @@ class BackupManagerService extends IBackupManager.Stub { if ((info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { if (DEBUG) Slog.v(TAG, "Binding to Google transport"); Intent intent = new Intent().setComponent(transportComponent); - context.bindService(intent, mGoogleConnection, Context.BIND_AUTO_CREATE); + context.bindService(intent, mGoogleConnection, Context.BIND_AUTO_CREATE, + UserHandle.USER_OWNER); } else { Slog.w(TAG, "Possible Google transport spoof: ignoring " + info); } |