summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-09-22 16:42:55 -0600
committerJeff Sharkey <jsharkey@android.com>2016-09-22 17:05:54 -0600
commitd26e1ff2de354896781c44143d9dfc7b8a350acd (patch)
treefa3e3b20c9f7e0b75d4affea28376861850f44e0 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdd6230d466606cdd4d2cac8934875a5778046229 (diff)
Limit LOCALE_CHANGED broadcast when init'ing.
Immediately when a device finishes booting, retrieveSettings() will read out the current configuration details, including locale. At that point mProcessesReady has been set, meaning third-party apps can be launched. But we haven't started persistent apps yet! If you have a persistent app (like com.android.phone) which also has a somewhat related app (like com.android.stk) merged into the same process, the LOCALE_CHANGED broadcast could start the process pointing at an unexpected code/data location. This change avoids this by only sending LOCALE_CHANGED broadcasts to registered receivers (no manifest receivers) when the locale is being read for the first time (initLocale). Test: booted device with locked SIM Bug: 31665819 Change-Id: I977a596501c6ba492005f98a2367e4b9f67e2dba
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions