commit | 9c5d8b963c04088b2d92525823df6cbd27dfcb92 | [log] [tgz] |
---|---|---|
author | Qingxi Li <qingxi@google.com> | Wed Jan 08 12:51:49 2020 -0800 |
committer | Qingxi Li <qingxi@google.com> | Thu Feb 20 01:02:42 2020 +0000 |
tree | 26e8c449c90203da6816c9dfdf89feadc5ee547f | |
parent | 3819be4271be3085bc55d5e2665952dcc8a77991 [diff] |
Sanitize owner UID iff owning app does not have location permissions. This change adds permission checking to ensure that the following conditions are enforced in order for apps to receive the owner UID: 1. The app must be the owner of the network 2. The app must hold the FINE_LOCATION permission/appop 3. The user must have their location toggle enabled. Bug: 142072839 Test: atest FrameworksNetTests Change-Id: I7a981a82f1219828ee89c8c96eb9d2efd153377f