Commit Graph

1478 Commits

Author SHA1 Message Date
TreeHugger Robot
ff6208522b Merge "Add tuner permissions to Shell" into rvc-dev am: e0b1bfb87d am: f3ccf3c3b1
Change-Id: I610f328800e6fc2529275050b4c1eee73fc4e701
2020-03-24 06:52:52 +00:00
TreeHugger Robot
e0b1bfb87d Merge "Add tuner permissions to Shell" into rvc-dev 2020-03-24 06:26:00 +00:00
shubang
d7a3204c4e Add tuner permissions to Shell
So we can test system APIs in cts.

Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: Ife5a5f712cdf3d3c2e5dd747fa1d3bc8c165b85b
2020-03-23 19:41:35 -07:00
markchien
1f47e1c22e Give tethering bluetooth privilege permission
Permisssion of PanService#setBluetoothTethering is change from
BLUETOOTH_ADMIN to BLUETOOTH_PRIVILEGED.
Tethering service need bluetooth privilege permission to enable
bluetooth tethering.

Bug: 146045934
Test: on/off bluetooth tethering
Merged-In: Ib87a5d5a5bb49390aa55e52713bb3539d4a52348
Change-Id: Ib87a5d5a5bb49390aa55e52713bb3539d4a52348
2020-03-23 11:42:39 -07:00
TreeHugger Robot
849484132f Merge "Shell: Allow usage of wifi usability score APIs" into rvc-dev am: 48bd1c9ccf
Change-Id: If704fbe46803ab35c81d55feab22eefe71ceb745
2020-03-19 22:48:02 +00:00
TreeHugger Robot
48bd1c9ccf Merge "Shell: Allow usage of wifi usability score APIs" into rvc-dev 2020-03-19 22:33:43 +00:00
TreeHugger Robot
6ac2855513 Merge "Enforce permission on native puller API" into rvc-dev am: 591bb7b1fe
Change-Id: I2f222e33eb5984e181ee643268c934cd33276f9a
2020-03-19 21:36:52 +00:00
TreeHugger Robot
591bb7b1fe Merge "Enforce permission on native puller API" into rvc-dev 2020-03-19 21:12:52 +00:00
Roshan Pius
c551b3386a Shell: Allow usage of wifi usability score APIs
This permission is needed for wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to influnce wifi vs lte network
selection algorithm.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test these API's:
WifiManager.setWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.addOnWifiUsabilityStatsListener()

Bug: 150236894
Test: Device boots up.
Change-Id: Ic173e44ab818cdfecebde80715ddaec347019db6
2020-03-19 13:14:50 -07:00
Tej Singh
10458eca11 Enforce permission on native puller API
Test: m
Test: no security exceptions on boot
Test: atest LibStatsPullTests
Bug: 148955001
Change-Id: I4b06bfc41be2925270eaddd717f1499d98739dae
2020-03-19 11:54:11 -07:00
Remi NGUYEN VAN
aa59d13672 Merge "Remove privapp grants for CaptivePortalLogin" into rvc-dev 2020-03-19 05:43:54 +00:00
Eric Laurent
d8966a3b60 Merge "Add MODIFY_DEFAULT_AUDIO_EFFECTS permission to shell" into rvc-dev am: 96ca81198e
Change-Id: I93971a74f6da12b428f7aa3cea4afc67081445a6
2020-03-19 01:31:49 +00:00
Eric Laurent
e23ed86890 Add MODIFY_DEFAULT_AUDIO_EFFECTS permission to shell
Add MODIFY_DEFAULT_AUDIO_EFFECTS permission to shell which
is needed to run GTS tests on @systemApis for
audio effects control.

Bug: 148703417
Test: run gts -m GtsAudioTestCases -t com.google.android.audio.gts.DeviceEffectTest#testCreateDeviceEffect
Change-Id: Iba579001aeffd85743850727135a6f536579ea17
2020-03-18 12:07:57 -07:00
Winson Chung
e8fbf78deb Merge "Add launcher3 specific permission to the whitelist" into rvc-dev am: 4af44ac0ef
Change-Id: Iee52dc0ec5414868dedb8a28f7d2029b3c855408
2020-03-17 23:37:57 +00:00
Winson Chung
185d0b08b7 Add launcher3 specific permission to the whitelist
Bug: 151611270
Test: Manual
Change-Id: Id039cdc7966c34c57bca331e762ae385cf0a9e44
2020-03-17 22:10:13 +00:00
Automerger Merge Worker
403f62c509 Merge "Adding launcher permission to base whitelist" into rvc-dev am: 6a265d64e8
Change-Id: I9347e6c018f75c3255a8eb93caa0b92674065fc0
2020-03-16 18:26:04 +00:00
Winson Chung
bdf1684824 Adding launcher permission to base whitelist
- This is a *temporary* permission that we are using to set the system
  rotation setting via the launcher settings.  The framework uses the
  same setting for forced-rotation, but this currently only is scoped to
  launcher so it makes more sense as a launcher setting than as a
  developer option (and we plan on removing it shortly).  We are working
  with jjaggi@ and caen@ to coordinate the fw and launcher settings.

Bug: 151611270
Test: Manual
Change-Id: If371cac4d580785ed1714c82a67b995a40ecf9a6
2020-03-16 16:28:22 +00:00
Automerger Merge Worker
366c9406fd Remove privapp grants for CaptivePortalLogin
CaptivePortalLogin is not a privileged app, so it cannot get these
permissions anyway.

Test: CaptivePortalLogin working without the permissions
Bug: 151214275
Change-Id: I283b8068b9eada28d92c9d550473106a1b680a27
Merged-In: I283b8068b9eada28d92c9d550473106a1b680a27
(cherry picked from commit 53839762d4)
2020-03-16 10:14:01 +00:00
Automerger Merge Worker
c04969c851 Merge "Give tethering bluetooth privilege permission" am: 5d734eec01 am: 5712346e08
Change-Id: I86a0fc5498d6c77e032c839d09c018906ec78b42
2020-03-16 05:06:57 +00:00
Mark Chien
5d734eec01 Merge "Give tethering bluetooth privilege permission" 2020-03-16 04:46:44 +00:00
Automerger Merge Worker
7b7eeccc64 Merge "Remove privapp grants for CaptivePortalLogin" am: 64737571b8 am: 4d59ddaf6b
Change-Id: I7b2199959c63fe9501350a3e7b022c75c6176236
2020-03-13 10:47:25 +00:00
Remi NGUYEN VAN
f38623ad95 Remove privapp grants for CaptivePortalLogin
CaptivePortalLogin is not a privileged app, so it cannot get these
permissions anyway.

Test: CaptivePortalLogin working without the permissions
Bug: 151214275
Change-Id: I283b8068b9eada28d92c9d550473106a1b680a27
2020-03-13 17:29:23 +09:00
markchien
62905af07c Give tethering bluetooth privilege permission
Permisssion of PanService#setBluetoothTethering is change from
BLUETOOTH_ADMIN to BLUETOOTH_PRIVILEGED.
Tethering service need bluetooth privilege permission to enable
bluetooth tethering.

Bug: 146045934
Test: on/off bluetooth tethering
Change-Id: Ib87a5d5a5bb49390aa55e52713bb3539d4a52348
2020-03-13 07:06:58 +00:00
Automerger Merge Worker
1efd4cfced Merge "Add MONITOR_INPUT for kitchensink test app" into rvc-dev am: 60a4479b55
Change-Id: I2cc76b6923d0f0be298608ef48a7d4cc932ca017
2020-03-12 23:14:21 +00:00
Keun-young Park
60a4479b55 Merge "Add MONITOR_INPUT for kitchensink test app" into rvc-dev 2020-03-12 22:57:11 +00:00
Automerger Merge Worker
a79fb5b6f0 Merge "Telephony statsd atoms." into rvc-dev am: 91af57e5c1
Change-Id: Ia78cee21d6bb956ff41885c902b1a44276709a10
2020-03-12 18:00:54 +00:00
Daniel Bright
60fe698771 Whitelist telephony broadcasts for bground use
Whitelisted telephony broadcasts using the intent background flag.
Ensured that each broadcast was protected manually through cts test below.

Bug: 148181747
Bug: 151112539
Test: Switched on ActivityManagerDebugConfig.DEBUG_BACKGROUND_CHECK for SIM_STATE_CHANGED
Test:  android.telephony.cts.TelephonyProtectedBroadcastsTest
Merged-In: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb
Change-Id: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb
2020-03-11 17:07:23 -07:00
Chi Zhang
bb9ed92165 Telephony statsd atoms.
Test: build
Bug: 146066107
Bug: 141631489
Bug: 122371089
Bug: 149880090
Bug: 127666858

Change-Id: I124cf2da59ed4c5e92406081aac0df0f347ace74
2020-03-11 15:10:36 -07:00
Automerger Merge Worker
c857337bbd Merge "Camera: Add new hidden API for camera open/close callback" into rvc-dev am: abb2d5847d
Change-Id: Iee11c2f10af77e38b283d876376cc5599213eda7
2020-03-10 23:29:03 +00:00
TreeHugger Robot
abb2d5847d Merge "Camera: Add new hidden API for camera open/close callback" into rvc-dev 2020-03-10 23:27:46 +00:00
Automerger Merge Worker
c51b99501a Merge "Add priv-app permission" into rvc-dev am: 086cd7706c
Change-Id: I1d2c1e577889ead2d084d567290a1f8504255c81
2020-03-10 22:44:15 +00:00
Heemin Seog
764220e47e Add priv-app permission
Necessary for Hawk to boot

Bug: 151155652
Test: boot hawk
Change-Id: Idd456a01cdb40a6ab1175b16440b96d5778b4cda
2020-03-10 10:41:18 -07:00
Shuzhen Wang
6d76d3b1f6 Camera: Add new hidden API for camera open/close callback
The hidden API is used by SystemUI process to adjust the system UI based
on when a certain camera is opened or closed.

Test: Manually observe callbacks in SystemUI when running camera CTS
Bug: 150540299
Change-Id: I04cae782d96f0e32be8ef588dcd328f84b32887a
2020-03-10 09:35:50 -07:00
Automerger Merge Worker
e418634b43 Merge "Whitelist READ_PRIVILEGED_PHONE_STATE for the contacts provider" into rvc-dev am: a01570b72f
Change-Id: I28b68d6d27fc452e173deac9292bf1e142fbcebd
2020-03-07 01:14:01 +00:00
TreeHugger Robot
a01570b72f Merge "Whitelist READ_PRIVILEGED_PHONE_STATE for the contacts provider" into rvc-dev 2020-03-07 00:58:35 +00:00
Automerger Merge Worker
b12e9d610b Merge "Add dialog for recommended controls" into rvc-dev am: 6bb7ecf725
Change-Id: I5ec280894d69ba4909e317c84a6dd7fe67561d2d
2020-03-06 20:05:30 +00:00
Keun young Park
1f57921b1d Add MONITOR_INPUT for kitchensink test app
Bug: 146062605
Test: bootup
Change-Id: Ic5139d587ec9ada26107fa38823a79a63a3d75f6
2020-03-06 11:58:24 -08:00
Fabian Kozynski
04e7bdef04 Add dialog for recommended controls
The dialog can only be requested if the package of the controls provider is
currently in the foreground.

This is accomplished by querying Activity Manager about the
UidImportance of that package. Added
android.permission.PACKAGE_USAGE_STATS to SystemUI for this.

Test: atest
Test: manual
Fixes: 149410221

Change-Id: Ifdf479d8dbc70502da95d362e3bfd60ad3c561fb
2020-03-06 12:55:35 -05:00
Automerger Merge Worker
ae21f6f5a9 Merge "Make pull atom permission accessible to shell" into rvc-dev am: 0e4f868bb2
Change-Id: Ie7db224e608a695866e8eb247870b703628e9a58
2020-03-04 22:10:51 +00:00
Tej Singh
0e4f868bb2 Merge "Make pull atom permission accessible to shell" into rvc-dev 2020-03-04 21:58:36 +00:00
Automerger Merge Worker
45517b954a Merge "Nicer share target for default print service" into rvc-dev am: a3040ca8df
Change-Id: Ic2c9f7602c1372f3d1be5603f3dd7d5fa9524862
2020-03-04 18:05:02 +00:00
Philip P. Moltmann
a3040ca8df Merge "Nicer share target for default print service" into rvc-dev 2020-03-04 17:52:35 +00:00
Philip P. Moltmann
26e1d17778 Nicer share target for default print service
This was suggested by the share sheet team and I checked that this
permission only narrowly adds the ability to present a nicer share
target.

The default print service cannot be renamed "print" as the name of the
app shows up on other print UI.

Bug: 150646365
Test: Checked permission after boot
Change-Id: I3aa5900605bda90ce0cb58a09fe08128bf4c9531
2020-03-03 16:02:32 -08:00
Tej Singh
924910db90 Make pull atom permission accessible to shell
Make REGISTER_STATS_PULL_ATOM permission available to Shell to allow
testing it in gts.

Is the minimally scoped permission that needs to be added?
Yes, it is the only permission to register pulled atoms.

What options did you explore that did not need this permission?
I explored expanding the permission to be development in addition to
privileged, and giving the permission to gmscore. However, this solution
was recommended to me by the GTS team. If there are better ways to enable
testing the API in GTS, I am open to feedback.

Test: atest GtsStatsdHostTestCases
Bug: 150329323
Change-Id: I103d937842beaa2d918181b1a952d27179411dcc
2020-03-03 23:36:08 +00:00
Automerger Merge Worker
16c872ce5c Merge "Add PlatformCompat permissions to TelephonyProvider" into rvc-dev am: 81866d4149
Change-Id: I7004d9c2c094b70d30e2df64c253b6b76b917aa3
2020-03-03 23:32:38 +00:00
Hall Liu
81866d4149 Merge "Add PlatformCompat permissions to TelephonyProvider" into rvc-dev 2020-03-03 23:29:19 +00:00
Roshan Pius
8679a96511 Shell: Allow retrieval of wifi network credentials
This permission is needed for some wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the retireval of the saved wifi network
credentials on the device.

What options did you explore that did not need this permission?
- Possibly creating a UI to ask for manual entry of network credentials.
But, that would not let us do automated CTS tests (will need to become
CTS verifier tests then).

Bug: 150236894
Test: atest android.net.wifi.cts.WifiNetworkSpecifierTest
Change-Id: I6881003510191f667950be1ab27a5399fe3914b4
Merged-In: I6881003510191f667950be1ab27a5399fe3914b4
2020-03-03 20:32:27 +00:00
Automerger Merge Worker
b37367a178 Merge changes I80f66d19,I68810035 into rvc-dev am: 8d974dc239
Change-Id: Ia6fa63f596749afa47d0a962343ad858a700c84f
2020-03-03 18:14:17 +00:00
Roshan Pius
75dbcfff98 Shell: Allow retrieval of wifi network credentials
This permission is needed for some wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the retireval of the saved wifi network
credentials on the device.

What options did you explore that did not need this permission?
- Possibly creating a UI to ask for manual entry of network credentials.
But, that would not let us do automated CTS tests (will need to become
CTS verifier tests then).

Bug: 150236894
Test: atest android.net.wifi.cts.WifiNetworkSpecifierTest
Change-Id: I6881003510191f667950be1ab27a5399fe3914b4
2020-03-03 09:26:27 -08:00
Automerger Merge Worker
1776de9a52 Merge "New priority scripts + critical updates to fonts." into rvc-dev am: c0cc6a532a
Change-Id: I75596924a65e05ff20bc9ab46a5c7bf41c22db15
2020-03-03 05:20:34 +00:00