OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Update CallScreeningService API docs."
Tyler Gunn [Fri, 14 Dec 2018 15:06:53 +0000 (15:06 +0000)]
Merge "Update CallScreeningService API docs."

5 years agoMerge "Covert list<String> into String[] in INetd"
Luke Huang [Fri, 14 Dec 2018 05:57:34 +0000 (05:57 +0000)]
Merge "Covert list<String> into String[] in INetd"

5 years agoMerge "apf: Drop ARP reply if SPA is 0.0.0.0"
Aaron Huang [Fri, 14 Dec 2018 03:00:21 +0000 (03:00 +0000)]
Merge "apf: Drop ARP reply if SPA is 0.0.0.0"

5 years agoMerge "move and rename DcFailCause to DataFailCause"
Chen Xu [Fri, 14 Dec 2018 02:44:20 +0000 (02:44 +0000)]
Merge "move and rename DcFailCause to DataFailCause"

5 years agoMerge changes from topic "schematize_car_props"
Treehugger Robot [Fri, 14 Dec 2018 01:31:29 +0000 (01:31 +0000)]
Merge changes from topic "schematize_car_props"

* changes:
  Fix missing schematized Car system properties
  Schematize Car system properties

5 years agoMerge "Propagation of additional Ims Call Fail Causes"
Youming Ye [Thu, 13 Dec 2018 23:47:49 +0000 (23:47 +0000)]
Merge "Propagation of additional Ims Call Fail Causes"

5 years agomove and rename DcFailCause to DataFailCause
chen xu [Thu, 13 Dec 2018 06:17:51 +0000 (22:17 -0800)]
move and rename DcFailCause to DataFailCause

Bug: 119891533
Test: Build
Change-Id: I6f0e474a9ee3f8befc8b0a221713a2080b59844c
Merged-in: I6f0e474a9ee3f8befc8b0a221713a2080b59844c

5 years agoMerge "Move RCS APIs to android.telephony.ims"
Sahin Caliskan [Thu, 13 Dec 2018 20:48:34 +0000 (20:48 +0000)]
Merge "Move RCS APIs to android.telephony.ims"

5 years agoMerge "Add back doc-comment-check-docs back to checkbuild."
Treehugger Robot [Thu, 13 Dec 2018 19:10:07 +0000 (19:10 +0000)]
Merge "Add back doc-comment-check-docs back to checkbuild."

5 years agoMerge "No-one should need libunwind in 2018..."
Elliott Hughes [Thu, 13 Dec 2018 17:48:41 +0000 (17:48 +0000)]
Merge "No-one should need libunwind in 2018..."

5 years agoMerge "Add me to privapp-permissions owner file"
Philip P. Moltmann [Thu, 13 Dec 2018 16:53:39 +0000 (16:53 +0000)]
Merge "Add me to privapp-permissions owner file"

5 years agoMove RCS APIs to android.telephony.ims
Sahin Caliskan [Mon, 3 Dec 2018 22:06:39 +0000 (14:06 -0800)]
Move RCS APIs to android.telephony.ims

This is due to being compatible with other RCS related changes by by other engineers.
Test: Existing tests pass

Bug: 109759350
Change-Id: Id56df22e9c313c5e0700eda3b2c489d2f84ea0cd
Merged-In: Id56df22e9c313c5e0700eda3b2c489d2f84ea0cd

5 years agoMerge "Track default upstream when system is ready"
Mark Chien [Thu, 13 Dec 2018 13:28:08 +0000 (13:28 +0000)]
Merge "Track default upstream when system is ready"

5 years agoMerge "API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)"
Adrian Roos [Thu, 13 Dec 2018 13:19:25 +0000 (13:19 +0000)]
Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)"

5 years agoMerge "Pass package name as part of startDiscovery"
Treehugger Robot [Thu, 13 Dec 2018 12:42:58 +0000 (12:42 +0000)]
Merge "Pass package name as part of startDiscovery"

5 years agoTrack default upstream when system is ready
markchien [Tue, 13 Nov 2018 09:34:56 +0000 (18:34 +0900)]
Track default upstream when system is ready

Start tracking default upstream from boot.This is useful for
entitlement refine in following change. EntitlementManager can
decide if it needs to process entitlement provisioning before
tethering started.

Test: -atest FrameworksNetTests
      -build, flash, booted
      -manually turnoff/on tethering with different upstream
bug: 111490073

Change-Id: I8fdbd64c52f26b5363693bb5bd8050930e8ea961

5 years agoMerge "Fix property setting with failure"
Youming Ye [Thu, 13 Dec 2018 06:55:25 +0000 (06:55 +0000)]
Merge "Fix property setting with failure"

5 years agoMerge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
Treehugger Robot [Thu, 13 Dec 2018 05:45:20 +0000 (05:45 +0000)]
Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"

5 years agoFix missing schematized Car system properties
Inseob Kim [Wed, 21 Nov 2018 04:39:11 +0000 (13:39 +0900)]
Fix missing schematized Car system properties

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

Bug: 117924132
Test: mma -j
Change-Id: Ib698d64d93a7bf4c1d9b7d8b883009b8de65ed09

5 years agoSchematize Car system properties
Inseob Kim [Wed, 21 Nov 2018 04:39:11 +0000 (13:39 +0900)]
Schematize Car system properties

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

Bug: 117924132
Test: mma -j
Change-Id: I203861a78f48529434595c2e923c03d58b7e8299
Merged-In: I203861a78f48529434595c2e923c03d58b7e8299

5 years agoPass package name as part of startDiscovery
Zach Johnson [Thu, 13 Dec 2018 01:11:25 +0000 (17:11 -0800)]
Pass package name as part of startDiscovery

Test: manual
Bug: 118347252
Change-Id: Icbc2e7e756b16ffd181924b586a0292c2bf32ec5

5 years agoMerge "Delete unused import"
Treehugger Robot [Thu, 13 Dec 2018 03:39:11 +0000 (03:39 +0000)]
Merge "Delete unused import"

5 years agoMerge "Add an APF unit test to drop all packets in the pcap file"
Aaron Huang [Thu, 13 Dec 2018 03:05:56 +0000 (03:05 +0000)]
Merge "Add an APF unit test to drop all packets in the pcap file"

5 years agoPropagation of additional Ims Call Fail Causes
Jesse Fuentes [Mon, 17 Sep 2018 22:57:15 +0000 (15:57 -0700)]
Propagation of additional Ims Call Fail Causes

-Added new ImsReasonInfo error codes
-Add the new error codes in system-current.txt

Test:Manual
Bug:115925183

Change-Id: Id10651d08de2b77f0562e3c8733be76032a9611e

5 years agoMerge "Switch to metalava"
Treehugger Robot [Thu, 13 Dec 2018 01:46:54 +0000 (01:46 +0000)]
Merge "Switch to metalava"

5 years agoDelete unused import
Chenbo Feng [Tue, 11 Dec 2018 22:15:57 +0000 (14:15 -0800)]
Delete unused import

The hasBpfSupport() check from BpfUtils is not used by the native helper
in framework. Remove them.

Bug: 111441138
Test: Build without failure.
Change-Id: Icdd01bf1a03efd7883e4939d0d730303ec1004e7

5 years agoMerge "Add asynchronous DNS query API"
Lorenzo Colitti [Thu, 13 Dec 2018 00:43:47 +0000 (00:43 +0000)]
Merge "Add asynchronous DNS query API"

5 years agoAdd me to privapp-permissions owner file
Philip P. Moltmann [Wed, 12 Dec 2018 23:35:49 +0000 (15:35 -0800)]
Add me to privapp-permissions owner file

... and syncronize it with other privapp permission owner files.

Test: I understood that we want to keep the priv-permisions apps have to
      a minimum to reduce the risk

Change-Id: Id2763e1788b9647b738a708159dc9eb5878232bf

5 years agoMerge "Add API to get card ID for default eUICC"
Jordan Liu [Wed, 12 Dec 2018 22:20:03 +0000 (22:20 +0000)]
Merge "Add API to get card ID for default eUICC"

5 years agoNo-one should need libunwind in 2018...
Elliott Hughes [Wed, 12 Dec 2018 20:32:15 +0000 (12:32 -0800)]
No-one should need libunwind in 2018...

Test: builds
Change-Id: I40c2326e2f11532aaae6e6a489ec7b7d4a02a9d8

5 years agoMerge "Visualizer: fix native crash when visualizer release"
Andy Hung [Wed, 12 Dec 2018 21:37:04 +0000 (21:37 +0000)]
Merge "Visualizer: fix native crash when visualizer release"

5 years agoVisualizer: fix native crash when visualizer release
zengjing [Sat, 29 Sep 2018 05:19:15 +0000 (13:19 +0800)]
Visualizer: fix native crash when visualizer release

Visualizer should not be destroyed before mCaptureThread exit.

Test: CTS VisualizerTest
Change-Id: I0cda2ff2be8ce487e10b5311fbdc043fa57d91d4
Signed-off-by: zengjing <zengjing@xiaomi.com>
5 years agoMerge "Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING"
Michele Berionne [Wed, 12 Dec 2018 18:58:28 +0000 (18:58 +0000)]
Merge "Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING"

5 years agoAPI: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)
Adrian Roos [Wed, 12 Dec 2018 18:10:58 +0000 (19:10 +0100)]
API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2)

Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.

In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.

Bug: 115333477
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Change-Id: I6d370e8ffcb9e7cd2859c310c555a2a847c70ae8
Exempt-From-Owner-Approval: API cleanup

5 years agoMerge "SystemConfig: allow reading sku specific props"
Steven Moreland [Wed, 12 Dec 2018 16:19:43 +0000 (16:19 +0000)]
Merge "SystemConfig: allow reading sku specific props"

5 years agoMerge "API: Clean up redundant and ineffective usages of SystemApi and TestApi"
Treehugger Robot [Wed, 12 Dec 2018 16:09:05 +0000 (16:09 +0000)]
Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi"

5 years agoMerge "APEX list can be retrieved via the shell command."
Treehugger Robot [Wed, 12 Dec 2018 14:07:37 +0000 (14:07 +0000)]
Merge "APEX list can be retrieved via the shell command."

5 years agoAPI: Clean up redundant and ineffective usages of SystemApi and TestApi
Adrian Roos [Tue, 11 Dec 2018 18:47:33 +0000 (19:47 +0100)]
API: Clean up redundant and ineffective usages of SystemApi and TestApi

Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.

In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.

Bug: 115333477
Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Merged-In: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Exempt-From-Owner-Approval: API cleanup

5 years agoMerge "Set system property for FULL bugreport instead of default."
Treehugger Robot [Wed, 12 Dec 2018 10:22:05 +0000 (10:22 +0000)]
Merge "Set system property for FULL bugreport instead of default."

5 years agoSwitch to metalava
Sundong Ahn [Tue, 20 Nov 2018 08:47:23 +0000 (17:47 +0900)]
Switch to metalava

android.test.base and android.test.runner libraries are changed to using
metalava instead of docalava

Bug: 119625999
Test: m -j
Change-Id: I589ea59240f8b5d442931a1f1b614221d9eaf221

5 years agoSet system property for FULL bugreport instead of default.
Abhijeet Kaur [Wed, 5 Dec 2018 14:21:57 +0000 (14:21 +0000)]
Set system property for FULL bugreport instead of default.

The addition of DEFAULT mode in dumpstate service requires FULL bugreport to be distinguished from DEFAULT as the system property is empty in both the cases, but the effective arguments are different.

Test: Full bugreport is being generated as usual from the device:
      1. Settings->developer options -> Take a bug report -> Full
      report.
      2. Enable bugreport shortcut from the settings. Long press power
      button and then long press 'Take a bug report' button.
      3. Long press power, volume up and volume down buttons.

Bug: 119877616
Change-Id: I07bc279221ac9fc03967b887ee511f276f0ec040

5 years agoCovert list<String> into String[] in INetd
Luke Huang [Wed, 12 Dec 2018 07:59:31 +0000 (15:59 +0800)]
Covert list<String> into String[] in INetd

NDK AIDL doesn't support generic types, use array instead of it.

Test: atest FrameworksNetTests android.net.cts.ConnectivityManagerTest
Change-Id: I980f513786f3b3a312527f2b5cdc68d926f5f93e

5 years agoMerge changes from topic "netd-event-listener-aidl"
Lorenzo Colitti [Wed, 12 Dec 2018 06:17:25 +0000 (06:17 +0000)]
Merge changes from topic "netd-event-listener-aidl"

* changes:
  Depend on the stable AIDL version of the netd metrics interface.
  Delete INetworkManagementService#getNetdService.

5 years agoMerge "[CM] Fix comments, add tests to TransportInfo API"
Etan Cohen [Wed, 12 Dec 2018 05:25:38 +0000 (05:25 +0000)]
Merge "[CM] Fix comments, add tests to TransportInfo API"

5 years agoMerge "Fix cert-dcl16-c clang-tidy warnings."
Chih-hung Hsieh [Wed, 12 Dec 2018 02:58:22 +0000 (02:58 +0000)]
Merge "Fix cert-dcl16-c clang-tidy warnings."

5 years agoAPEX list can be retrieved via the shell command.
Jiyong Park [Tue, 11 Dec 2018 04:37:17 +0000 (13:37 +0900)]
APEX list can be retrieved via the shell command.

When 'list package' command is invoked with '--apex-only' flag, APEXes that
are activated are listead instead of the ordinary APK packages.

Bug: 117589375
Test: `cmd package list packages --apex-only` and
`pm list packages --apex-only` shows apexes
package:com.android.resolv
package:com.android.runtime
package:com.android.tzdata

Change-Id: Ie0f7cc37db0a30e55e2b717be75f5028fbd06ede

5 years ago[CM] Fix comments, add tests to TransportInfo API
Etan Cohen [Mon, 10 Dec 2018 22:07:15 +0000 (14:07 -0800)]
[CM] Fix comments, add tests to TransportInfo API

Bug: 117605977
Test: atest NetworkCapabilitiesTest
Change-Id: I734ec56e44cd09d11ae81a856a53a26e1191b9a0

5 years agoMerge "Add fields for PhoneAccount to CallerInfo"
Hall Liu [Tue, 11 Dec 2018 22:58:45 +0000 (22:58 +0000)]
Merge "Add fields for PhoneAccount to CallerInfo"

5 years agoMerge "Changes to IMS SS API to better fit API standards/"
Brad Ebinger [Tue, 11 Dec 2018 22:57:26 +0000 (22:57 +0000)]
Merge "Changes to IMS SS API to better fit API standards/"

5 years agoDO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Xin Li [Tue, 11 Dec 2018 22:13:44 +0000 (14:13 -0800)]
DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master

Bug: 120502534
Change-Id: Idc8bfb6d97a869b76cfb87ca1a494201baf9e8bd

5 years agoAdd API to get card ID for default eUICC
Jordan Liu [Fri, 7 Dec 2018 00:11:08 +0000 (16:11 -0800)]
Add API to get card ID for default eUICC

getCardIdForDefaultEuicc() returns the cardId of the default eUICC.

Bug: 80097562
Test: manual, UiccControllerTest
Change-Id: Iee001ce354184dff4862a92b6bda261797c19e56

5 years agoAdd asynchronous DNS query API
Luke Huang [Tue, 20 Nov 2018 03:38:23 +0000 (11:38 +0800)]
Add asynchronous DNS query API

Adds support for asynchronous "raw" DNS API for clients.
API allows apps to use multinetworking capability correctly
and also allows other query types than A/AAAA.

Test: built, flashed, booted
      cts test: NativeDnsAsyncTest

Change-Id: I4701b76bd8f0094ef1bdd7c5371b54387914a91b

5 years agoMerge "Add Call redirection app in Telecom test-commands"
Shuo Qian [Tue, 11 Dec 2018 19:43:00 +0000 (19:43 +0000)]
Merge "Add Call redirection app in Telecom test-commands"

5 years agoFix cert-dcl16-c clang-tidy warnings.
Chih-Hung Hsieh [Mon, 10 Dec 2018 21:52:46 +0000 (13:52 -0800)]
Fix cert-dcl16-c clang-tidy warnings.

Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I2dc262d3407aafa969e921236dc3fc3ae60eb9d4

5 years agoRemove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING
Michele Berionne [Tue, 11 Dec 2018 18:58:05 +0000 (10:58 -0800)]
Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING

Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING, so that
it can be used by applications.

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

5 years agoMerge "Add persist.zygote.core_dump property for coredumps"
Treehugger Robot [Tue, 11 Dec 2018 16:28:07 +0000 (16:28 +0000)]
Merge "Add persist.zygote.core_dump property for coredumps"

5 years agoDepend on the stable AIDL version of the netd metrics interface.
Lorenzo Colitti [Tue, 11 Dec 2018 04:45:14 +0000 (13:45 +0900)]
Depend on the stable AIDL version of the netd metrics interface.

We used to include the AIDL file directly, but that does not
provide useful features such as getVersion() support and is
generally not the preferred approach.

Test: builds, boots
Test: atest FrameworksNetTests android.net.cts.ConnectivityManagerTest
Change-Id: I7ca56e4b440dc2321f5a7b77bac630a48e69100a

5 years agoMerge "Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations"
Paul Duffin [Tue, 11 Dec 2018 13:26:09 +0000 (13:26 +0000)]
Merge "Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations"

5 years agoMerge "VPN: Move package intent receiver to ConnectivityService."
Junyu Lai [Tue, 11 Dec 2018 11:25:00 +0000 (11:25 +0000)]
Merge "VPN: Move package intent receiver to ConnectivityService."

5 years agoMerge "Improve @UnsupportedAppUsage docs."
Mathew Inwood [Tue, 11 Dec 2018 11:19:23 +0000 (11:19 +0000)]
Merge "Improve @UnsupportedAppUsage docs."

5 years agoMerge "Revert "Revert "Schematize vold system properties"""
Treehugger Robot [Tue, 11 Dec 2018 11:04:01 +0000 (11:04 +0000)]
Merge "Revert "Revert "Schematize vold system properties"""

5 years agoDelete INetworkManagementService#getNetdService.
Lorenzo Colitti [Tue, 11 Dec 2018 04:36:05 +0000 (13:36 +0900)]
Delete INetworkManagementService#getNetdService.

This code is unused.

Test: builds, boots
Test: atest frameworks-net
Change-Id: I45e796c0dd049e8ac722cc79eea8df81dd2ad28c

5 years agoMerge "Enable checkstyle everywhere in frameworks/base."
Lorenzo Colitti [Tue, 11 Dec 2018 10:20:51 +0000 (10:20 +0000)]
Merge "Enable checkstyle everywhere in frameworks/base."

5 years agoVPN: Move package intent receiver to ConnectivityService.
junyulai [Mon, 12 Nov 2018 14:39:30 +0000 (22:39 +0800)]
VPN: Move package intent receiver to ConnectivityService.

Currently, PermissionMonitor listen to user add/remove and
package add/remove intent respectively, and so does VPN.
Thus, races might occurr between them.

This commit refactor VPN part by using ConnectivityService to
listen to intents and dispatch events to VPN.

Bug: 118811303
Test: 1. atest FrameworksNetTests
      2. manually add/remove package
      3. cts-tradefed run cts -m CtsHostsideNetworkTests

Change-Id: Id76fd77c5fcfb2b0e21f211f63f007b1ea1aa53f

5 years agoMerge "Upstream Configuration should also consider automatic configuration"
Mark Chien [Tue, 11 Dec 2018 04:27:43 +0000 (04:27 +0000)]
Merge "Upstream Configuration should also consider automatic configuration"

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 agoRevert "Revert "Schematize vold system properties""
Inseob Kim [Mon, 10 Dec 2018 07:06:25 +0000 (07:06 +0000)]
Revert "Revert "Schematize vold system properties""

This reverts commit 2473b08b07ccd58978d4b0271dc22a770b9b8605.

Reason for revert: Fixed build breakage
sysprop_cpp and sysprop_java directly have been linking against
libprotobuf-cpp-full and do not set proto.type field, which could
cause ASAN error due to linking against both libproto version of full
and lite.

Change-Id: I96eb47444d7b6f6b5fef092efc1514fcdd6f33b6
Merged-In: I8e04f643197b6c8a60cc38c6979e41c5de3469f5

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 agoAdd persist.zygote.core_dump property for coredumps
Orion Hodson [Fri, 7 Dec 2018 16:44:33 +0000 (16:44 +0000)]
Add persist.zygote.core_dump property for coredumps

Enable core dumps for debuggable apps if the property is set.

Contributed by lu.wang@unisoc.com.

Bug: b/120485385
Test: boots
Change-Id: I68995bec552b8875490748ee5275488f65b00dbd

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 agoSystemConfig: allow reading sku specific props
Steven Moreland [Mon, 3 Dec 2018 18:27:01 +0000 (10:27 -0800)]
SystemConfig: allow reading sku specific props

Sometimes, very similar devices share the same exact images but use
slightly different hardware. In this case, they distinguish themselves
with skus like ro.boot.product.hardware.sku. This SKU is also used to
distinguish between which HALs are exposed in the VINTF manifest.

In this CL, we add the following locations to read from:
odm/etc/sysconf/sku_${sku}/*.xml
odm/etc/permissions/sku_${sku}/*.xml

Only the configurations already available to be set from the ODM image
can be set here.

Bug: 119129238
Test: boot
Test: manually use unavailable-feature from odm sku directory

Change-Id: I465ac818e5c68f1118668f13b45940fd8fa0fa62

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 agoSwitch last c.a.i18n.phonenumbers hiddenapi entries to annotations
Paul Duffin [Fri, 7 Dec 2018 11:52:19 +0000 (11:52 +0000)]
Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations

Previous changes could not remove these entries as they are implicit
methods, i.e. are not present in the source, and so could not be
annotated. That is no longer true and so these entries can now be
removed.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Bug: 117818301
Bug: 119861512
Test: as above
Change-Id: Ic33c693f50cac011332c5ba5a5c0e2b6562e6ef8

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 agoapf: Drop ARP reply if SPA is 0.0.0.0
Aaron Huang [Thu, 15 Nov 2018 12:30:46 +0000 (20:30 +0800)]
apf: Drop ARP reply if SPA is 0.0.0.0

Some network re-writing packet from broadcast MACs to unicast,
result in this kind of packets cannot be dropped by APF filter.
Thus, drop ARP reply if source IP is 0.0.0.0.

Note: Linux kernel always ignores such replies in the function arp_process().

Bug: 118044271
Test: runtest frameworks-net -c android.net.apf.ApfTest
Change-Id: Id293bf231913d9b483ce7d8dd909e05fa927ccd7

5 years agoUpstream Configuration should also consider automatic configuration
markchien [Wed, 5 Dec 2018 13:20:01 +0000 (21:20 +0800)]
Upstream Configuration should also consider automatic configuration

Tethering already support two type upstream configurations,
but hasTetherableConfiguration() only check legacy one.

Bug: 120533392
Test: -runtest frameworks-net
      -build, flash, booted

Change-Id: I986070fc009abcad17994b73858962f776b4c3f5

5 years agoAdd an APF unit test to drop all packets in the pcap file
Aaron Huang [Wed, 31 Oct 2018 07:57:48 +0000 (15:57 +0800)]
Add an APF unit test to drop all packets in the pcap file

Read a pcap file and runs it through APF filter, then checks whether all
packets in the file are dropped.

Test: runtest frameworks-net -c android.net.apf.ApfTest
Change-Id: I7fc59864608762cd2bc84131817183846b0bf5b5

5 years agoImprove @UnsupportedAppUsage docs.
Mathew Inwood [Fri, 7 Dec 2018 11:15:49 +0000 (11:15 +0000)]
Improve @UnsupportedAppUsage docs.

Add some words aimed at app developers, to help ensure that devs are
aware of the implications of using annotated members. Also add a link
to the public info on non-SDK interfaces, which includes a feature
request link.

Also use the term "non-SDK interface" in the docs as this is what is
used externally in the blog posts.

Test: m
Change-Id: I936e53082e308f484dfd42ba56a3575b78b6d3aa

5 years agoEnable checkstyle everywhere in frameworks/base.
Lorenzo Colitti [Mon, 10 Dec 2018 09:23:09 +0000 (18:23 +0900)]
Enable checkstyle everywhere in frameworks/base.

This was done in internal master in ag/5397886. Do it in AOSP as
well so we can benefit from checkstyle in AOSP as well.

Test: None
Change-Id: Ib00fc8d318e8127224846e0a69cb542178631437
Merged-In: I7d350c2bbb9fcd1019abd1addb035ce5e9e05acc

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 agoAdd Call redirection app in Telecom test-commands
sqian [Sat, 8 Dec 2018 03:35:02 +0000 (19:35 -0800)]
Add Call redirection app in Telecom test-commands

Bug: 64959558
Test: Treehugger
Change-Id: I15cb3b766c4c5fbef4e50824ccda0f3328643cf9

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