diff options
author | Annie Meng <anniemeng@google.com> | 2018-05-14 14:11:16 +0100 |
---|---|---|
committer | Annie Meng <anniemeng@google.com> | 2018-05-25 09:45:18 +0000 |
commit | 8cdae012449880380718e785507c292cc2f2914e (patch) | |
tree | 8e1a42952d918c7e081b5cffe5e00a6597496d01 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f4c1989407abf4c7407c8f205a35f1401a443a4a (diff) |
Clear calling identity in BMS.backupNow
BMS.backupNow is called from GMSCore, which has a different calling
identity than the framework. This causes an IllegalArgumentException due
to uid mismatch when backupNow tries to schedule a job.
This occurs when the following conditions are combined:
1) Battery saver mode enabled
2) Network change detected
3) Backup pass is scheduled for now
Bug: 79441902
Test: 1) m -j RunFrameworksServicesRoboTests
2) Manual: Enabled battery saver, modified code to run backupNow with
each network change and overwrite previously scheduled KeyValueJob.
Then, change wifi to trigger scheduling the KeyValueJob.
Verified:
- IllegalStateException b/c of uid mismatch without change
- No exception and correct calling uid with change
Change-Id: Iac90cd435e3fc32ff5428236aa15507b36aa833d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions