Commit Graph

742 Commits

Author SHA1 Message Date
Andrii Kulian
3dc6448cda Merge "1/n Move TaskContainers out of DisplayContent class" into rvc-dev am: dddb9dd853 am: c18dd5783b am: 090a16fd66 am: 2fc3bd7e8b am: 4ed1d1eea0
Change-Id: I5c5c35957e809334765c29d8d78e2f622549fe4d
2020-03-30 18:59:02 +00:00
Adam Bookatz
8006a71876 Merge "UserSystemPackageInstaller only (un)installs when appropriate" 2020-03-28 00:29:49 +00:00
Andrii Kulian
526ad439c3 1/n Move TaskContainers out of DisplayContent class
No changes in logic, just moving the code around.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I4aa142e07e39950d077c685bb157b4abb2172886
2020-03-27 17:20:46 -07:00
Adam Bookatz
a141493130 UserSystemPackageInstaller only (un)installs when appropriate
The UserSystemPackageInstaller (USPI) uninstalls system
packages that are not needed, depending on the user type.
When that determination changes (or the feature is disabled)
it can also re-install those packages.
This cl specifies when it is appropriate for USPI to actually
perform the (un)installation.

1.
Introduces uninstallReason: records the reason why a package
was uninstalled from a given user. Right now, the only values
are UNKNOWN and USER_TYPE. The latter indicates that the USPI
system uninstalled the package. If the USPI whitelist changes
(or the USPI feature is disabled), uninstalled packages will
only be installed by USPI if the uninstallReason was USER_TYPE.
Any further uninstalls (e.g. by ManagedProvisioning) will reset
the uninstallReason to UNKNOWN, so USPI will no longer install
such packages in the future.
This prevents USPI from reinstalling system packages that other
mechanisms (such as ManagedProvisioning) uninstalled.

2.
USPI will uninstall a system package if it is blacklisted, but
only if that system package is new, i.e in two circumstances:
a. on first boot
b. on an OTA where the package was not present prior to the OTA

Bug: 143200798
Test: atest UserSystemPackageInstallerTest
Test: Confirmed (un)installations during manually simulated OTAs
Change-Id: Ia0714d1faa8f7c79082f2cc93a92ae36b9a4c918
2020-03-27 12:00:52 -07:00
TreeHugger Robot
1410b406d7 Merge "Allow WRITE_SECURE_SETTINGS for ANGLE to provide developer options." into rvc-dev 2020-03-27 17:16:35 +00:00
Geoff Lang
4b5a106542 Allow WRITE_SECURE_SETTINGS for ANGLE to provide developer options.
ANGLE is a system library which adds a developer option to control when
it is used as the default OpenGL ES driver.

Test: manual, ANGLE.apk's developer options work.
Bug: 142239747

This is a cherry-pick of https://android-review.googlesource.com/c/platform/frameworks/base/+/1222890

Change-Id: I3e616d6252d0daa0e32c942b05987d17e73a2709
2020-03-25 16:13:24 +00:00
Anton Hansson
fd58e7bb89 Merge "Remove the tethering hiddenapi whitelist entry" into rvc-dev am: 7fe2d29f1b am: 1f9daeb58b
Change-Id: If40c21ba3c75f63f2db49a42f446685f19812c09
2020-03-25 12:57:09 +00:00
Anton Hansson
7fe2d29f1b Merge "Remove the tethering hiddenapi whitelist entry" into rvc-dev 2020-03-25 12:42:23 +00:00
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
Anton Hansson
e11221c738 Remove the tethering hiddenapi whitelist entry
Dexes under /apex are automatically whitelisted.

Bug: 146757305
Test: presubmit
Change-Id: I97af6d911c7e9bafdaa2a97102b2131dea6c0896
2020-03-20 15:27:27 +00: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
c782252d0d Merge "Adding launcher permission to base whitelist" into rvc-dev am: 6a265d64e8 am: b2ef1f6334
Change-Id: I6be7f8b3e45e7a911251ffda187f4abf5eff29cc
2020-03-16 18:43:00 +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