OSDN Git Service

Allow Cell Location for SYSTEM_UID and ROOT_UID
authorNathan Harold <nharold@google.com>
Tue, 26 Jun 2018 02:13:29 +0000 (19:13 -0700)
committerNathan Harold <nharold@google.com>
Thu, 28 Jun 2018 19:09:51 +0000 (19:09 +0000)
commitdf54d98be68ac6e4728588a9744589227eb02c53
tree8049182f51c4607631159108bd157db63d073317
parent3838ff457e9882248960fb03a9e88025e4ed4fb3
Allow Cell Location for SYSTEM_UID and ROOT_UID

This change permits the system uid and root uid to
access cellular location information via the binder.
Previously this was restricted to the phone uid, but
running with uid=system is a privileged situation,
which makes me think this this wasn't intentional.

Also add a few lines of debug code to make issues
in LocationAccessPolicy easier to track down in the
future.

Bug: 110806860
Test: manual - ran with SL4A as SYSTEM_UID and
    verified access to getAllCellInfo.

Merged-In: Ie18be2cd72c49f1859d1434428f82f164bed8756
Change-Id: Ie18be2cd72c49f1859d1434428f82f164bed8756
telephony/java/android/telephony/LocationAccessPolicy.java