summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-06-09 15:07:16 -0700
committerJoe Onorato <joeo@android.com>2010-06-09 15:07:16 -0700
commit8a5f10b30dae663eb01372490df3497e8a2ad56a (patch)
treef290abed00828b9b8c7f399805a2f2629e6fd262 /policy
parent1d46191d88ee9262ea05b868d2db5b44ad85fa43 (diff)
parentf7b79151923ccde24a3c5cb546d9f595f0891f59 (diff)
downloadframeworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.zip
frameworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.tar.gz
frameworks_base-8a5f10b30dae663eb01372490df3497e8a2ad56a.tar.bz2
resolved conflicts for merge of f7b79151 to master
Change-Id: Ia4538f73d8bade9e6565835d484dcb650830feca
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/com/android/internal/policy/impl/PhoneWindowManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/policy/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/com/android/internal/policy/impl/PhoneWindowManager.java
index 73a57ee..d152bc4 100755
--- a/policy/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -957,12 +957,20 @@ public class PhoneWindowManager implements WindowManagerPolicy {
public int prepareAddWindowLw(WindowState win, WindowManager.LayoutParams attrs) {
switch (attrs.type) {
case TYPE_STATUS_BAR:
+ mContext.enforceCallingOrSelfPermission(
+ android.Manifest.permission.STATUS_BAR_SERVICE,
+ "PhoneWindowManager");
+ // TODO: Need to handle the race condition of the status bar proc
+ // dying and coming back before the removeWindowLw cleanup has happened.
if (mStatusBar != null) {
return WindowManagerImpl.ADD_MULTIPLE_SINGLETON;
}
mStatusBar = win;
break;
case TYPE_STATUS_BAR_PANEL:
+ mContext.enforceCallingOrSelfPermission(
+ android.Manifest.permission.STATUS_BAR_SERVICE,
+ "PhoneWindowManager");
mStatusBarPanels.add(win);
break;
case TYPE_KEYGUARD: