diff options
author | Philip P. Moltmann <moltmann@google.com> | 2019-06-14 11:08:16 -0700 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2019-06-19 09:41:17 -0700 |
commit | 4e369a79d018263c02cf7b46b4eb76c3efe67d5f (patch) | |
tree | d6bf5ce003733f1877aa2c2586faea825ceb8d6f /startop/scripts/lib/cmd_utils.py | |
parent | fad1a8fb2f259cb9e699e9ac50c38f87d1921ba6 (diff) |
Avoid overiding bg perm app-op for pre-M apps
For pre-M apps the only information about the permission state is
encoded in the app-op. This state cannot be computed from the permission
state.
Hence be very careful to only override this state when sure that it is
fine. E.g. one problem is that during the install the permissions are
first not whitelisted and then whitelisted shortly after. At this time
the permissions state might be lost.
Fixes: 135288572, 135190563
Test: atest RestrictedPermissionsTest
Change-Id: I8bf74730a6c632313d68f1558c9b67e273c5d7e1
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions