Commit Graph

15 Commits

Author SHA1 Message Date
Automerger Merge Worker
29097108e3 Merge "Add permissions for using PlatformCompat methods" am: 7202e904c9 am: 69ca2fcfa0 am: 9e28d2118f
Change-Id: Id9b74f1f74f3e4efaaa3e1657a64b7f8d229cc01
2020-02-06 14:18:16 +00:00
Andrei Onea
26559bcb40 Add permissions for using PlatformCompat methods
- READ_COMPAT_CHANGE_CONFIG is required to read the current state of the
config
- LOG_COMPAT_CHANGE is required to log the status of a compat change for
a package and/or uid to statsd
- OVERRIDE_COMPAT_CHANGE_CONFIG is required to add overrides

The permissions must be signature|privileged, as there are already
examples of code which this would not be sufficient (e.g.
MediaProvider).

This is a re-landing of https://r.android.com/1209240, which was
reverted due to http://b/142942524. The actual fix was done in
http://ag/10234812.


Bug: 142650523
Test: atest PlatformCompatTest
Test: atest PlatformCompatPermissionsTest
Change-Id: Ie9429477c9a1725b5cb67756787bf742038e5d2b
2020-02-06 12:22:42 +00:00
Zim
9eba4a9772 Whitelist privapp MANAGE_EXTERNAL_STORAGE permission
After adding MANAGE_EXTERNAL_STORAGE permission to several apps on the
system partition, we should whitelist them

Test: m
Bug: 144914977
Change-Id: Ia4401904e23193b8628071d6a2a6d789faf0ece5
2020-01-27 13:36:38 +00:00
Automerger Merge Worker
070e602547 Merge "Add new permissions" am: 62ace8c46a am: c0f9b27214 am: ec776dfda9
Change-Id: I8193a10bef4d829f41fd2609b571c9fa52365783
2020-01-06 21:35:59 +00:00
Neil Fuller
62ace8c46a Merge "Add new permissions" 2020-01-06 19:38:25 +00:00
Neil Fuller
09e8b7d841 Add new permissions
This adds new permissions required when setting the time /zone in
response to telephony signals and when setting the time / zone manually
along the lines of "principle of least privilege".

The intent is to later restrict the number of distinct processes that
can manipulate the device system clock / time zone property directly so
that all time changes go through the time / time zone detector services,
which can enforce policy, log the reasons for changes, and so on.

Bug: 140712361
Test: atest com.android.server.timedetector
Change-Id: Iabd3a5f449ad2ef2b6581475ef2535a4a8a88ef9
2019-12-19 11:11:48 +00:00
Yoshiaki Naka
79351c3fab Add READ_PRIVILEGED_PHONE_STATE to the settings whitelist
Settings application needs the previleged permission to retrieve UICC
card information by using Telephony Manager API.

Bug: 141256483
Test: Manual and SimStatusDialogControllerTest

Change-Id: I33d3bb1947d828e283ee62b7cd0936b8baf73acb
2019-12-12 15:09:46 +00:00
Howard Chen
c38989264e Fix boot failure on aosp_pixel-userdebug
Test: Boot test
Bug: 145904897
Change-Id: Icb83f886c8734aee8d77d455754ffa37336aa6d9
2019-12-10 12:42:15 +08:00
Bonian Chen
073cdcab42 [Settings] Change the ordering of permission
Move READ_PRIVILEGED_PHONE_STATE based on alphabet ordering.

Bug: 144960427
Test: build pass
Change-Id: Ia86e20afc87725b012014b272b5c2f570aa31ca8
2019-11-26 09:22:56 +08:00
Roshan Pius
40ff6d65cc Merge "Revert "privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission"" 2019-11-25 17:34:36 +00:00
Roshan Pius
8533a06a9d Revert "privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission"
This reverts commit 82f37f83a8.

Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 145114247
Change-Id: I993dd4d35cc280afe6dc044fa1dee0ea268f9bca
2019-11-25 14:36:16 +00:00
Bonian Chen
ac5d9371aa [Settings] Permission to access ImsMmTelManager
Add READ_PRIVILEGED_PHONE_STATE permission

Bug: 140542283
Test: Manual
Change-Id: If88c6e3e1b5084a27c95b875bc74d28d0af908df
2019-11-08 17:13:41 +08:00
Roshan Pius
82f37f83a8 privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission
The wifi stack (signed by Google on non-Pixel devices) need to obtain this permission,
so it can no longer be signature only.

Bug: 113174748
Test: Compiles
Change-Id: Id9557a6d164a40698ee7d1e5926e56fd616868d0
2019-06-17 08:56:43 -07:00
jackqdyulei
8c360174f5 Update MediaSessions to add some methods
Also move drawable to settingslib

Bug: 126199571
Test: Build
Change-Id: I20d06c179b7cd67ef97cde1d04e26a120ffdd4ae
2019-02-27 13:24:37 -08:00
Anton Hansson
c32be24d36 Move Settings/SystemUI permissions to separate files
This makes it possible to move the permission around separately
from all the other permissions. This permission file is included
automatically when the respective app is included.

Bug: 110072687
Test: make
Change-Id: I91b30561d4a4000334ffbf3b98bb632d962f4b97
2018-12-17 15:04:34 +00:00