Commit Graph

1462 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
c0cc6a532a Merge "New priority scripts + critical updates to fonts." into rvc-dev 2020-03-03 05:07:59 +00:00
Automerger Merge Worker
ee5248c7b5 Merge "Update nintendo joystick layout" into rvc-dev am: cada936a36
Change-Id: Idecc45db93e86c591a173945bd16d14d2a3bac3e
2020-03-03 02:41:45 +00:00
TreeHugger Robot
cada936a36 Merge "Update nintendo joystick layout" into rvc-dev 2020-03-03 02:30:54 +00:00
Hall Liu
106c0defca Add PlatformCompat permissions to TelephonyProvider
Add the required permissions for querying PlatformCompat to the
whitelist for TelephonyProvider.

This is the minimum scoped permission -- PlatformCompat only defines two
permissions for access (read and write) and we need both.

The alternative for using these permissions is to not call
PlatformCompat and enforce the new behavior on all apps. This was deemed
unacceptable by the app compat team because it was breaking some popular
apps.

Bug: 144631034
Test: atest TelephonyProviderHostTest

Change-Id: I43a0a66ae381caf8d9e21d0f14d471b20a4e44af
2020-03-02 13:04:01 -08:00
Automerger Merge Worker
5cd20c9e30 Merge "Add COMPANION_APPROVE_WIFI_CONNECTIONS to shell permissions" into rvc-dev am: 5dbabb62a6
Change-Id: I87eab50ae534e584e3d5e0d4b2d66e87dee7442a
2020-02-29 23:59:39 +00:00
Paul Murphy
5dbabb62a6 Merge "Add COMPANION_APPROVE_WIFI_CONNECTIONS to shell permissions" into rvc-dev 2020-02-29 23:42:23 +00:00
Paul Murphy
1460b76a02 Add COMPANION_APPROVE_WIFI_CONNECTIONS to shell permissions
1. This is a minimally scoped permission (which allows the new WiFi API's
to silently connect to a wifi network).
2. I explored writing a GTS test instead of a CTS test, with the idea being that it would run inside the Android Auto user. Unfortunately the API under test requires two permissions, MANAGE_COMPANION_DEVICES and COMPANION_APPROVE_WIFI_CONNECTIONS. Android Auto will only have COMPANION_APPROVE_WIFI_CONNECTIONS, and if I elevate to Shell privileges the test will have MANAGE_COMPANION_DEVICES, but not COMPANION_APPROVE_WIFI_CONNECTIONS. Beyond this, I've been told that it's better for us to test this API in CTS than what it is under GTS.

The addition of the permission to androis.os.shell could theoretically allow it to connect to a WiFi network using the new WiFi APIs without the user being prompted. Android R will still allow the legacy WiFi API's which also allow wifi connections without users being prompted without this permission. Android Auto requires the new API's as they better handle cases of connecting to WiFi networks with no internet access. The old API's will not always result in fallback to LTE, whereas the new ones do that.

Test: Unit test in separate change.
Change-Id: Ifd8ae6b7e53307ea8973406fdefa468dfa679bda
Bug: b/147748710
2020-02-28 21:58:08 +00:00
Marek Z Jeziorek
0806acaf0c New priority scripts + critical updates to fonts.
Author: Marek Z. Jeziorek <marekj@google.com>

BUGANIZER BUGS Addressed
========================
BUG: 149257053

CHANGES
=======
Remove font files no longer required
 deleted:    other/NotoSansAdlam-Regular.ttf
 deleted:    other/NotoSansGeorgian-Bold.otf
 deleted:    other/NotoSansGeorgian-Medium.otf
 deleted:    other/NotoSansGeorgian-Regular.otf
 deleted:    other/NotoSansJavanese-Regular.ttf
 deleted:    other/NotoSansTifinagh-Regular.ttf
 deleted:    other/NotoSerifGeorgian-Bold.otf
 deleted:    other/NotoSerifGeorgian-Regular.otf

 modified:   fonts.mk
 modified:   other/Android.bp

Replacements for the above deleted files:
 new file:   other/NotoSansAdlam-VF.ttf
 new file:   other/NotoSansGeorgian-VF.ttf
 new file:   other/NotoSansJavanese-Regular.otf
 new file:   other/NotoSansTifinagh-Regular.otf
 new file:   other/NotoSerifGeorgian-VF.ttf

New additions to Android fonts (living/revival languages):
 new file:   other/NotoSansGunjalaGondi-Regular.otf
 new file:   other/NotoSansHanifiRohingya-Regular.otf
 new file:   other/NotoSansKhojki-Regular.otf
 new file:   other/NotoSansMasaramGondi-Regular.otf
 new file:   other/NotoSansWancho-Regular.otf
 new file:   other/NotoSansWarangCiti-Regular.otf

Test: ===================================================
Test: on Android (click on a link within a browser):
Test: Adlam https://en.wikipedia.org/wiki/Adlam_(Unicode_block)
Test: Georgian https://en.wikipedia.org/wiki/Georgian_(Unicode_block)
Test: Georgian https://en.wikipedia.org/wiki/Georgian_Extended
Test: Gunjala Gondi https://en.wikipedia.org/wiki/Gunjala_Gondi_(Unicode_block)
Test: Hanifi Rohingya https://en.wikipedia.org/wiki/Hanifi_Rohingya_(Unicode_block)
Test: Javanese https://en.wikipedia.org/wiki/Javanese_(Unicode_block)
Test: Khojki https://en.wikipedia.org/wiki/Khojki_(Unicode_block)
Test: Masaram Gondi https://en.wikipedia.org/wiki/Masaram_Gondi_(Unicode_block)
Test: Tifinagh https://en.wikipedia.org/wiki/Tifinagh_(Unicode_block)
Test: Wancho https://en.wikipedia.org/wiki/Wancho_(Unicode_block)
Test: Warang Citi https://en.wikipedia.org/wiki/Warang_Citi_(Unicode_block)
Test: ===================================================
Test: on Android (click on a link within a browser):
Test: udhr Adlam https://unicode.org/udhr/d/udhr_fuf_adlm.html
Test: udhr Georgian https://unicode.org/udhr/d/udhr_kat.html
Test: udhr Gunjala Gondi NA (Not Available)
Test: udhr Hanifi Rohingya NA (Not Available)
Test: udhr Javanese https://unicode.org/udhr/d/udhr_jav_java.html
Test: udhr Khojki NA (Not Available)
Test: udhr Masaram Gondi NA (Not Available)
Test: udhr Tifinagh https://unicode.org/udhr/d/udhr_tzm_tfng.html
Test: udhr Wancho NA (Not Available)
Test: udhr Warang Citi NA (Not Available)
Test: ===================================
Test: on Android (comparing two systems - before/after)
Test: Georgian: Systems settings menus compared side by side
Test: ===================================
Test: on Mac (comparing the existing Android fonts with the new font
Test: using diffenator - https://github.com/googlefonts/fontdiffenator)
Test: ===================================
Test: SansAdlam-VF: VALIDATED
Test: SansGeorgian-VF: VALIDATED
Test: SansGunjalaGondi: NEW (No Applicable)
Test: SansHanifiRohingya: NEW (No Applicable)
Test: SansJavanese: VALIDATED
Test: SansKhojki: NEW (No Applicable)
Test: SansMasaramGondi: NEW (No Applicable)
Test: SansTifinagh: VALIDATED
Test: SansWancho: NEW (No Applicable)
Test: SansWarangCiti: NEW (No Applicable)
Test: SerifGeorgian-VF: VALIDATED

Change-Id: I86d46f4b6404509a2e7792473a321f5538b9eb19
Signed-off-by: Marek Z Jeziorek <marekj@google.com>
(cherry picked from commit a28399dbaf)
2020-02-28 14:34:56 +00:00
Automerger Merge Worker
d000a1c6de Merge "Allow WRITE_SECURE_SETTINGS for ANGLE to provide developer options." am: b4cbb98dae am: e96cc53d1a
Change-Id: I634e69e56e0bc3b6175027c8200442ecbfe9b6ee
2020-02-27 22:37:25 +00:00
Geoff Lang
b4cbb98dae Merge "Allow WRITE_SECURE_SETTINGS for ANGLE to provide developer options." 2020-02-27 22:12:13 +00:00
Siarhei Vishniakou
76baf21e11 Update nintendo joystick layout
Now that we will have the correct hid-nintendo driver in the kernel, we
need to update the joystick layout to ensure correct operation.

This change requires the hid-nintendo patch from:
https://android-review.googlesource.com/c/kernel/common/+/1246269/

Test: verified via bluetooth and usb using controllerTester app
Test: atest NintendoSwitchProTest

Bug: 135136477
Change-Id: I8d5c660864a46e8fcd6967c7fffd42460f86e36f
2020-02-27 11:30:54 -08:00
Ivan Chiang
3cb1cbdcfd Add PlatformCompat feature for DocumentUI
- Whitelist PlatformCompat permissions for DocumentsUI
- Add documents-ui-compat-config into Android.bp

Bug: 141600225
Test: build and boot to home
Test: tools/tradefederation/core/tests/run_tradefed_tests.sh \
      --class com.google.android.asit.DeviceBootTestTest
Change-Id: Iedf73faf497a4ea055b33f68dc0b7097f306791d
2020-02-27 06:57:43 +00:00
Kelvin Kwan
f73b84160e Merge "Add MODIFY_QUIET_MODE for DocsUI" into rvc-dev 2020-02-26 20:30:53 +00:00
Michael Groover
58f20c408f Whitelist READ_PRIVILEGED_PHONE_STATE for the contacts provider
In Android 10 access to device identifiers was moved from a runtime
permission to the privileged READ_PRIVILEGED_PHONE_STATE permission.
One of the non-resettable identifiers missed was SubscriptionInfo#
getIccId. The contacts provider currently uses this ID to upgrade
to version 1003 of the database; to ensure there are no issues with
this upgrade this permission is being whitelisted for the contacts
provider.

Bug: 131909991
Test: atest ContactsProviderTests
Change-Id: I7574f787a7e55aa0337237b9fe916ee143a2f697
Merged-In: I7574f787a7e55aa0337237b9fe916ee143a2f697
(cherry picked from commit 7b484438ec)
2020-02-26 18:43:50 +00:00
TreeHugger Robot
6f01c62d29 Merge "Add key layouts for Xbox clones" into rvc-dev 2020-02-26 15:02:38 +00:00
Kelvin Kwan
2fc5d72f40 Add MODIFY_QUIET_MODE for DocsUI
Bug: 149642046
Test: manual
Change-Id: Ie65b4b86fad557f27e241ea848793ee52473e6df
2020-02-26 14:16:29 +00:00