summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2020-02-11 16:08:06 +0000
committerTony Mak <tonymak@google.com>2020-02-11 16:10:13 +0000
commit504c98ca56d0bf8ecd9b9bc93af2b440f3fd5825 (patch)
tree20ca696a31e0af349b11c003ac0e794e8bc88e52 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent83235861a5e1ae30411acc8105291ded37412b21 (diff)
Fix the issue that SettingsProvider sees mismatched calling uid and pkg
From SettingsProvider point of view, the calling package is "android". However, the callingUID is the client that calls into TCMS. The solution is to clear the calling identity when accessing DeviceConfig in a binder call. The problem is intermittent is because TCMS also accesses DeviceConfig in its constructor. It is not in a binder call, and thus it works. DeviceConfig caches the value, and so subsequent DeviceConfig calls won't actually call into SettingsProvider, not until the cache is invalidated somehow. I can reproduce the issue all the time by commenting the line that accesses DeviceConfig in the constructor. BUG: 149219961 Test: Comment the line that accesses DeviceConfig in the constructor. And try out smart selection and smart reply. Change-Id: I6d27bf9b5ec0d4337c2623a83d326adc688269af
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions