OSDN Git Service

android-x86/frameworks-base.git
5 years agoAdd fields for PhoneAccount to CallerInfo
Hall Liu [Wed, 21 Nov 2018 22:40:19 +0000 (14:40 -0800)]
Add fields for PhoneAccount to CallerInfo

Add fields to specify which outgoing phone account is stored in the
contacts db within the CallerInfo object.

Bug: 111455117
Test: manual, unit
Change-Id: Id402102e4605f6b414188a3eaf6442cf4282fcab

5 years agoMerge changes from topic "acct-suggestion-1"
Hall Liu [Tue, 11 Dec 2018 02:43:16 +0000 (02:43 +0000)]
Merge changes from topic "acct-suggestion-1"

* changes:
  Add docs and more annotations
  Add PhoneAccountSuggestion class

5 years agoAdd docs and more annotations
Hall Liu [Thu, 22 Nov 2018 01:05:58 +0000 (17:05 -0800)]
Add docs and more annotations

Add docs to some constants in PhoneAccountSuggestion and add @TestApi
annotations to enable CTS testing for the new APIs.

Test: compiles
Bug: 111455117

Change-Id: I2b55a411ff4f0da37eefa0996f7316ea53bca41d

5 years agoMerge "Modify constructor of NetworkRegistrationState"
Pengquan Meng [Tue, 11 Dec 2018 02:26:19 +0000 (02:26 +0000)]
Merge "Modify constructor of NetworkRegistrationState"

5 years agoMerge "Return "" not "null""
Jordan Liu [Tue, 11 Dec 2018 01:12:38 +0000 (01:12 +0000)]
Merge "Return "" not "null""

5 years agoMerge "Fix to set physical address for IsConnectedToArcPort"
Treehugger Robot [Tue, 11 Dec 2018 01:01:20 +0000 (01:01 +0000)]
Merge "Fix to set physical address for IsConnectedToArcPort"

5 years agoMerge "Deactivate bundled opportunistic subscription."
Xiangyu/Malcolm Chen [Tue, 11 Dec 2018 00:42:34 +0000 (00:42 +0000)]
Merge "Deactivate bundled opportunistic subscription."

5 years agoModify constructor of NetworkRegistrationState
Pengquan Meng [Tue, 4 Dec 2018 01:45:14 +0000 (17:45 -0800)]
Modify constructor of NetworkRegistrationState

This change the data specific constructor of NetworkRegistrationState to
make it adapt to the new NR indicators.

Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: I4e1f30ea8531a6a424c2c920c74257d4d673589d
Change-Id: I4e1f30ea8531a6a424c2c920c74257d4d673589d

5 years agoMerge "Use getCompressedSizeLong to get correct size for 2G file"
Treehugger Robot [Mon, 10 Dec 2018 22:47:00 +0000 (22:47 +0000)]
Merge "Use getCompressedSizeLong to get correct size for 2G file"

5 years agoDeactivate bundled opportunistic subscription.
Malcolm Chen [Thu, 29 Nov 2018 19:48:14 +0000 (11:48 -0800)]
Deactivate bundled opportunistic subscription.

When primary subscription is disabled, also deactivate
its bundled opportunistic subscription.

Bug: 118349116
Test: unittest
Change-Id: I04cb89b8cc2d03836878866d2975af186de42468
Merged-In: I04cb89b8cc2d03836878866d2975af186de42468

5 years agoMerge "Add 5G rat type"
Pengquan Meng [Mon, 10 Dec 2018 22:00:35 +0000 (22:00 +0000)]
Merge "Add 5G rat type"

5 years agoMerge "Add new key for carrier configuration version"
Jordan Liu [Mon, 10 Dec 2018 20:23:09 +0000 (20:23 +0000)]
Merge "Add new key for carrier configuration version"

5 years agoMerge "hiddenapi-mappings: Hide ReferencesHidden errors"
Treehugger Robot [Mon, 10 Dec 2018 17:02:25 +0000 (17:02 +0000)]
Merge "hiddenapi-mappings: Hide ReferencesHidden errors"

5 years agoMerge "Expose Uri toSafeString api"
Ivan Chiang [Mon, 10 Dec 2018 14:32:36 +0000 (14:32 +0000)]
Merge "Expose Uri toSafeString api"

5 years agoMerge "Refactoring of deleting stats in NetworkStats based on uids."
Junyu Lai [Mon, 10 Dec 2018 05:15:28 +0000 (05:15 +0000)]
Merge "Refactoring of deleting stats in NetworkStats based on uids."

5 years agoMerge "Migrate INetd to stable aidl"
Luke Huang [Mon, 10 Dec 2018 03:07:08 +0000 (03:07 +0000)]
Merge "Migrate INetd to stable aidl"

5 years agoMerge "Remove ScopedBytes use"
Treehugger Robot [Sun, 9 Dec 2018 19:36:28 +0000 (19:36 +0000)]
Merge "Remove ScopedBytes use"

5 years agoMerge "Increase the IpClientTest timeouts to reduce flake rate."
Treehugger Robot [Sun, 9 Dec 2018 04:23:19 +0000 (04:23 +0000)]
Merge "Increase the IpClientTest timeouts to reduce flake rate."

5 years agoMerge "[CS] Add a generic transport-specific information API"
Etan Cohen [Sun, 9 Dec 2018 03:53:44 +0000 (03:53 +0000)]
Merge "[CS] Add a generic transport-specific information API"

5 years agoMerge "Frame EmergencyNumber notifier in TelephonyRegistry"
Shuo Qian [Sat, 8 Dec 2018 05:11:22 +0000 (05:11 +0000)]
Merge "Frame EmergencyNumber notifier in TelephonyRegistry"

5 years agoExpose Uri toSafeString api
Tony Huang [Thu, 8 Nov 2018 08:56:08 +0000 (16:56 +0800)]
Expose Uri toSafeString api

Expose toSafeString api as public and stand api.

Bug: 119153962
Test: atest UriTest
Change-Id: Id9da309193c1e175e5fc795570687735c7722689

5 years agoReturn "" not "null"
Seongho Kim [Fri, 16 Nov 2018 04:44:48 +0000 (13:44 +0900)]
Return "" not "null"

Some models such as LDU, WIFI do not have "gsm.version.baseband",
which should return "null" when it is called.
However it returns "" not "null"

Bug: 120685535
Test: Self-Test
Change-Id: Idc1363d45a0ece3a35f46da287e21015ac1387af

5 years agoFrame EmergencyNumber notifier in TelephonyRegistry
sqian [Sat, 8 Dec 2018 01:09:39 +0000 (17:09 -0800)]
Frame EmergencyNumber notifier in TelephonyRegistry

Test: Treehugger
Bug: 112657134
Change-Id: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
Merged-In: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
(cherry picked from commit bdc5a733b76d25dab0393a3d4bfa823dc53121e7)

5 years agohiddenapi-mappings: Hide ReferencesHidden errors
Adrian Roos [Fri, 7 Dec 2018 12:53:40 +0000 (13:53 +0100)]
hiddenapi-mappings: Hide ReferencesHidden errors

The hidden API mapping is generated from sources that are not
API and the ReferencesHidden rule is therefore not needed.

Bug: 119556446
Test: mm hiddenapi-mappings
Change-Id: Ifc9efdaadeb0e61d2643230a36df930b21c0ecf4

5 years agoAdd 5G rat type
Pengquan Meng [Wed, 28 Nov 2018 03:32:39 +0000 (19:32 -0800)]
Add 5G rat type

This add a new rat type for 5G.

Bug: 111453000
Test: build
Merged-In: I57366a1a9f61278cf752c25d54a1af1830bf4575
Change-Id: I57366a1a9f61278cf752c25d54a1af1830bf4575

5 years agoMerge "Cleaned up dead code"
Jack Yu [Fri, 7 Dec 2018 21:36:48 +0000 (21:36 +0000)]
Merge "Cleaned up dead code"

5 years agoAdd new key for carrier configuration version
Michele Berionne [Wed, 5 Dec 2018 19:05:33 +0000 (11:05 -0800)]
Add new key for carrier configuration version

Add new key to retrieve the carrier configuration version, so that it
can be displayed to the user.

Bug: 116527591
Test: Verified compilation.
Change-Id: I43a07faa41a925d8928d9c1fa59b9a01d08eb815

5 years agoCleaned up dead code
Jack Yu [Tue, 4 Dec 2018 19:29:46 +0000 (11:29 -0800)]
Cleaned up dead code

Cleaned up dead code for CleanupDataConnection and
CleanupAllDataConnections. Also renamed the internal
version.

There is no logic change in this change.

Test: Unit tests and telephony sanity tests
Bug: 73659459
Merged-In: I3c9ed9502960c3f743f41078089cfff611cd96b0
Change-Id: I3c9ed9502960c3f743f41078089cfff611cd96b0
(cherry picked from commit 746d10446c77218b430e31ae0fcc0d0925bd45fc)

5 years ago[CS] Add a generic transport-specific information API
Etan Cohen [Tue, 27 Nov 2018 15:32:39 +0000 (07:32 -0800)]
[CS] Add a generic transport-specific information API

Add a generic transport-specific information container interface and
access methods. These can be used by a network factory to pass transport
(bearer)-specific network parameters to the app.

Bug: 117605977
Test: atest frameworks/base/tests/net/java/android/net (+new unit tests)
Change-Id: Ib7c83b677e1c02a2212265719813e648b0c9cc1b

5 years agoMerge "UnsupportedAppUsage - support implicit member signatures"
Paul Duffin [Fri, 7 Dec 2018 12:24:47 +0000 (12:24 +0000)]
Merge "UnsupportedAppUsage - support implicit member signatures"

5 years agoMerge "Revert "Schematize vold system properties""
Anthony Stange [Fri, 7 Dec 2018 12:04:56 +0000 (12:04 +0000)]
Merge "Revert "Schematize vold system properties""

5 years agoRevert "Schematize vold system properties"
Anthony Stange [Fri, 7 Dec 2018 11:43:03 +0000 (11:43 +0000)]
Revert "Schematize vold system properties"

This reverts commit 7bc31dc162dd6c97eeb4d85058a079a74bd8777b.

Reason for revert: Breaking aosp_master build.

Change-Id: I34a5e9889c17e3454a0a86deabcec3c192a3da52

5 years agoMerge "FRP: save password quality in DPM.resetPassword"
Treehugger Robot [Fri, 7 Dec 2018 11:09:41 +0000 (11:09 +0000)]
Merge "FRP: save password quality in DPM.resetPassword"

5 years agoMigrate INetd to stable aidl
Luke Huang [Fri, 23 Nov 2018 09:19:22 +0000 (17:19 +0800)]
Migrate INetd to stable aidl

Del the linking of old lib file and add new one.

Test: runtest frameworks-net passes
Change-Id: I7258f7c51718ff5f07e7bfe301b6c5f242b9da5a

5 years agoUnsupportedAppUsage - support implicit member signatures
Paul Duffin [Fri, 7 Dec 2018 10:40:38 +0000 (10:40 +0000)]
UnsupportedAppUsage - support implicit member signatures

Allows the signature of implicit members, i.e. members that are added
by the compiler, e.g. enum values() and valueOf(String) methods or
default constructors to be specified per class. The UnsupportedAppUsage
can now be repeated on a class so as to specify multiple implicit
members.

Bug: 119861512
Test: atest class2greylisttest, m -j20 framework
Change-Id: I73c8402e9c2053e3a04ef0ff8875ce446593ec8f

5 years agoMerge "Move netd related file group to the end for avoiding conflict"
Treehugger Robot [Fri, 7 Dec 2018 10:30:51 +0000 (10:30 +0000)]
Merge "Move netd related file group to the end for avoiding conflict"

5 years agoIncrease the IpClientTest timeouts to reduce flake rate.
Lorenzo Colitti [Fri, 7 Dec 2018 09:59:38 +0000 (18:59 +0900)]
Increase the IpClientTest timeouts to reduce flake rate.

Fix: 120131319
Test: atest FrameworksNetTests
Change-Id: Ibb70fa74c71608fd76e85636607e860dd58c404a

5 years agoMerge "Move DexLoadReporter setup before AppComponentFactory calls"
David Brazdil [Fri, 7 Dec 2018 09:04:56 +0000 (09:04 +0000)]
Merge "Move DexLoadReporter setup before AppComponentFactory calls"

5 years agoMove netd related file group to the end for avoiding conflict
Luke Huang [Fri, 7 Dec 2018 03:53:59 +0000 (11:53 +0800)]
Move netd related file group to the end for avoiding conflict

This patch should change no functionality.

Test: builded pass
Change-Id: I8161a9a365c6bfcd92f4b7a8fd641ad3a483d09c
Merged-In: If3e387ae9fcc22da7a4feca30c20391e5b236728

5 years agoAdd PhoneAccountSuggestion class
Hall Liu [Tue, 20 Nov 2018 23:32:33 +0000 (15:32 -0800)]
Add PhoneAccountSuggestion class

Add parcelable data class for the phone acct suggestion feature.

Test: TBD
Bug: 111455117
Change-Id: I6d5368133abfc076ccb2e6ddfff70de8b6a56e8f

5 years agoMerge "Schematize vold system properties"
Treehugger Robot [Fri, 7 Dec 2018 01:46:45 +0000 (01:46 +0000)]
Merge "Schematize vold system properties"

5 years agoMerge "Change owners of incidentd"
Mike Ma [Fri, 7 Dec 2018 01:28:40 +0000 (01:28 +0000)]
Merge "Change owners of incidentd"

5 years agoMerge "Add support for UHID_GET_REPORT requests"
Treehugger Robot [Thu, 6 Dec 2018 22:02:10 +0000 (22:02 +0000)]
Merge "Add support for UHID_GET_REPORT requests"

5 years agoMerge "address API council feedbacks for Telephony.Carriers"
Chen Xu [Thu, 6 Dec 2018 21:45:47 +0000 (21:45 +0000)]
Merge "address API council feedbacks for Telephony.Carriers"

5 years agoChange owners of incidentd
Mike Ma [Thu, 6 Dec 2018 21:40:24 +0000 (13:40 -0800)]
Change owners of incidentd

Test: NA
Change-Id: Ic651a13bb145610de2b668b6b235228e1e5151c1

5 years agoMerge "Fix validation problem in PhoneNumberRange"
Hall Liu [Thu, 6 Dec 2018 21:05:57 +0000 (21:05 +0000)]
Merge "Fix validation problem in PhoneNumberRange"

5 years agoMerge "Call netd to update the tcp buffer size"
Treehugger Robot [Thu, 6 Dec 2018 19:01:24 +0000 (19:01 +0000)]
Merge "Call netd to update the tcp buffer size"

5 years agoFRP: save password quality in DPM.resetPassword
Adrian Roos [Thu, 6 Dec 2018 16:50:41 +0000 (17:50 +0100)]
FRP: save password quality in DPM.resetPassword

When setting a password from DPM.resetPassword(), the actual quality of the
password was not passed to LockSettingsService (instead, the minimum required
quality was passed which is often UNSPECIFIED). As a result, during FRP we
would see inconsistent state and skip it.

Bug: 110172241
Test: Set credential via DPM.resetPassword(), factory reset device to trigger FRP, verify FRP shows.
Change-Id: I54376f60ac53451ace22965d331b47cd8c2e614e

5 years agoAdd support for UHID_GET_REPORT requests
Kim Low [Sat, 10 Nov 2018 01:15:13 +0000 (17:15 -0800)]
Add support for UHID_GET_REPORT requests

Updated to support UHID_GET_REPORT requests mainly for CTS use.
All feature reports are assumed to be static and should be specified
along with the register json.

For example, in sony_dualshock4_register.json, add the following.
  "feature_reports": [
    {
      "id": 5,
      "data": [0x05, 0x1e, 0x00, 0x05, 0x00, 0xe2, 0xff, 0xf2, 0x22, 0xbe, 0x22, 0x8d, 0x22, 0x4f,
        0xdd, 0x4d, 0xdd, 0x39, 0xdd, 0x1c, 0x02, 0x1c, 0x02, 0xe3, 0x1f, 0x8b, 0xdf, 0x8c, 0x1e,
        0xb4, 0xde, 0x30, 0x20, 0x71, 0xe0, 0x10, 0x00, 0xca, 0xfc, 0x64, 0x4d]
    }
  ]

Test: Make sure build has hid-sony driver that's backported from >4.10.
    Run Dualshock4 CTS
        > atest cts/tests/tests/hardware/src/android/hardware/input/cts/tests/SonyDualshock4TestCase.java

Change-Id: Ib0d534d47c6aa6fcc11af68b913c3db1cfa72752

5 years agoMerge "Track debug key changes in libcore/"
Neil Fuller [Thu, 6 Dec 2018 12:42:43 +0000 (12:42 +0000)]
Merge "Track debug key changes in libcore/"

5 years agoMerge "Rename hiddenapi config files"
David Brazdil [Thu, 6 Dec 2018 10:11:09 +0000 (10:11 +0000)]
Merge "Rename hiddenapi config files"

5 years agoRefactoring of deleting stats in NetworkStats based on uids.
junyulai [Mon, 29 Oct 2018 14:26:22 +0000 (22:26 +0800)]
Refactoring of deleting stats in NetworkStats based on uids.

In follow-up commits, current API would create new NetworkStats
every time when 464xlatAdjustment wants to filtered out some
uids.

This commit refactors it to delete stats in-place to get better
performance.

Bug: 118602783
Test: atest FrameworksNetTests
Change-Id: I858f95d1fa7733111786243b4e261ce8a70a068d

5 years agoMerge "Catch egl errors when drawIntoSurfaces"
Treehugger Robot [Thu, 6 Dec 2018 07:52:46 +0000 (07:52 +0000)]
Merge "Catch egl errors when drawIntoSurfaces"

5 years agoMerge "Move EnableDebuggger from ART to zygote"
Treehugger Robot [Thu, 6 Dec 2018 07:06:25 +0000 (07:06 +0000)]
Merge "Move EnableDebuggger from ART to zygote"

5 years agoFix validation problem in PhoneNumberRange
Hall Liu [Wed, 5 Dec 2018 21:57:42 +0000 (13:57 -0800)]
Fix validation problem in PhoneNumberRange

Regexes weren't matching empty strings (which are perfectly valid) for
the various arguments in the ranges. Fix it so that they do match.

Bug: 119675160
Test: GTS
Change-Id: I4ea0f65b62af9fd35612e5261e01b2bea07c8ddc

5 years agoMerge "UpdateAvailableNetworks apis"
Treehugger Robot [Wed, 5 Dec 2018 19:16:39 +0000 (19:16 +0000)]
Merge "UpdateAvailableNetworks apis"

5 years agoMerge "Add AIDL for number verification request API"
Hall Liu [Wed, 5 Dec 2018 18:29:47 +0000 (18:29 +0000)]
Merge "Add AIDL for number verification request API"

5 years agoMerge "support per carrier based iso country code."
Chen Xu [Wed, 5 Dec 2018 18:03:08 +0000 (18:03 +0000)]
Merge "support per carrier based iso country code."

5 years agoRename hiddenapi config files
David Brazdil [Tue, 13 Nov 2018 16:48:23 +0000 (16:48 +0000)]
Rename hiddenapi config files

Rename files to reflect new API list naming convention:
  light-greylist => greylist
  max-sdk-p-blacklist => greylist-max-p

This also removes unused files (private-dex.txt, public-dex.txt,
removed-dex.txt) and merges vendor.txt into greylist.txt.

Test: m appcompat
Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Merged-In: I4922ecb011a03bef3fa105f8181d1851d2cc496a
Change-Id: I4922ecb011a03bef3fa105f8181d1851d2cc496a

5 years agoMerge "Hide eject icon of removable media when it's emulated volume"
Jeff Sharkey [Wed, 5 Dec 2018 16:19:05 +0000 (16:19 +0000)]
Merge "Hide eject icon of removable media when it's emulated volume"

5 years agoMove EnableDebuggger from ART to zygote
Orion Hodson [Wed, 5 Dec 2018 12:28:53 +0000 (12:28 +0000)]
Move EnableDebuggger from ART to zygote

Bug: 120485385
Test: cts
Change-Id: I17dc7048b3b1c4acb0b5816c45b52f9523a480ca

5 years agoMerge "Support multiple DcTracker for IWLAN refactoring"
Jack Yu [Wed, 5 Dec 2018 08:20:22 +0000 (08:20 +0000)]
Merge "Support multiple DcTracker for IWLAN refactoring"

5 years agoMerge "Use ParcelFileDescriptor instead of FileDescriptor in INetd.aidl"
Luke Huang [Wed, 5 Dec 2018 05:55:49 +0000 (05:55 +0000)]
Merge "Use ParcelFileDescriptor instead of FileDescriptor in INetd.aidl"

5 years agosupport per carrier based iso country code.
chen xu [Sun, 2 Dec 2018 22:14:15 +0000 (14:14 -0800)]
support per carrier based iso country code.

1. apply carrierid-to-countrycode as an override table on
top of mcc-to-countrycode table which is coarse and inaccurate
especailly for dual ISMI SIM
2. persist country iso to simInfo db and notify change through
public API onSubscriptionChangedListener

Bug: 64775297
Bug: 110559381
Test: Build
Change-Id: I3ec2d90d9ce8dfba1418358de62eb4d099234757

5 years agoAdd AIDL for number verification request API
Hall Liu [Fri, 30 Nov 2018 22:48:50 +0000 (14:48 -0800)]
Add AIDL for number verification request API

Add the new method to ITelephony and call it in the
requestNumberVerification API.

Bug: 119675160
Test: GTS later + testapps
Change-Id: I89baba023cdae746bc4afd96432f8348114d47cf

5 years agoSupport multiple DcTracker for IWLAN refactoring
Jack Yu [Mon, 26 Nov 2018 19:20:26 +0000 (11:20 -0800)]
Support multiple DcTracker for IWLAN refactoring

If the device is configured as AP-assited mode, multiple
DcTrackers will be created for each corresponding
data service. For legacy mode, only one DcTracker will
be created.

Test: Unit tests and telephony sanity tests
Bug: 73659459

Merged-In: I9f6afd65093dd1c65841466c6ff063717bb5bdaa
Change-Id: I9f6afd65093dd1c65841466c6ff063717bb5bdaa
(cherry picked from commit 21096187156c0b2e40d1e943cb250fbdca9de022)

5 years agoSchematize vold system properties
Inseob Kim [Thu, 8 Nov 2018 04:13:54 +0000 (13:13 +0900)]
Schematize vold system properties

Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: m -j
Change-Id: I8e04f643197b6c8a60cc38c6979e41c5de3469f5
Merged-In: I8e04f643197b6c8a60cc38c6979e41c5de3469f5

5 years agoMerge "add nazaninb to OWNERS files"
Treehugger Robot [Wed, 5 Dec 2018 00:02:13 +0000 (00:02 +0000)]
Merge "add nazaninb to OWNERS files"

5 years agoUpdateAvailableNetworks apis
Sooraj Sasindran [Tue, 30 Oct 2018 16:42:53 +0000 (09:42 -0700)]
UpdateAvailableNetworks apis

Provide API to inform available networks

Bug: 117982838
Test: make and unit test
Merged-In: I9de1f767560551914de80031c1675d7e03b09775
Change-Id: I9de1f767560551914de80031c1675d7e03b09775

5 years agoTrack debug key changes in libcore/
Neil Fuller [Tue, 4 Dec 2018 21:17:29 +0000 (21:17 +0000)]
Track debug key changes in libcore/

Add ".source" to the debug key for the time zone update
via APK data:

i.e.
core_library.timezone>.source<.data_status

Bug: 118242715
Test: adb shell dumpsys runtime
Change-Id: I0f19faeef08ed19fe5482727280a17b49d8f923b

5 years agoMerge "Add API scaffolding for number verification"
Hall Liu [Tue, 4 Dec 2018 17:58:28 +0000 (17:58 +0000)]
Merge "Add API scaffolding for number verification"

5 years agoadd nazaninb to OWNERS files
Nazanin Bakhshi [Tue, 4 Dec 2018 17:37:59 +0000 (09:37 -0800)]
add nazaninb to OWNERS files

Bug: 120484065
Test: notest
Change-Id: I5821ee81148b611520e1a56d2ce187b4d18d5d01

5 years agoMerge "Add OWNERS for upcoming MediaStore work."
Jeff Sharkey [Tue, 4 Dec 2018 16:44:00 +0000 (16:44 +0000)]
Merge "Add OWNERS for upcoming MediaStore work."

5 years agoAdd OWNERS for upcoming MediaStore work.
Jeff Sharkey [Tue, 4 Dec 2018 16:09:40 +0000 (09:09 -0700)]
Add OWNERS for upcoming MediaStore work.

Also match contents of internal branch and alphabetize.

Bug: 113356944
Test: manual
Merged-In: I98245fe411295b6112cdc73a13baf2ac70edeb9d
Merged-In: I369767557ae023c0a7cdaf7cde46ad65c11bb6de
Change-Id: Ie48f2f70973e468d95fbbfa9fb56449dfa910b66

5 years agoMerge "Make ANDROID_RUNTIME_ROOT a required env variable"
Neil Fuller [Tue, 4 Dec 2018 12:39:16 +0000 (12:39 +0000)]
Merge "Make ANDROID_RUNTIME_ROOT a required env variable"

5 years agoMerge changes from topic "apex_adb"
Treehugger Robot [Tue, 4 Dec 2018 12:29:06 +0000 (12:29 +0000)]
Merge changes from topic "apex_adb"

* changes:
  Add MATCH_APEX flag to getInstalledPackages.
  Rename APEX installPackage method to stagePackage.
  Initial support for installing APEX via adb.

5 years agoMerge "hiddenapi: Add constants for 'greylist-max-p'"
David Brazdil [Tue, 4 Dec 2018 10:07:59 +0000 (10:07 +0000)]
Merge "hiddenapi: Add constants for 'greylist-max-p'"

5 years agoMerge "Add a service for reporting runtime debug info"
Neil Fuller [Tue, 4 Dec 2018 08:10:34 +0000 (08:10 +0000)]
Merge "Add a service for reporting runtime debug info"

5 years agoMerge "Fix ExifInterface for .heic when meta is at the end"
Treehugger Robot [Tue, 4 Dec 2018 02:51:07 +0000 (02:51 +0000)]
Merge "Fix ExifInterface for .heic when meta is at the end"

5 years agoMerge "C++17 is the default now."
Treehugger Robot [Tue, 4 Dec 2018 01:14:30 +0000 (01:14 +0000)]
Merge "C++17 is the default now."

5 years agoMerge "Add telecom test-commands for maintaining role overrides."
Tyler Gunn [Tue, 4 Dec 2018 01:01:48 +0000 (01:01 +0000)]
Merge "Add telecom test-commands for maintaining role overrides."

5 years agoMerge "Re-factor state machine in NetworkMonitor"
Chiachang Wang [Tue, 4 Dec 2018 00:57:46 +0000 (00:57 +0000)]
Merge "Re-factor state machine in NetworkMonitor"

5 years agoMerge "update comments for resetRadioConfig and rebootRadio"
Chen Xu [Mon, 3 Dec 2018 22:58:57 +0000 (22:58 +0000)]
Merge "update comments for resetRadioConfig and rebootRadio"

5 years agoAdd telecom test-commands for maintaining role overrides.
Tyler Gunn [Wed, 21 Nov 2018 23:11:36 +0000 (15:11 -0800)]
Add telecom test-commands for maintaining role overrides.

This allows for easier testing of role-dependencies for Telecom (since
RoleManager is not yet fully implemented).

Bug: 63966743
Test: Manual
Merged-In: I92fd86411d1312be2255ec0634f059cd8e4bfc26
Change-Id: I92fd86411d1312be2255ec0634f059cd8e4bfc26

5 years agoMerge "People don't read warnings."
Jeff Sharkey [Mon, 3 Dec 2018 20:20:38 +0000 (20:20 +0000)]
Merge "People don't read warnings."

5 years agoPeople don't read warnings.
Jeff Sharkey [Mon, 3 Dec 2018 17:56:56 +0000 (10:56 -0700)]
People don't read warnings.

Bug: 113136846
Test: manual
Change-Id: If7e313b4f0fa90875795b24817553bbd9a8c60ff

5 years agoC++17 is the default now.
Elliott Hughes [Mon, 3 Dec 2018 17:38:35 +0000 (09:38 -0800)]
C++17 is the default now.

Test: builds
Change-Id: I64495775afe4ded7d3312cc35a154fecba64adc3

5 years agoMerge "Display Hearing Aids name on UI tile"
Treehugger Robot [Mon, 3 Dec 2018 17:21:54 +0000 (17:21 +0000)]
Merge "Display Hearing Aids name on UI tile"

5 years agoAdd a service for reporting runtime debug info
Neil Fuller [Tue, 20 Nov 2018 19:37:22 +0000 (19:37 +0000)]
Add a service for reporting runtime debug info

Add a service for reporting runtime debug info via dumpsys.

With expected OEM customization / module versions in play
it makes sense to have runtime and associated "core library"
information in bug reports. The dumpsys information can also
be used from from host-side tests.

Bug: 119026403
Bug: 118242715
Test: adb shell dumpsys runtimeinfo
Change-Id: I62637a1c8bfd65d5de9b3e47b8700ead4bc314f2

5 years agoAdd MATCH_APEX flag to getInstalledPackages.
Dario Freni [Thu, 18 Oct 2018 10:49:50 +0000 (11:49 +0100)]
Add MATCH_APEX flag to getInstalledPackages.

If set, PackageManager will query apexservice and ask for activated
packages.

Test: wrote a small app to test the new query.
Bug: 117589375
Merged-In: I498bd97896f3eab65c88e9684874a30713be585e
Change-Id: I498bd97896f3eab65c88e9684874a30713be585e

5 years agoRename APEX installPackage method to stagePackage.
Dario Freni [Wed, 7 Nov 2018 12:17:04 +0000 (12:17 +0000)]
Rename APEX installPackage method to stagePackage.

Test: adb install apex.test.apex  (succeeds)
Bug: 112669193

Merged-In: I8dc23d9d621d6a9fd5ee983eb6edbbe5ed13ad9a
Change-Id: I8dc23d9d621d6a9fd5ee983eb6edbbe5ed13ad9a

5 years agoInitial support for installing APEX via adb.
Dario Freni [Fri, 31 Aug 2018 13:18:04 +0000 (14:18 +0100)]
Initial support for installing APEX via adb.

Test: adb install package-signed.apex (succeeds)
adb install package-unsigned.apex (fails)
Merged-In: I3ac7971ce6923511a7d574291fe9002c5d55fa1b

Change-Id: I53bd15286b62a2a4ae6c2c5746b2ed039bc6ff77

5 years agoMove DexLoadReporter setup before AppComponentFactory calls
David Brazdil [Mon, 3 Dec 2018 10:59:29 +0000 (10:59 +0000)]
Move DexLoadReporter setup before AppComponentFactory calls

BaseDexClassLoader has a callback for reporting all loaded secondary dex
files to DexManager. The callback needs to be set up:
(a) after the default app class loader is initialized, so as to not
report the app's main APK being loaded, and
(b) before control is handed over to the app for the first time, so as
to not miss any BaseDexClassLoader instantiations.

The latter used to mean setting up the callback before
Application.onCreate() but AppComponentFactory calls happen even
earlier. Hence move the call into LoadedApk where the borderline between
(a) and (b) lies.

Test: manually check dex loads from instantiateClassLoader are reported
Change-Id: I7961913de302bcede6c231304544d21d8db806a8

5 years agoRe-factor state machine in NetworkMonitor
Chiachang Wang [Mon, 3 Dec 2018 09:06:54 +0000 (17:06 +0800)]
Re-factor state machine in NetworkMonitor

In ProbingState, most events are deferred and never exited if
the probe complete message indicated that the probe timed out or
failed. It means it will need to remember to explicitly return
HANDLED or NOT_HANDLED in the ProbingState for every new
message. Thus, re-factor the design for better architecture.

Test: - atest FrameworksNetTests
      - manually test for state transition
Bug: 120014928
Change-Id: I18500b958b35383335fcdef6af4e08dbbdfdffb0

5 years agoMerge "Start using shared libraries class loader."
Nicolas Geoffray [Sun, 2 Dec 2018 20:39:38 +0000 (20:39 +0000)]
Merge "Start using shared libraries class loader."

5 years agoStart using shared libraries class loader.
Nicolas Geoffray [Thu, 15 Nov 2018 12:59:52 +0000 (12:59 +0000)]
Start using shared libraries class loader.

Change 1/2. Change 2/2 will setup the class loader namespace for
shared libraries.

This change sets up shared libraries class loaders for applications
and for dexopt.

bug: 111174995
Test: DexoptUtilsTest, device boots
Exempt-From-Owner-Approval: PS1 was approved by owner, PS2 is a build fix.

(cherry picked from commit 8d144eb8bd3487a68c3a0cf58d9744e7d9e1d78b)
Merged-In: Ie9a2b4eaa85cda59951703433f7a2d03bc12095d

Change-Id: I76383308418485ad6739f8a404d02c2771e4afe4

5 years agoMerge changes from topic "sqlitez"
Treehugger Robot [Sun, 2 Dec 2018 01:30:04 +0000 (01:30 +0000)]
Merge changes from topic "sqlitez"

* changes:
  Support for appending "standalone" WHERE chunks.
  Bind update() args as Object[] for performance.
  Extend SQLiteQueryBuilder for update and delete.
  Execute "strict" queries with extra parentheses.
  Revert SQLiteQueryBuilder for now.
  Execute "strict" queries with extra parentheses.
  Add support for appending standalone phrases.
  GROUP BY and HAVING aren't ready to be strict.
  Extend SQLiteQueryBuilder for update and delete.

5 years agoSupport for appending "standalone" WHERE chunks.
Jeff Sharkey [Thu, 26 Jul 2018 20:36:59 +0000 (14:36 -0600)]
Support for appending "standalone" WHERE chunks.

The existing appendWhere() methods aren't very friendly for
developers, since they require manual tracking of state to decide if
subsequent standalone chunks should be prefixed with "AND".

While it's tempting to offer direct argument binding on the builder
class, we can't really deliver on that API in a secure way, so instead
add separate bindSelection() method which explicitly burns arguments
into a standalone selection string, which can then be appended to
the builder.

This was the last piece of new functionality being used by
SQLiteStatementBuilder, so we can delete that class and migrate
users back to SQLiteQueryBuilder.

Bug: 111268862
Test: atest frameworks/base/core/tests/coretests/src/android/database/DatabaseUtilsTest.java
Test: atest frameworks/base/core/tests/utiltests/src/com/android/internal/util/ArrayUtilsTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Merged-In: I418f24338c90bae8a9dad473fa76329cea00a8c5
Change-Id: I418f24338c90bae8a9dad473fa76329cea00a8c5

5 years agoBind update() args as Object[] for performance.
Jeff Sharkey [Thu, 26 Jul 2018 15:39:18 +0000 (09:39 -0600)]
Bind update() args as Object[] for performance.

It's wasteful to convert them to String when SQLite already knows
how to bind specific data types, including funky types like byte[].

Also promote to public API, since they're generally useful.

Bug: 111085900
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Merged-In: I5b418bca1204773fd2795156a2f47906ca1e1a6b
Change-Id: I5b418bca1204773fd2795156a2f47906ca1e1a6b

5 years agoExtend SQLiteQueryBuilder for update and delete.
Jeff Sharkey [Wed, 25 Jul 2018 20:52:14 +0000 (14:52 -0600)]
Extend SQLiteQueryBuilder for update and delete.

Developers often accept selection clauses from untrusted code, and
SQLiteQueryBuilder already supports a "strict" mode to help catch
SQL injection attacks.  This change extends the builder to support
update() and delete() calls, so that we can help secure those
selection clauses too.

Bug: 111085900
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Merged-In: Ib4fc8400f184755ee7e971ab5f2095186341730c
Change-Id: Ib4fc8400f184755ee7e971ab5f2095186341730c