commit | 6bfe96aa1398cd5eb2cd8b454976fa456858b119 | [log] [tgz] |
---|---|---|
author | Tony Mak <tonymak@google.com> | Fri Feb 12 16:43:48 2016 +0000 |
committer | Tony Mak <tonymak@google.com> | Fri Feb 12 16:43:48 2016 +0000 |
tree | 694d48fe8b8ab401fe0b0435a185da0f551cea05 | |
parent | 87e4a8a9d20e022c067ad98ba5165f5ae491a841 [diff] |
SipBroadcastReceiver should only run in user 0 SipBroadcastReceiver is not expected to run in any user other than user 0. You can see PhoneGlobal is inited in user 0 only here. https://cs.corp.google.com/#android/packages/services/Telephony/src/com/android/phone/PhoneApp.java&q=%22new%20PhoneGlobals%22%20package:%5Eandroid$&l=40 In ag/862290, SipBroadcastReceiver starts listening BOOT_COMPLETED broadcast, and after managed profile is created, BOOT_COMPLETED will sent to managed profile and hence it crashes becoz PhoneGlobal is missing. I try to add android:singleUser=true to SipBroadcastReceiver, but it is still being kicked started. And I guess it is because android:singleUser is ignored if the broadcast is sent from system. Code Ref: https://cs.corp.google.com/#android/frameworks/base/services/core/java/com/android/server/am/BroadcastQueue.java&q=BroadcastQue%20package:%5Eandroid$&l=1095 Bug:27114313 Change-Id: Icd51fd229ee8cf32247df443297af77348ffe834