Commit Graph

6466 Commits

Author SHA1 Message Date
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
77cbe77beb Merge "Enable RESTRICTED bucket." into sc-dev 2021-03-23 18:58:14 +00: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
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
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
Oli Lan
8b73f249e0 Merge "Add a setting to control whether clipboard access notifications are shown." into sc-dev am: 242c7c5f2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13828879

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I75b1b57d80abe307d4f5e97a9e66980ea7113e10
2021-03-15 14:18:11 +00:00
Oli Lan
242c7c5f2c Merge "Add a setting to control whether clipboard access notifications are shown." into sc-dev 2021-03-15 14:09:48 +00:00
Grace Jia
b53cb66e5f Add D2D sharing level setting APIs.
Test: unit test, cts test
Bug: 163085177
Change-Id: I86f88d68c8629a0329dcde7b2d17928cacec37e7
Merged-In: I86f88d68c8629a0329dcde7b2d17928cacec37e7
2021-03-11 22:20:16 +00:00
Oli Lan
dfeb99ae1a Add a setting to control whether clipboard access notifications are shown.
This adds a setting to turn on/off the toast notifications shown when
an app accesses clipboard.

Bug: 182349993
Test: atest SettingsProviderTest
Change-Id: I6922ed5a74fae17602a2ac20a199a7d6c03014b9
2021-03-11 18:11:41 +00:00
Beverly Tai
29bcf95db4 Merge "Add quickpickup gesture" into sc-dev am: 384db6dd05
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676306

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I96f3a49414f9d881dd480f12570cda4177584b6f
2021-03-11 14:04:58 +00:00
Beverly Tai
384db6dd05 Merge "Add quickpickup gesture" into sc-dev 2021-03-11 13:35:56 +00:00
Beverly
c0ddb20d17 Add quickpickup gesture
Only registered when:
- udfps enrolled
- AOD is not enabled
- quickpick enabled:
    adb shell settings put secure doze_quick_pickup_gesture 1
Currently by default, quickpickup is not enabled

On gesture trigger, AOD screen will show for 5 seconds

Test: manual
Bug: 176550666
Change-Id: I804a2590c1d95acad62fbfbc85228ecfc8bfa3ed
2021-03-10 19:00:24 +00:00
Alex Salo
25120f025e Merge "Fix long press auto rotate implementation bug" into sc-dev am: 20e43f73b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13777287

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7e4e99d23c7d239ceb84e7810276bae7e82c48bf
2021-03-09 00:38:53 +00:00
Abel Tesfaye
a643342375 Fix long press auto rotate implementation bug
Test: locally with flame

Bug: 181741815
Change-Id: Ie0a69ab7f8320ac688ee4182113d8396d541bf4c
2021-03-05 18:21:06 +00:00
SongFerng Wang
b332627a15 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-03-05 01:59:53 +00:00
SongFerngWang
e206456a16 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
Merged-In: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-03-04 14:58:54 +08:00
Tej Singh
e6a05a0c28 Merge "Java flag support for statsd" into sc-dev am: 0c7463b8d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13705296

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I102001d2d327b141f697db73bad7bf3dc54c5772
2021-03-04 03:23:07 +00:00
Tej Singh
0c7463b8d7 Merge "Java flag support for statsd" into sc-dev 2021-03-04 03:11:12 +00:00
Xin Li
1af6a12e98 Merge "Merge RQ2A.210305.007" 2021-03-03 21:41:39 +00:00
Paul Hu
18a60acfdf Merge "Implement Settings#checkAndNoteChangeNetworkStateOperation on CS" 2021-03-03 01:07:20 +00:00
Jayachandran Chinnakkannu
2cdad9f0a2 Add new provisioning flag for VOIMS opt-in
Bug: 177009570
Test: By Manual
1. Call setProvisioningIntValue() and getProvisioningIntValue()

2. Enable/disable the value and dial a VoLTE call
2-1. Set value to 1
2-2. Dial a call
2-3. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
 registered and device is trying IMS PS call
2-4. Set value to 0
2-5. Dial a call
2-6. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
unregistered and device is trying (non-IMS) CS call

3. atest

Change-Id: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
Merged-In: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
2021-03-02 23:26:40 +00:00
TreeHugger Robot
b68cbac9c6 Merge "Add new provisioning flag for VOIMS opt-in" 2021-03-02 19:25:02 +00:00
Paul Hu
0032a99c1c Merge "Implement Settings#checkAndNoteChangeNetworkStateOperation on CS" into sc-dev am: f95beb7a91
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13483027

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab5acbb42c7f00b87ed96b483fdf3b53b9ca4541
2021-03-02 14:09:30 +00:00
Paul Hu
f95beb7a91 Merge "Implement Settings#checkAndNoteChangeNetworkStateOperation on CS" into sc-dev 2021-03-02 13:03:13 +00:00