OSDN Git Service

android-x86/frameworks-base.git
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 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 agoMerge "Create AppComponentFactory.instantiateClassLoader API"
David Brazdil [Thu, 22 Nov 2018 11:09:15 +0000 (11:09 +0000)]
Merge "Create AppComponentFactory.instantiateClassLoader API"

5 years agoMerge "Update public API after libcore InMemoryDexClassLoader change"
David Brazdil [Thu, 22 Nov 2018 10:09:19 +0000 (10:09 +0000)]
Merge "Update public API after libcore InMemoryDexClassLoader change"

5 years agoMerge "integrate carrier id to carrier config"
Chen Xu [Thu, 22 Nov 2018 05:06:55 +0000 (05:06 +0000)]
Merge "integrate carrier id to carrier config"

5 years agointegrate carrier id to carrier config
chen xu [Mon, 12 Nov 2018 03:01:50 +0000 (19:01 -0800)]
integrate carrier id to carrier config

add carrierId and preciseCarrierId in CarrierIdentifier
which will be passed to carrier service to decide which carrier
info to look up

Bug: 110559381
Change-Id: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2
Merged-in: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2

5 years agoMerge "Fix deleting legacy key blobs"
Treehugger Robot [Wed, 21 Nov 2018 22:29:33 +0000 (22:29 +0000)]
Merge "Fix deleting legacy key blobs"

5 years agoMerge "Framework: Remove some methods from boot image profile"
Andreas Gampe [Wed, 21 Nov 2018 22:25:22 +0000 (22:25 +0000)]
Merge "Framework: Remove some methods from boot image profile"

5 years agoMerge "Added OWNERS to Shell and hook to make sure it's developed on AOSP."
Felipe Leme [Wed, 21 Nov 2018 22:14:14 +0000 (22:14 +0000)]
Merge "Added OWNERS to Shell and hook to make sure it's developed on AOSP."

5 years agoAdded OWNERS to Shell and hook to make sure it's developed on AOSP.
Felipe Leme [Wed, 26 Sep 2018 18:07:30 +0000 (11:07 -0700)]
Added OWNERS to Shell and hook to make sure it's developed on AOSP.

Bug: none
Test: none

Change-Id: I1f6f554cf98c78d1ab8a1e820d485a37238230f5

5 years agoMerge "HFP: Send caller ID in +CLIP command (1/4)"
Treehugger Robot [Wed, 21 Nov 2018 20:21:19 +0000 (20:21 +0000)]
Merge "HFP: Send caller ID in +CLIP command (1/4)"

5 years agoMerge "Expose ImsMmTelManager APIs as SystemApi"
Brad Ebinger [Wed, 21 Nov 2018 18:59:33 +0000 (18:59 +0000)]
Merge "Expose ImsMmTelManager APIs as SystemApi"

5 years agoFix deleting legacy key blobs
Janis Danisevskis [Tue, 6 Nov 2018 22:14:05 +0000 (14:14 -0800)]
Fix deleting legacy key blobs

Since the keystore alias prefix USERSKEY was deprecated
Credentials.deleteUserKeyTypeForAlias tried to delete key the
remaining prefix first and if that failed tried to delete the
legacy prefix.
However, KeyStore.delete returns true if the key was deleted or
did not exist. So the first call to delete would return true
whether the key existed or not and the legacy alias would never be
deleted.

This patch introduces a new flavor of KeyStore.delete, that returns an
error code instead of a boolean. The caller can now distinguish
the nature of the failure. Credentials.deleteUserKeyTypeForAlias now
checks this return code and attempts to delete the legacy variant if
KEY_NOT_FOUND was returned.

Bug: 117818447
Change-Id: Ifae1f3dbb07d85d94f430ead2cdd3e39d22436a4

5 years agoMerge "API for retrieving time zone IDs by country"
Neil Fuller [Wed, 21 Nov 2018 15:18:27 +0000 (15:18 +0000)]
Merge "API for retrieving time zone IDs by country"

5 years agoUpdate public API after libcore InMemoryDexClassLoader change
David Brazdil [Wed, 21 Nov 2018 11:17:38 +0000 (11:17 +0000)]
Update public API after libcore InMemoryDexClassLoader change

Bug: 35458580
Test: compiles
Change-Id: I7debcedac0a6e8b2cfaa8b2dca5f88aebdd32910

5 years agoMerge "Nat-related commands porting"
Luke Huang [Wed, 21 Nov 2018 08:52:13 +0000 (08:52 +0000)]
Merge "Nat-related commands porting"

5 years agoMerge "Convert bootanimation to Android.bp"
Treehugger Robot [Wed, 21 Nov 2018 04:05:58 +0000 (04:05 +0000)]
Merge "Convert bootanimation to Android.bp"

5 years agoMerge "Move hidden APIs into system APIs"
Jack Yu [Wed, 21 Nov 2018 02:40:30 +0000 (02:40 +0000)]
Merge "Move hidden APIs into system APIs"

5 years agoMerge "BluetoothDevice.ACTION_UUID requires BLUETOOTH_ADMIN"
Treehugger Robot [Wed, 21 Nov 2018 01:58:32 +0000 (01:58 +0000)]
Merge "BluetoothDevice.ACTION_UUID requires BLUETOOTH_ADMIN"

5 years agoMerge "Enable the Debug Logs for Hearing Aids Profile"
Treehugger Robot [Wed, 21 Nov 2018 01:20:02 +0000 (01:20 +0000)]
Merge "Enable the Debug Logs for Hearing Aids Profile"

5 years agoExpose ImsMmTelManager APIs as SystemApi
Brad Ebinger [Fri, 9 Nov 2018 01:41:54 +0000 (17:41 -0800)]
Expose ImsMmTelManager APIs as SystemApi

Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony unit tests
Change-Id: I698d9ab6000dc2e2e9be8d614e94d59b3a8e3028

5 years agoMerge "Check in P dark greylist"
David Brazdil [Tue, 20 Nov 2018 18:49:34 +0000 (18:49 +0000)]
Merge "Check in P dark greylist"

5 years agoMerge "Fix a use-after-free found by HWAsan."
Peter Collingbourne [Tue, 20 Nov 2018 18:22:36 +0000 (18:22 +0000)]
Merge "Fix a use-after-free found by HWAsan."

5 years agoMerge "WM: Guard against released surfaces in forced rotator"
Treehugger Robot [Tue, 20 Nov 2018 17:56:32 +0000 (17:56 +0000)]
Merge "WM: Guard against released surfaces in forced rotator"

5 years agoCheck in P dark greylist
David Brazdil [Tue, 13 Nov 2018 14:58:31 +0000 (14:58 +0000)]
Check in P dark greylist

Test: m appcompat
Change-Id: If4d7377631c1e8c1194a7bd70814b663d9af17fb

5 years agoWM: Guard against released surfaces in forced rotator
Vishnu Nair [Tue, 20 Nov 2018 16:01:57 +0000 (08:01 -0800)]
WM: Guard against released surfaces in forced rotator

Fixes: 119470176
Test: Rotate phone with cutout enabled, verify cutout overlay is still properly synchornized and SystemUI does not crash.
(cherry picked from commit dcb24ca47138219f41b730af8cdcd2db8f553562)

Merged-In: Ibce67ccede8f114b82779a74853e43b3abe44c55
Change-Id: Ibce67ccede8f114b82779a74853e43b3abe44c55

5 years agoAPI for retrieving time zone IDs by country
Neil Fuller [Wed, 3 Oct 2018 12:59:29 +0000 (13:59 +0100)]
API for retrieving time zone IDs by country

New method has been requested by Setup Wizard.

Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f020c2c7815359cae8dc8255fd8e9d1de)

5 years agoConvert bootanimation to Android.bp
Dan Willemsen [Tue, 20 Nov 2018 07:39:03 +0000 (23:39 -0800)]
Convert bootanimation to Android.bp

See build/soong/README.md for more information.

Test: cd frameworks/base/cmds/bootanimation; mma
Change-Id: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
Merged-In: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
(cherry picked from commit efc3e37c9b2dc1599cf75b49514665049951d7de)

5 years agoMerge "Add MANAGE_ROLE_HOLDERS permission to shell."
Treehugger Robot [Tue, 20 Nov 2018 07:44:22 +0000 (07:44 +0000)]
Merge "Add MANAGE_ROLE_HOLDERS permission to shell."

5 years agoMerge "Modify feature flag of Personal Safety"
Yuanjia Hsu [Tue, 20 Nov 2018 06:39:55 +0000 (06:39 +0000)]
Merge "Modify feature flag of Personal Safety"

5 years agoMerge "Allow all system configs in /product"
Treehugger Robot [Tue, 20 Nov 2018 03:45:37 +0000 (03:45 +0000)]
Merge "Allow all system configs in /product"

5 years agoMerge "[API Review]Clarify method that obtain a component name"
Tony Zhu [Tue, 20 Nov 2018 02:36:32 +0000 (02:36 +0000)]
Merge "[API Review]Clarify method that obtain a component name"

5 years agoMerge "Telephony light grey list clean up for Q"
Chen Xu [Tue, 20 Nov 2018 01:56:19 +0000 (01:56 +0000)]
Merge "Telephony light grey list clean up for Q"

5 years agoAdd MANAGE_ROLE_HOLDERS permission to shell.
Hai Zhang [Tue, 20 Nov 2018 01:27:47 +0000 (17:27 -0800)]
Add MANAGE_ROLE_HOLDERS permission to shell.

This change adds the MANAGE_ROLE_HOLDERS permission to shell, which
allows shell or code with Shell permission identity to use privileged
RoleManager APIs.

Bug: 110557011
Test: build
Change-Id: I6b8be9eec2a1dfb169536cfcda9d21cb802df327

5 years agoMerge "Remove exclusive OWNERS for BitUtils"
Treehugger Robot [Tue, 20 Nov 2018 01:20:44 +0000 (01:20 +0000)]
Merge "Remove exclusive OWNERS for BitUtils"

5 years agoMerge "Add IPv6 link-local address generation from EUI-48"
Etan Cohen [Tue, 20 Nov 2018 00:19:54 +0000 (00:19 +0000)]
Merge "Add IPv6 link-local address generation from EUI-48"

5 years agoMove hidden APIs into system APIs
Jack Yu [Thu, 15 Nov 2018 06:04:17 +0000 (22:04 -0800)]
Move hidden APIs into system APIs

To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Merged-In: I3e203781d3a03285fa0e047cc8837ccb4a09016a
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a

5 years agoRemove exclusive OWNERS for BitUtils
Eugene Susla [Mon, 19 Nov 2018 22:36:46 +0000 (14:36 -0800)]
Remove exclusive OWNERS for BitUtils

BitUtils is a fairly generic place where all framework engineers should
be able to contribute reusable code.

Test: test after merge in gerrit UI
Change-Id: Ibd00f0618e3e85aab466cedc43605115994cca4f

5 years agoMerge "Remove dummy subscription ids"
Shuo Qian [Mon, 19 Nov 2018 22:03:58 +0000 (22:03 +0000)]
Merge "Remove dummy subscription ids"

5 years agoRemove dummy subscription ids
sqian [Fri, 9 Nov 2018 22:52:25 +0000 (14:52 -0800)]
Remove dummy subscription ids

Test: Treehugger
Bug: 119144366
Change-Id: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
Merged-In: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
(cherry picked from commit bfde48f4ed4958251d28e695a39ce88f10f3542f)

5 years agoMerge changes I664fb325,I5e289469
Treehugger Robot [Mon, 19 Nov 2018 20:25:30 +0000 (20:25 +0000)]
Merge changes I664fb325,I5e289469

* changes:
  switch to using android-base/file.h instead of android-base/test_utils.h
  Remove unused reference to android-base/test_utils.h

5 years agoFix a use-after-free found by HWAsan.
Peter Collingbourne [Sat, 17 Nov 2018 02:06:59 +0000 (18:06 -0800)]
Fix a use-after-free found by HWAsan.

The variable sizeResult is an iterator pointing into mCurrentValues,
and clearing mCurrentValues invalidates the iterator.

Bug: 119773465
Change-Id: I940ea397af87561d33f74a9d52abc3afd0a7538f

5 years agoMerge "Convert libwebviewchromium_plat_support to Android.bp"
Treehugger Robot [Mon, 19 Nov 2018 18:37:06 +0000 (18:37 +0000)]
Merge "Convert libwebviewchromium_plat_support to Android.bp"

5 years ago[API Review]Clarify method that obtain a component name
tonyzhu [Mon, 19 Nov 2018 07:00:00 +0000 (15:00 +0800)]
[API Review]Clarify method that obtain a component name

Change JavaDoc in CarrierConfigManager.java. Clarify what format
string will be set and get from the key. Using ComponentName methods
to convert.

Bug: 118675660
Test: build success.
Change-Id: I47db5b665808ef7dbc9081e0112a04958497d6fd

5 years agoCreate AppComponentFactory.instantiateClassLoader API
David Brazdil [Thu, 25 Oct 2018 13:07:51 +0000 (14:07 +0100)]
Create AppComponentFactory.instantiateClassLoader API

Adds a hook to AppComponentFactory to allow control over the
instantiation of the main app class loader. LoadedApk creates
the default class loader and uses it to load the base APK. If
AppComponentFactory is declared in the manifest, its new method
instantiateClassLoader is called and its result becomes the
class loader used by LoadedApk to instantiate other classes
declared in the manifest. By default this is simply the class
loader created by LoadedApk.

Second method provides AppComponentFactory with a copy of
ApplicationInfo. The factory otherwise cannot locate any of the
app's resources, including its APK or the data folder.

Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Merged-In: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
(cherry picked from commit fd6dcc21d9ee8ee5d1cad71a8d705cf0d42980a7)

5 years agoModify feature flag of Personal Safety
yuanjiahsu [Fri, 16 Nov 2018 13:37:33 +0000 (21:37 +0800)]
Modify feature flag of Personal Safety

1.Remove feature flag and let Emergency Dialer Shortcut feature always
enabled.
2.Add feature flag for Safety Hub (the bug ID to clean up this feature flag is b/118848485).

Test: Manually
Bug: 117128459
Bug: 118809382
Change-Id: I0a3819629bc579d93c682451abdf271d0b36bf59

5 years agoMerge "Remove unused imports."
Treehugger Robot [Mon, 19 Nov 2018 12:57:47 +0000 (12:57 +0000)]
Merge "Remove unused imports."

5 years agoMerge "Track changes in system/timezone / libcore"
Neil Fuller [Mon, 19 Nov 2018 11:38:14 +0000 (11:38 +0000)]
Merge "Track changes in system/timezone / libcore"

5 years agoRemove unused imports.
Alan Stokes [Mon, 19 Nov 2018 11:24:58 +0000 (11:24 +0000)]
Remove unused imports.

Test: Builds.
Change-Id: Ifd361ec1cbb1e5240cf63ca9d6439cfc572a96d7

5 years agoMerge "(Really) fix LingerMonitor rate limiting"
Treehugger Robot [Mon, 19 Nov 2018 07:14:11 +0000 (07:14 +0000)]
Merge "(Really) fix LingerMonitor rate limiting"

5 years agoConvert libwebviewchromium_plat_support to Android.bp
Dan Willemsen [Fri, 16 Nov 2018 23:57:29 +0000 (15:57 -0800)]
Convert libwebviewchromium_plat_support to Android.bp

See build/soong/README.md for more information.

Test: m libwebviewchromium_plat_support
Change-Id: Ia999010453d428ddc12d2316436520d866498d78

5 years agoTelephony light grey list clean up for Q
chen xu [Mon, 19 Nov 2018 02:56:00 +0000 (18:56 -0800)]
Telephony light grey list clean up for Q

Bug: 112477300
Test: Telehony unit test
Change-Id: I9485abba093a96c91816d77c7273e1a38cb5182a

5 years agoTrack changes in system/timezone / libcore
Neil Fuller [Fri, 16 Nov 2018 16:19:26 +0000 (16:19 +0000)]
Track changes in system/timezone / libcore

The version information about time zone formats is moving
to a new libcore class TzDataSetVersion.

Bug: 119026403
Test: build
Change-Id: I6f80f16f9cd7e37fc04d75c89483497f4f00a6a5

5 years agoMerge "Convert screencap and libjni_pacprocessor to Android.bp"
Treehugger Robot [Sat, 17 Nov 2018 20:06:21 +0000 (20:06 +0000)]
Merge "Convert screencap and libjni_pacprocessor to Android.bp"

5 years agoAdd IPv6 link-local address generation from EUI-48
Etan Cohen [Fri, 2 Nov 2018 22:07:20 +0000 (15:07 -0700)]
Add IPv6 link-local address generation from EUI-48

Add a utility method to convert an EUI-48 to an IPv6 link-local
address based on RFC 4291 (EUI-64 generation) followed by RFC 4862.

Bug: 117605977
Test: atest MacAddressTest
Merged-In: I80b683e69da6beff3b37fc345fc15aa9610d09b7
Change-Id: I80b683e69da6beff3b37fc345fc15aa9610d09b7

5 years agoConvert screencap and libjni_pacprocessor to Android.bp
Dan Willemsen [Fri, 16 Nov 2018 23:47:43 +0000 (15:47 -0800)]
Convert screencap and libjni_pacprocessor to Android.bp

See build/soong/README.md for more information.

Test: m screencap libjni_pacprocessor
Change-Id: I976ec0fad591f30707b484722c972cd89b569163

5 years agoMerge "Fix IllegalArgumentException in KeyChain"
Treehugger Robot [Fri, 16 Nov 2018 22:13:47 +0000 (22:13 +0000)]
Merge "Fix IllegalArgumentException in KeyChain"

5 years agoMerge "Add 5G NSA status to ServiceSate"
Pengquan Meng [Fri, 16 Nov 2018 20:40:12 +0000 (20:40 +0000)]
Merge "Add 5G NSA status to ServiceSate"

5 years agoMerge "Add Support for Async requestCellInfoUpdate()"
Nathan Harold [Fri, 16 Nov 2018 19:13:36 +0000 (19:13 +0000)]
Merge "Add Support for Async requestCellInfoUpdate()"

5 years agoMerge "Remove CDMA doc in setPreferredNetworkType()"
Nathan Harold [Fri, 16 Nov 2018 19:13:15 +0000 (19:13 +0000)]
Merge "Remove CDMA doc in setPreferredNetworkType()"

5 years agoMerge "Redirect Value Source of SignalStrength Constants"
Nathan Harold [Fri, 16 Nov 2018 19:12:58 +0000 (19:12 +0000)]
Merge "Redirect Value Source of SignalStrength Constants"

5 years agoAdd 5G NSA status to ServiceSate
Pengquan Meng [Wed, 14 Nov 2018 01:06:34 +0000 (17:06 -0800)]
Add 5G NSA status to ServiceSate

This added the 5G FrequencyRange to the ServiceState and 5G connection
status to NetworkRegisterationState.

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

5 years agoMerge "Fix RcsManager and add empty RcsThread class"
Sahin Caliskan [Fri, 16 Nov 2018 17:29:49 +0000 (17:29 +0000)]
Merge "Fix RcsManager and add empty RcsThread class"

5 years agoMerge "Check for null in applyDefiningSharedLibraryUpdateLocked."
Nicolas Geoffray [Fri, 16 Nov 2018 12:30:48 +0000 (12:30 +0000)]
Merge "Check for null in applyDefiningSharedLibraryUpdateLocked."

5 years agoCheck for null in applyDefiningSharedLibraryUpdateLocked.
Nicolas Geoffray [Tue, 13 Nov 2018 15:46:27 +0000 (15:46 +0000)]
Check for null in applyDefiningSharedLibraryUpdateLocked.

Handle two cases:
1) We haven't been able to create the shared library. The package manager
still installs the package, but doesn't create the shared library.

2) When installing a shared library, we update shared lib dependency
mappings before scanning. In the case that we're installing a
new shared library, we will not have reference to that shared library in
memory. This change adds a null check to account for such a scenario.

bug: 119438703
bug: 119497540
Test: atest android.os.cts.StaticSharedLibsHostTests#testAppCanSeeOnlyLibrariesItDependOnFullMode

(cherry picked from commit c52d8661f109012bd53cda45b18721f544c0eddd)

Change-Id: Ied5b27be193f575ef05a121b7c5b6361ed52305a
Merged-In: I93d67f79ad0a58acd8cd4cb961cf82ada085821c

5 years agoMerge "Make shared library dependencies explicit in SharedLibraryInfo"
Nicolas Geoffray [Fri, 16 Nov 2018 10:20:46 +0000 (10:20 +0000)]
Merge "Make shared library dependencies explicit in SharedLibraryInfo"

5 years agoMerge "Apply version-script to libjnigraphics library"
Dimitry Ivanov [Fri, 16 Nov 2018 07:47:01 +0000 (07:47 +0000)]
Merge "Apply version-script to libjnigraphics library"

5 years ago(Really) fix LingerMonitor rate limiting
Remi NGUYEN VAN [Thu, 15 Nov 2018 02:23:38 +0000 (11:23 +0900)]
(Really) fix LingerMonitor rate limiting

The previous patch was applied to the wrong member and did not actually
fix the issue.

Bug: b/117516272
Test: remote run passed
Change-Id: I3f9c27ebd6c339e98a71cb179b0be65950f9b864

5 years agoMerge "Handle SSL errors in CaptivePortalLoginActivity"
Remi NGUYEN VAN [Fri, 16 Nov 2018 01:04:48 +0000 (01:04 +0000)]
Merge "Handle SSL errors in CaptivePortalLoginActivity"

5 years agoMerge "Preserve x18 while preloading SP-HALs in the zygote."
Peter Collingbourne [Thu, 15 Nov 2018 23:38:36 +0000 (23:38 +0000)]
Merge "Preserve x18 while preloading SP-HALs in the zygote."

5 years agoFix RcsManager and add empty RcsThread class
Sahin Caliskan [Wed, 31 Oct 2018 20:23:29 +0000 (13:23 -0700)]
Fix RcsManager and add empty RcsThread class

This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details.

Test: Builds fine
Bug: 109759350
Merged-in: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057

5 years agoFix IllegalArgumentException in KeyChain
Janis Danisevskis [Thu, 15 Nov 2018 17:27:16 +0000 (09:27 -0800)]
Fix IllegalArgumentException in KeyChain

The legacy support importKey method uses the wrong method to add date
fields to the import keymaster arguments.

Bug: 119549023
Change-Id: Iff841086f6616303b365ad28aae429ccae1f3406

5 years agoMerge "Expose ProvisioningManager API for IMS configurations"
Brad Ebinger [Thu, 15 Nov 2018 22:07:29 +0000 (22:07 +0000)]
Merge "Expose ProvisioningManager API for IMS configurations"

5 years agoMake shared library dependencies explicit in SharedLibraryInfo
Nicolas Geoffray [Sat, 27 Oct 2018 12:48:54 +0000 (13:48 +0100)]
Make shared library dependencies explicit in SharedLibraryInfo

bug: 112405321
Test: boots, PackageParserTest
(cherry picked from commit 10b0779df87dd940e36e104a2c90cd2b29b8e590)

Change-Id: I506cdfdf0d2cb7948eacd3e2658d187f6259f4b9
Merged-In: I591c29f72ad95b2a8adb4a2242f1e764e0e29007

5 years agoAdd Support for Async requestCellInfoUpdate()
Nathan Harold [Fri, 28 Sep 2018 01:49:16 +0000 (18:49 -0700)]
Add Support for Async requestCellInfoUpdate()

Add asynchronous calls to request CellInfo updates.
-Add a request for CellInfo
-Add a request for CellInfo that allows system apps
 such as the LocationProvider to bill the work to
 the app that initiated the location fix.
-Update the behavioral language for getAllCellInfo
 to indicate that depending on the API level of the
 caller, this API will only provide cached info, which
 means that apps can always request an update without
 possibly triggering a call to the modem. This also
 means that the binder will not block due to modem
 delay.

Bug: 37100068
Bug: 63737292
Bug: 26569588
Test: manual (via SL4A)
Change-Id: I25cbc3cecd5d396fc3baa21457c05cd6e273c9c3

5 years agoEnable the Debug Logs for Hearing Aids Profile
Stanley Tng [Thu, 15 Nov 2018 18:22:07 +0000 (10:22 -0800)]
Enable the Debug Logs for Hearing Aids Profile

Bug: 119617521
Test: Compile
Change-Id: I40de1fcb3ca9e0ee66b4650a161f3735722df7ed

5 years agoMerge "[view_compiler] cleanup: Use format-specific bytecode encoding functions"
Treehugger Robot [Thu, 15 Nov 2018 17:44:28 +0000 (17:44 +0000)]
Merge "[view_compiler] cleanup: Use format-specific bytecode encoding functions"

5 years ago[view_compiler] cleanup: Use format-specific bytecode encoding functions
Eric Holk [Fri, 9 Nov 2018 21:48:59 +0000 (13:48 -0800)]
[view_compiler] cleanup: Use format-specific bytecode encoding functions

This change corrals most of the bit shifting and ORing needed to encode Dex
instructions into EncodeXXX functions that follow the naming scheme at
https://source.android.com/devices/tech/dalvik/instruction-formats. Overall, it
makes the code easier to follow and probably even less error prone because we
only have to make the format right in one place.

Bug: 111895153
Change-Id: I902ec3c8bca6b5dc4ad900503af7aef58d4bbf5f

5 years agoMerge "[view_compiler] DexBuilder: Add support for new and calling constructors"
Treehugger Robot [Thu, 15 Nov 2018 17:43:14 +0000 (17:43 +0000)]
Merge "[view_compiler] DexBuilder: Add support for new and calling constructors"

5 years agoMerge "Added listUidsForAuthBoundKeys to KeyStore"
Rob Barnes [Thu, 15 Nov 2018 17:32:31 +0000 (17:32 +0000)]
Merge "Added listUidsForAuthBoundKeys to KeyStore"

5 years agoMerge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING"
Chen Xu [Thu, 15 Nov 2018 16:59:44 +0000 (16:59 +0000)]
Merge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING"

5 years agoMerge "new System API for sim voice activation state."
Chen Xu [Thu, 15 Nov 2018 16:59:03 +0000 (16:59 +0000)]
Merge "new System API for sim voice activation state."

5 years agoApply version-script to libjnigraphics library
dimitry [Thu, 15 Nov 2018 15:37:14 +0000 (16:37 +0100)]
Apply version-script to libjnigraphics library

Hide unintentionally exported symbols, validate that symbols mentioned
in the map file actually exported by the library.

Bug: http://b/69603741
Test: make
Change-Id: I80ec35b715b28dea45ebfbd216130c2c946c6668

5 years agoMerge "Simplify HIDDEN_API_ENFORCEMENT_ flags"
David Brazdil [Thu, 15 Nov 2018 15:04:47 +0000 (15:04 +0000)]
Merge "Simplify HIDDEN_API_ENFORCEMENT_ flags"

5 years agoMerge "Attach SharedLibraryInfo to a Package."
Nicolas Geoffray [Thu, 15 Nov 2018 15:03:58 +0000 (15:03 +0000)]
Merge "Attach SharedLibraryInfo to a Package."

5 years agoAttach SharedLibraryInfo to a Package.
Nicolas Geoffray [Mon, 22 Oct 2018 09:23:50 +0000 (10:23 +0100)]
Attach SharedLibraryInfo to a Package.

bug: 112405321
Test: boots, PackageParserTest
Change-Id: Ib218dac8f554505188990436cae4147666f3aece
Merged-In: Ib218dac8f554505188990436cae4147666f3aece
(cherry picked from commit abcd58e4a2b2d8055abb6a9e1bb1181284ca4b73)

5 years agoMerge "Create privapp permission grant file for TZ updater"
Anton Hansson [Thu, 15 Nov 2018 11:07:22 +0000 (11:07 +0000)]
Merge "Create privapp permission grant file for TZ updater"

5 years agoRedirect Value Source of SignalStrength Constants
Nathan Harold [Wed, 14 Nov 2018 19:51:51 +0000 (11:51 -0800)]
Redirect Value Source of SignalStrength Constants

SignalStrength contains a few hidden constants that
are identical to publicly exposed constants in
CellSignalStrength. Since the CellSignalStrength
values are public, redefine SignalStrength to point
to the public values and limit access to them
(since there is already a public alternative).

Bug: 30188945
Test: compilation
Change-Id: Ie7f295ef4d7849f7ce3a631cbdffe3d6670da5bd

5 years agoMerge "Multi-threaded keystore"
Janis Danisevskis [Thu, 15 Nov 2018 01:19:10 +0000 (01:19 +0000)]
Merge "Multi-threaded keystore"

5 years agoMerge "Add missing library of services.net"
Dan Shi [Thu, 15 Nov 2018 01:11:21 +0000 (01:11 +0000)]
Merge "Add missing library of services.net"

5 years agoHandle SSL errors in CaptivePortalLoginActivity
Takayuki, Ogura [Thu, 13 Sep 2018 03:40:28 +0000 (12:40 +0900)]
Handle SSL errors in CaptivePortalLoginActivity

[Current Problem]
When SSL error occures, there is no UI of detailed error.
Then end user cannot see SSL error reason and detailed page.

[Solution]
We added new dialog to show error information,
with SSL reason, the detailed certificate.
End user can confirm it via error page if he/she wants to view.

Bug: 74608260
Author: Yevgen Pronenko <yevgen.pronenko@sonymobile.com>
Author: Shigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com>

Change-Id: If700478930f248f2e53f9b1c9b2b7d4e0551b6d7

5 years agoswitch to using android-base/file.h instead of android-base/test_utils.h
Mark Salyzyn [Wed, 14 Nov 2018 23:13:39 +0000 (15:13 -0800)]
switch to using android-base/file.h instead of android-base/test_utils.h

Test: compile
Bug: 119313545
Change-Id: I664fb32522d01909c603d7b903475c4e9aea9223

5 years agoMerge "[BatteryStats] Correct formatter for pkginst in battery stats."
Treehugger Robot [Wed, 14 Nov 2018 23:53:42 +0000 (23:53 +0000)]
Merge "[BatteryStats] Correct formatter for pkginst in battery stats."

5 years agoRemove unused reference to android-base/test_utils.h
Mark Salyzyn [Wed, 14 Nov 2018 23:03:18 +0000 (15:03 -0800)]
Remove unused reference to android-base/test_utils.h

Test: compile
Bug: 119313545
Change-Id: I5e289469b40ccf5bf17982197a3cdefad1254f78

5 years agoMerge "Add 5G NSA information"
Pengquan Meng [Wed, 14 Nov 2018 23:07:35 +0000 (23:07 +0000)]
Merge "Add 5G NSA information"

5 years agoMerge "Catch SecurityException in EuiccCardController and trigger callback."
Treehugger Robot [Wed, 14 Nov 2018 22:30:54 +0000 (22:30 +0000)]
Merge "Catch SecurityException in EuiccCardController and trigger callback."

5 years agoMerge "Use flatten component name for Carrier Settings activity"
Pengquan Meng [Wed, 14 Nov 2018 20:53:47 +0000 (20:53 +0000)]
Merge "Use flatten component name for Carrier Settings activity"

5 years agoAdd missing library of services.net
Dan Shi [Tue, 13 Nov 2018 01:17:17 +0000 (17:17 -0800)]
Add missing library of services.net

Tethering.java creates an anonymous implementation of IpServer.Callback.
robotests has static link to services.core. services.core and services.net
are merged into services in services/Android.bp.

Therefore, module FrameworksServicesLib should include both services.core
and services.net as static library.

Bug: 119401516
Test: m -j MODULES-IN-frameworks-base-services-robotests
 m -j MODULES-IN-frameworks-base

Change-Id: I4bca54e01528b87375cbcc4d9caf9e5789734b9a

5 years agoAdded listUidsForAuthBoundKeys to KeyStore
Rob Barnes [Tue, 13 Nov 2018 22:57:22 +0000 (15:57 -0700)]
Added listUidsForAuthBoundKeys to KeyStore

listUidsForAuthBoundKeys was added to IKeyStoreService.
This CL exposes this method in KeyStore for system apps.
This method will be hidden for non system apps.

Bug: b/112321280
Test: listUidsForAuthBoundKeys in IKeyStoreService has its own tests
Test: This method cannot be tested directly from CTS
Change-Id: Iac9e863079a1367ddb3a599bc3825baea96a1c31

5 years agoUse flatten component name for Carrier Settings activity
Pengquan Meng [Wed, 7 Nov 2018 22:54:21 +0000 (14:54 -0800)]
Use flatten component name for Carrier Settings activity

This change uses the flatten component name instead of the separate
package name and class name for carrier settings activity.

Bug: 115429501
Test: Build
Merged-In: Ia531c3322183a2eba6962c8ee139c7854e2560ec
Change-Id: Ia531c3322183a2eba6962c8ee139c7854e2560ec