Commit Graph

4360 Commits

Author SHA1 Message Date
Fan Zhang
07547c6c58 Merge "Add intent action constant for launching Settings search UI" 2018-10-03 20:46:17 +00:00
Fan Zhang
c8c5c2a5d1 Add intent action constant for launching Settings search UI
This is needed by system apps other than Settings, such as
PackageInstaller/PermissionController

Bug: 113128828
Test: CTS
Change-Id: I97cc9f90bb0978ce50ba0c10fcdd1b984028577c
2018-10-02 13:17:21 -07:00
Leif Hendrik Wilden
d538e6b8fb Merge "Allow wifi and ethenet connected at same time." am: 54d34fe8a7 am: 1bceeaac85
am: bf1f2c455e

Change-Id: I36b924ac20ebe58dc2a522509b83a341994ff480
2018-10-02 11:25:36 -07:00
Leif Hendrik Wilden
bf1f2c455e Merge "Allow wifi and ethenet connected at same time." am: 54d34fe8a7
am: 1bceeaac85

Change-Id: I2b180336f74697ff5467c210eabccb4813ce317f
2018-10-02 11:06:14 -07:00
Leif Hendrik Wilden
1bceeaac85 Merge "Allow wifi and ethenet connected at same time."
am: 54d34fe8a7

Change-Id: I7c1d6fdcb7c7ed26e765f52373e20d19b6db7bfc
2018-10-02 10:57:11 -07:00
Makoto Onuki
f768ba4f7a Merge "Revert "Add RawContacts insert/update/delete notification URIs."" 2018-10-02 17:15:39 +00:00
Treehugger Robot
54d34fe8a7 Merge "Allow wifi and ethenet connected at same time." 2018-10-02 17:09:16 +00:00
Makoto Onuki
23961c8a80 Merge "Allow default SMS app to be always running" 2018-10-02 15:32:50 +00:00
TreeHugger Robot
52ac7e2d21 Merge "Add isRootsUri method to check whether the roots uri is valid" 2018-10-02 10:17:45 +00:00
Jeff Sharkey
954725874b Merge changes from topic "bugfix_content_path" am: aa642187cd am: f8ad474935
am: 8fe3754f1a

Change-Id: I1718c1c34860b23d7dbe22bb6350825483e41fd6
2018-10-01 12:06:55 -07:00
Makoto Onuki
0554b19010 Revert "Add RawContacts insert/update/delete notification URIs."
This reverts commit ff88b14e62.

Reason for revert: API Council push back

Bug: 113696451
Bug: 116798156
Change-Id: I328d981b96d44e37c58625b48334891baf9a8487
2018-10-01 18:50:08 +00:00
Jeff Sharkey
8fe3754f1a Merge changes from topic "bugfix_content_path" am: aa642187cd
am: f8ad474935

Change-Id: Ic5bbd68c327e6ad26ba3ddbd19ca5ea277396452
2018-10-01 11:40:25 -07:00
Jeff Sharkey
f8ad474935 Merge changes from topic "bugfix_content_path"
am: aa642187cd

Change-Id: Ice15a2cffcaf96a370f8e73ebe0a25bdea67f1c3
2018-10-01 11:25:38 -07:00
Jeff Sharkey
aa642187cd Merge changes from topic "bugfix_content_path"
* changes:
  Add OEM_SOUNDS_DIR variable
  Fix the bug that secondary storage path is judged as internal
  Revert "MediaStore.Audio.Media.getContentUriForPath() returns unexpected content"
2018-10-01 17:49:03 +00:00
Leif Hendrik Wilden
fd30663181 Allow wifi and ethenet connected at same time.
This will improve the user experience on Android TV devices,
see bug for details.

In addition when connecting adb to the device by ethernet
for cts, wifi will not connect, causing lots of tests to fail.
For example:
[CTS7.1]android.net.wifi.cts.WifiInfoTest#testWifiInfoProperties
[CTS7.1]android.net.cts.ConnectivityManagerTest#testConnectivityChanged_
manifestRequestOnlyPreN_shouldReceiveIntent

Use command:settings to put global wifi_data_always_on 1 to enable it.

Bug: 26102779
Test: Manual, CTS.
Change-Id: I711d93061a6bc7164d98a858912f781e1b967406
2018-10-01 09:12:10 -07:00
Remi NGUYEN VAN
cc7594fe68 Merge changes I0f997d30,I288ba1f4 am: 53f8591789 am: bc3c6b1314
am: 755c78a8dd

Change-Id: If6773e2c3a09d9967f4767c0512e6746b6b44196
2018-09-30 20:11:13 -07:00
Remi NGUYEN VAN
755c78a8dd Merge changes I0f997d30,I288ba1f4 am: 53f8591789
am: bc3c6b1314

Change-Id: Icb2c5b89895976263cd713651778061d348ba368
2018-09-30 20:00:51 -07:00
Remi NGUYEN VAN
bc3c6b1314 Merge changes I0f997d30,I288ba1f4
am: 53f8591789

Change-Id: I8309074ba0744dee5789a2fe1f3b7e20bb3bc5b9
2018-09-30 19:53:29 -07:00
Lucas Dupin
493cb6d5cb Merge "Renaming gesture" 2018-09-28 22:00:56 +00:00
Makoto Onuki
87d260a3a3 Allow default SMS app to be always running
Bug: 109809543
Test: atest CtsAppBindingHostTestCases
Test: atest services/tests/servicestests/src/com/android/server/am/PersistentConnectionTest.java
Change-Id: Ic016f2c073d178db4aa36268628ebf3880acb3c3
2018-09-28 14:48:53 -07:00
Julia Reynolds
efdd7bc91a Merge "DO NOT MERGE Add notification settings to backup&restore" into pi-dev
am: 1f3c8278e8

Change-Id: I505fb77cea4e861acea138c8661d535b752afae9
2018-09-28 10:00:21 -07:00
Lucas Dupin
13b0cb9890 Renaming gesture
Bug: 111414690
Test: make
Change-Id: I9d2a6507a942c56fe5b626d8dce46321ff70014b
2018-09-28 09:27:46 -07:00
Cody Northrop
73c050422f Create ANGLE namespace in GraphicsEnvironment
This commit does the following:

* Create a new Android Setting for use during development,
  "angle_enabled_app", which can be used to load ANGLE
  only for specified applications.

  Usage:
    adb shell settings put global angle_enabled_app <package-name>

* When the package name condition is met, build a namespace
  that points to the ANGLE APK.  The namespace will be used
  by the EGL Loader to find ANGLE libs.

* The APK may be the pre-installed version in /system/app/ANGLE,
  or it may be an updated version from the Play Store, which will
  reside somewhere under /data/app/*.

Test: Manual

Change-Id: Ia0475cf80cf5c2589e52fdb3c8f3672696357923
2018-09-28 08:24:12 -06:00
Remi NGUYEN VAN
e0d8c0e09e Enable new DHCP server by default
Regression tests pass with aosp/764042.

Test: regression automated tests, manual (verified WiFi, bluetooth
      tethering working).
Bug: b/109584964

Change-Id: I0f997d302a1d85930b24139af76e9b9c9a1b5f78
2018-09-28 12:43:47 +09:00
Julia Reynolds
95bd7221f6 DO NOT MERGE Add notification settings to backup&restore
Change-Id: I421c7487955ee339f88e3957c973375d0f87e2ff
Fixes: 35655737
Test: presubmit unit tests
2018-09-27 13:54:15 +00:00
Ivan Chiang
9f5a059039 Add isRootsUri method to check whether the roots uri is valid
Base on the buildRootsUri method to provide isRootsUri to check
whether the uri is valid.

Change-Id: I626de4a67670d165436ae51154fc7fec3c9b424b
Fix: 116180469
Test: atest ActionHandlerTest
2018-09-27 11:32:54 +08:00
Kevin Chyn
d79e24e90a Add/update plumbing for generateChallenge
Also added check in BiometricService for user preference (enable/disable
face auth for apps). If disabled, BiometricPrompt returns
ERROR_HW_UNAVAILABLE.

Bug: 111548037
Bug: 111461540

Test: BiometricPromptDemo works

Change-Id: I94ef7fca693af9d5501f87035efbde47a47a0642
2018-09-26 11:43:05 -07:00
Makoto Onuki
dd5e4bac40 Merge "Truncate(*1) it if WAL file is too big when opening DB" into pi-dev
am: 0f88f865bd

Change-Id: Ie14cea16f9cf89793a499a1b7c491ebc2f8a8829
2018-09-25 08:27:48 -07:00
Makoto Onuki
0939c5a2b3 Truncate(*1) it if WAL file is too big when opening DB
*1 -- not truncate(2) but "PRAGMA wal_checkpoint(TRUNCATE)"

Otherwise, depending on how an app operate on a DB, SQLite may not
have a chance to "shrink" the WAL file.

Fixes: 112777941
Bug: 111939259
Test: atest /android/master/frameworks/base/core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java
Test: Manual test with google dailer:
1. With normalized_spam.db-wal > 100MB and receive a phone call
-> WAL file gets truncated to 0 bytes.

2. Restart the dialer process and receive a phone call again
-> WAL file is already 0 bytes; won't be truncated.

3. Restart with the WAL file deleted
Same as #2. WAL file will be created before the added logic, but is 0 bytes,
so it won't be truncated.

4. Test with settings put global sqlite_compatibility_wal_flags truncate_size=1024
-> make sure the threshold is overridden

Merged-in: I2b193603e5dfa493ccccb8123db592f0e9c0e7ae
Change-Id: I2b193603e5dfa493ccccb8123db592f0e9c0e7ae
(cherry picked from commit 96e06002ed)
2018-09-24 22:47:02 +00:00
Hui Yu
ff88b14e62 Add RawContacts insert/update/delete notification URIs.
Change-Id: I985377b23c1f54f3b691b4ca9094cd55a056201d
Fix: 113696451
Test: atest ContactsContract_RawContactsTest.java
2018-09-20 15:16:14 -07:00
nobuhiko saitou
c39d08dd9c Fix the bug that secondary storage path is judged as internal
modifications to get right content uri.

Test: build

Change-Id: Ib441159387e512b85da6ffd47560efba8f20424e
2018-09-20 16:05:47 +09:00
Toshikazu Saito
fa733a62a9 Revert "MediaStore.Audio.Media.getContentUriForPath() returns unexpected content"
This reverts commit 66eb589957.
This is reverted because SECONDARY_STORAGE is no longer used.

Test: build since this just removes unused part.
Bug: 79123178

Change-Id: I1748e8e1ac49bf5709908d85e3c0d26b43608500
2018-09-20 15:02:43 +09:00
yuanjiahsu
8eb9d4711b resolve merge conflicts of 2cb9a70cac to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic1db72d57f3003bcec0fd8f7fbb2dc4ec7b5dcf3
2018-09-17 23:46:14 +08:00
Yuanjia Hsu
2cb9a70cac Merge "Add feature flag in Settings." am: 55b91f6d93
am: b04fcd5842

Change-Id: I22e073bcbe7c2bacfdce44dd4c05b47fab3059f1
2018-09-17 07:25:33 -07:00
Yuanjia Hsu
b04fcd5842 Merge "Add feature flag in Settings."
am: 55b91f6d93

Change-Id: I27aa24563358fe4467de3aa3660825f1d8bd73d5
2018-09-17 07:09:28 -07:00
Ben Lin
b3d533cccd Merge "Rename intent to start a package's Open By Default page directly." 2018-09-15 01:25:02 +00:00
Jeff Sharkey
34e3e68375 Merge "Mark deprecated APIs, support column greylisting." 2018-09-14 18:38:15 +00:00
Jeff Sharkey
7049e651fa Mark deprecated APIs, support column greylisting.
Update MediaStore APIs that are effectively no-ops, including
MiniThumbFile which is no longer used.

Add support for "greylisted" columns to SQLiteQueryBuilder, so that
we can support abusive columns that match specific regex patterns
while in "strict" mode, such as COUNT(*).

Bug: 111268862
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I364ef5bfa338ef8492b0b29c2a5c13c4189467ee
2018-09-13 17:14:27 -06:00
Ben Lin
21da7f57cf Rename intent to start a package's Open By Default page directly.
The intent and permission were both over-verbose. Renamed them to be
more succint.

Bug: 74763823
Test: Manually check; sending an Intent with package:// scheme works, if
originated from app of same cert.

Change-Id: I789b07d4a7c0714c021b94aced39c8e4476c8ed0
2018-09-13 15:28:50 -07:00
kopriva
eac0905c11 docs: fixed instances of typo in 'overridden' am: debd4ee72d
am: 9b641cbc71

Change-Id: I071643e73656a2a17a3c0ab89ffacda9c1bfec80
2018-09-13 15:11:27 -07:00
kopriva
9b641cbc71 docs: fixed instances of typo in 'overridden'
am: debd4ee72d

Change-Id: Idde6240486463dee51cdc27b8cd066a80fb869e0
2018-09-13 14:57:25 -07:00
kopriva
debd4ee72d docs: fixed instances of typo in 'overridden'
This affects several files beyond those mentioned in the bug.

I didn't fix some instances because the files had code
problems that blocked presubmit checks.

Test: make ds-docs

Bug: 37094741

Change-Id: I642f0384fef2b267ebc970bae1b4fb90bae667e7
Exempt-From-Owner-Approval: Docs-only change
2018-09-13 11:40:59 -07:00
Rhed Jao
f78014e7be Merge "Adding a11y ui minimum timeout api." 2018-09-13 01:44:13 +00:00
Rhed Jao
e972881f59 Adding a11y ui minimum timeout api.
Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I706d05f9b4a9e2daec06243493989b442be107db
2018-09-12 09:56:58 +08:00
yuanjiahsu
88363e9b2f Add feature flag in Settings.
User can enable/disable faster emergency phone call feature by switching
this flag from Settings, and the old flag switched by adb command was
replaced by this feature flag.

Test: Manually
Bug: 113539598
Change-Id: Ie38f4657bfd76d8386ce2a075f4ec5d0038f5c3d
2018-09-11 15:04:51 +08:00
Marcin Oczeretko
3680ae6276 Add a flag to enable/disable LooperStats collection
Test: Manually tested

Change-Id: I9cd4c819297ea34ab59c3cf9cfd11136987acc22
2018-09-06 10:54:35 +01:00
TreeHugger Robot
ec3471c182 Merge "Wake-screen gesture implementation" 2018-09-06 07:23:23 +00:00
Lucas Dupin
323f9ffcb4 Wake-screen gesture implementation
Bug: 111414690
Test: adb shell dumpsys activity service com.android.systemui
Test: manual with alternative sensor event
Change-Id: Ib38085388c0e9ebce9eb59712cdfde5f8d7ccc8c
2018-09-05 15:24:23 -07:00
Ying Zheng
98bb3f5c37 Merge "MASTER - Add signal for last active user in global settings." 2018-09-05 18:38:29 +00:00
Ying Zheng
d067cd25ee MASTER - Add signal for last active user in global settings.
Bug: 112759705
Test: build
Change-Id: Ib68b3c643f86ef1d4b441dc3e6d535cf5e7430ae
2018-09-04 10:15:34 -07:00