Commit Graph

6486 Commits

Author SHA1 Message Date
Kriti Dang
9abafa09f6 Merge "Hdr format settings [Backend]" 2021-03-24 15:54:18 +00:00
Xiaoyu Jin
c85389acdd Merge "Add DeviceConfig namespace for AppSearch" into sc-dev am: d988ccfa8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13959213

Change-Id: I7f60d86e559c8ae46e976d23c1533c61e30d9841
2021-03-24 06:19:46 +00:00
Peter Wang
e8a9d666b9 Merge "[API Review] Change ACTION_MANAGE_ALL_SIM_PROFILE_SETTINGS API" into sc-dev am: 3c8304207b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13807440

Change-Id: Ief71b115a7ff011f60e11e1923cb3d3c8a06d40c
2021-03-24 06:10:27 +00:00
Rambo Wang
f226b0762e Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode" am: c289c9b0a2 am: 506d5c92c3 am: 507e3b9dcd am: 6d768fb7d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1636779

Change-Id: Ic1b0f034772ec1c7f38571684b8675727a0b03c5
2021-03-24 06:07:35 +00:00
Rambo Wang
16750636fd Public ServiceState#duplexMode in telephony provider am: 4481b5181e am: b336d92aa7 am: 57456a7152 am: de0c5fa090
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1638159

Change-Id: Ic886e9ad3620344cf96afb62ecd7242b26157ab3
2021-03-24 06:07:29 +00:00
Xiaoyu Jin
d988ccfa8e Merge "Add DeviceConfig namespace for AppSearch" into sc-dev 2021-03-24 05:29:12 +00:00
Jacky Kao
c9f94813f9 Merge "Logs magnification feature behavior. (2/2)." 2021-03-24 05:08:59 +00:00
Peter Wang
3c8304207b Merge "[API Review] Change ACTION_MANAGE_ALL_SIM_PROFILE_SETTINGS API" into sc-dev 2021-03-24 03:24:20 +00:00
Rambo Wang
6d768fb7d6 Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode" am: c289c9b0a2 am: 506d5c92c3 am: 507e3b9dcd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1636779

Change-Id: Ic8faff9d023b492da5eb7e31e281ddfbf49c8d1d
2021-03-24 03:01:54 +00:00
Rambo Wang
de0c5fa090 Public ServiceState#duplexMode in telephony provider am: 4481b5181e am: b336d92aa7 am: 57456a7152
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1638159

Change-Id: I2f53c2305075011904718ba5a81279875dc07235
2021-03-24 03:01:39 +00:00
John Li
bb9e119844 Merge "Add Settings flag for Transform." into sc-dev 2021-03-24 02:21:00 +00:00
TreeHugger Robot
c19c8d77ff Merge "Enable RESTRICTED bucket." into sc-dev am: 77cbe77beb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13520216

Change-Id: I9c7fbe6587c58663918d1f7eb0b460ce946fe367
2021-03-24 01:03:09 +00:00
TreeHugger Robot
074666c5a0 Merge "Add support for selected contacts device to device sharing." into sc-dev 2021-03-23 22:11:22 +00:00
Xiaoyu Jin
eefbf02162 Add DeviceConfig namespace for AppSearch
Adds a new namespace to DeviceConfig for features
relating to AppSearch.

Bug: 173532925
Test: build
Change-Id: I5887899d9292bf88ea5007d94c20b8690ee73872
2021-03-23 13:08:43 -07:00
TreeHugger Robot
77cbe77beb Merge "Enable RESTRICTED bucket." into sc-dev 2021-03-23 18:58:14 +00:00
Kriti Dang
4f7df5b8aa Hdr format settings [Backend]
Added new APIs to DisplayManager to set the user disabled HDR formats,
and get/set if user disabled formats should be ignored or not.
These new settings are stored in Settings.Global.
Modified the implementation of Display#getHdrCapabilities to not return
the formats disabled by user.

Bug: 172905874
Test: atest CtsDisplayTestCases
Change-Id: I4841af251ee0e4938614b154d0c5239814ea7cd9
2021-03-23 18:10:34 +01:00
Rambo Wang
cff9760e07 Export ServiceState#DataRegState into telephony provider
Keep ServiceState#getDataRegState hide. Apps can get the same
info from telephony provider without loation permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I1ba72a5b767761d2f7bd1b52459a0c9d101061a2
2021-03-23 09:33:21 -07:00
Rambo Wang
4481b5181e Public ServiceState#duplexMode in telephony provider
ServiceState#getDuplexMode is a public API. Expose the same
info through telephony provider to let applications retreive
it without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I19128c938993f351533aca9a8e1a1356e21eb30e
2021-03-23 09:27:42 -07:00
Rambo Wang
9e92686d87 Merge "Expose ServiceState#getDataNetworkType in telephony provider" am: 9446a5239f am: 11264381a4 am: ff97f102cc am: 8fadaef00c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1639370

Change-Id: I819cc7cc59391113747b338bbce740fdb9c0bdfd
2021-03-23 16:11:37 +00:00
Rambo Wang
8fadaef00c Merge "Expose ServiceState#getDataNetworkType in telephony provider" am: 9446a5239f am: 11264381a4 am: ff97f102cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1639370

Change-Id: Ib2c5d3ec7b28e37d1fa7426aa9e0a1bc7730b9e8
2021-03-23 15:57:25 +00:00
Grace Jia
2bd23cfbcc Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-03-23 15:51:24 +00:00
Grace Jia
7fd18ac469 Merge "Add support for selected contacts device to device sharing." 2021-03-23 15:50:52 +00:00
Abhijeet Kaur
839aa85298 Make getExternalStorageMountMode as SystemApi
Secondary volumes are FUSE mounted, whereas Android/data and Android/obb
on primary volumes are not FUSE mounted. Access to these private app
directories on primary volumes is restricted using the mount modes, but
access for these on secondary volumes need to be regulated by
MediaProvider.

Make getExternalStorageMountMode as SystemApi so that MediaProvider
can leverage the same mount logic for Secondary volumes.
Expose relevant mount modes as SystemApi as well.

This change saves us the maintenance overhead for Secondary volumes for
Android S+. Otherwise we would have to check if an app is a signature
app through APIs which would basically be the duplication for the
logic in StorageManagerService.java.

Expose ExternalStorageProvider and downloads Authority for MediaProvider
to rely only on APIs. This is also required for CDD modifications that
these 2 providers are given exceptional access to private app dirs.

Bug: 175796984
Bug: 173505864
Bug: 173505864
Test: atest DownloadProviderTest
Test: atest CtsScopedStorageHostTest
Test: atest android.scopedstorage.cts.host.PublicVolumeHostTest#testCheckInstallerAppAccessToObbDirs
Test: atest android.scopedstorage.cts.host.PublicVolumeHostTest#testCantAccessOtherAppsExternalDirs
Change-Id: I51bc7bd3f355fadd9de56ac267469c2352eb0ffa
2021-03-23 11:18:17 +00:00
John Li
8929a2e804 Add Settings flag for Transform.
Bug: 177299699
Test: manual
Change-Id: I4947117b6bb11678e3ad761204d720354b9e73ae
Merged-In: I4947117b6bb11678e3ad761204d720354b9e73ae
2021-03-23 07:50:22 +00:00
Jacky Kao
1aa113d8dd Logs magnification feature behavior. (2/2).
Uses the atom MagnificationModeWithImeOnReported in westworld to log
the activated mode when the IME window is shown on the screen.

Adding a new callback API in the MagnificationCallback to monitor the
IME window visibility changes. The A11y framework registers the
callback when the magnification is enabled. It logs the related
data when it receives the IME window visibility changes through
this callback and the magnification is in the activation.

Bug: 154021596
Test: a11y CTS & unit tests
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 346
Change-Id: I49b02e00d5a1131b388eeb923440f59a2b4f81a6
2021-03-23 10:04:55 +08:00
Grace Jia
c1a60b336e Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-03-23 01:48:00 +00:00
Tej Singh
36f30dcc3b Merge "Add statsd flags to public namespaces" into sc-dev am: f6561f6c82
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13897151

Change-Id: I77b806c54a6dc6195ab63f8f83cabeaba71ba262
2021-03-22 19:30:55 +00:00
Rambo Wang
6a7df3f4e8 Expose ServiceState#getDataNetworkType in telephony provider
Data network type is key information to make the switching
decision. Exporting to telephony provider can let application
get the information without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I9753eee2619baf6b1627835624444c0e4f0cd410
2021-03-22 12:24:19 -07:00
Tej Singh
f6561f6c82 Merge "Add statsd flags to public namespaces" into sc-dev 2021-03-22 18:22:48 +00:00
TreeHugger Robot
74e2c6d052 Merge "Add device config parameters to DiscreteRegistry." into sc-dev am: 41ec7a8e38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13901257

Change-Id: Icc1c2459f4c240def20a5a3cc074df96e5ebde99
2021-03-22 13:16:00 +00:00
Jeff DeCew
513dae352d Merge "Minimal change to remove development settings." into sc-dev am: 7d1ca13d41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13926946

Change-Id: I02d4698e5aa67aeb9dce38233885fd14ee0a929d
2021-03-22 13:09:35 +00:00
TreeHugger Robot
41ec7a8e38 Merge "Add device config parameters to DiscreteRegistry." into sc-dev 2021-03-21 22:56:05 +00:00
Stanislav Zholnin
3c46aca490 Add device config parameters to DiscreteRegistry.
DiscreteRegistry cut off and quantization can be set using
adb shell device_config command.

Bug: 176965672
Test: in development
Change-Id: If4df5413d7c7f9bcbdcb751ac2ab772d51c1da80
2021-03-21 21:18:23 +00:00
Tej Singh
8d5fd36dd1 Add statsd flags to public namespaces
Add statsd_java and statsd_java_boot to PUBLIC_NAMESPACES, which allows
feature flagging in app-side statsd code (in
packages/modules/StatsD/framework)

Test: TH
Bug: 181823899
Change-Id: Ia3f92a21a9bc050373de6c6fa4969a4d3af4bccb
2021-03-19 22:54:21 +00:00
Jeff DeCew
6f667c3b5a Minimal change to remove development settings.
Fixes: 183120687
Test: manual
Change-Id: I5632e131b47058ebe25ab21db004eb90498bc299
2021-03-19 15:59:47 -04:00
Jordan Liu
1dfc25617a Make backport_s_notif_rules readable
Bug: 182313963
Test: atest
Change-Id: I4a0ba25a8a5f0674696a83e931ce2aa914c7e7ea
(cherry picked from commit a5792f7402)
Merged-In: I4a0ba25a8a5f0674696a83e931ce2aa914c7e7ea
2021-03-19 19:52:00 +00:00
Jordan Liu
a871525019 Merge "Make backport_s_notif_rules readable" 2021-03-19 16:23:28 +00:00
TreeHugger Robot
55de27b3b7 Merge "Add the intent to navigate to MANAGE_MEDIA permission page" into sc-dev am: b50b960b35
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13824706

Change-Id: I2ec5997485ddbde14a42db6ab616659f71d34b0a
2021-03-19 01:47:24 +00:00
TreeHugger Robot
b50b960b35 Merge "Add the intent to navigate to MANAGE_MEDIA permission page" into sc-dev 2021-03-19 01:00:40 +00:00
TreeHugger Robot
ab17781de5 Merge "[Settings] add @Readable back for block_untrusted_touches, maximum_obscuring_opacity_for_touch" into sc-dev am: 1c3fef7596
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13920705

Change-Id: Ida7de6fb7fddb8cd4f3fef5af981b678caa948c6
2021-03-18 22:07:25 +00:00
Jordan Liu
a5792f7402 Make backport_s_notif_rules readable
Bug: 182313963
Test: atest
Change-Id: I4a0ba25a8a5f0674696a83e931ce2aa914c7e7ea
2021-03-18 11:30:36 -07:00
Songchun Fan
e6383a6d3d [Settings] add @Readable back for block_untrusted_touches, maximum_obscuring_opacity_for_touch
These settings are marked @hide to encourage the usage of wrapper APIs.
They should still be readable for any app via the public APIs in
InputManager.

BUG: 183067125
Test: atest android.server.wm.WindowUntrustedTouchTest
Change-Id: I2a3aff0e3bb2ecfba439323fc09b353bd0f2106f
2021-03-18 18:16:06 +00:00
Kweku Adams
0793e0de68 Enable RESTRICTED bucket.
Also reduce the minimum time delay to enter the bucket to 4 hours. The
current default remains 30 days.

Bug: 183103253
Test: atest AppStandbyControllerTests
Test: atest CtsJobSchedulerTestCases
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Change-Id: I2171ad0b6fcad6c79b480582437fe1c0fd3df3b5
2021-03-18 16:17:01 +00:00
Lucy Chang
e5757df425 Merge "Prompt notifications for non-accessibility services" into sc-dev am: 6d65ee195a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13451719

Change-Id: Iaa9aa227d15870c904e35a796ead5e61d053af35
2021-03-18 05:46:06 +00:00
lucychang
b98a658c27 Prompt notifications for non-accessibility services
Prompts a notification for the non-accessibility category service after
24 hours enabled to alert users the service has powerful permissions to
view and control the device. And the notification won't be resend to
the same service by saving the dismiss record to Settings.

Bug: 176965357
Test: atest AccessibilitySecurityPolicyTest
      atest PolicyWarningUIControllerTest
      and manually test

Change-Id: Id5daf7b14dc88cf3f71a53f46fa9a8f1dee91822
2021-03-18 03:01:10 +00:00
Songchun Fan
ac9cf8515c Merge "[settings] Remove @Readable for hidden fields added in S" into sc-dev am: cd9ae13846
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13764747

Change-Id: I91c3abbf693a9347e5abea931b96c769d56995c2
2021-03-18 01:18:47 +00:00
Songchun Fan
cd9ae13846 Merge "[settings] Remove @Readable for hidden fields added in S" into sc-dev 2021-03-18 00:55:44 +00:00
Songchun Fan
2a9a33830d [settings] Remove @Readable for hidden fields added in S
This protects newly added fields from being accessed outside
system_server or system/privileged apps.

BUG: 175024829
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I40fda59c164a5982e811d51a69dc9aa8365b04d1
2021-03-17 18:51:07 +00:00
Yomna Nasser
1de59a9c59 Implementation of "Enable 2G" for Settings.
(1) Adds KEY_HIDE_ENABLE_2G_BOOL to CarrierConfigManager, and
(2) Adds new reason ALLOWED_NETWORK_TYPES_REASON_ENABLE_2G.

Test: manual & atest -c Enable2gPreferenceControllerTest
Bug: b/163168917
Change-Id: I81052549f8dde491697c35365320145fd24c3842
Merged-In: I81052549f8dde491697c35365320145fd24c3842
2021-03-17 20:21:21 +08:00
Ivan Chiang
e82705b52e Add the intent to navigate to MANAGE_MEDIA permission page
Test: m -j
Test: atest AvailableIntentsTest
Bug: 181112025
Change-Id: I08ca853c96bf83fe51e6e09f47e1ee052d2a7453
2021-03-17 14:02:02 +08:00