432081 Commits

Author SHA1 Message Date
Nicolas Geoffray
d10a84cdfe Merge "Whitelist file descriptors created through memfd_create." 2019-10-29 15:45:03 +00:00
Marco Nelissen
00639037d7 Merge "Declare Visualizer::setEnabled() 'final'" 2019-10-29 14:31:55 +00:00
Paul Duffin
179d97038b Ignore classes on the classpath when generating stubs
This prevents metalava from generating stubs that reference classes
which are provided on the classpath. That ensures that removing hidden
classes from the sources does not result in references to those removed
classes from being added to the generated stubs, e.g. in the imports.

Specifically needed to prevent the StrictMode stubs class from
referencing dalvik.system.CloseGuard when that is removed from the
sourcepath as a result of switching the stub generation from using
libcore implementation classes (which contain CloseGuard) to
generated stubs (which does not contain CloseGuard).

Bug: 142113521
Test: m checkbuild
Change-Id: Ib4b87fec6549b69cc69820bc8d8b33f8c4e8535c
2019-10-29 12:23:44 +00:00
Jeongik Cha
cc0b57ca06 Change AIDL module name
Naming rule for aidl module is changed to make using unstable AIDL module more explicit
So, to use unstable version AIDL module, use "-unstable" suffix version
And also, module name without any suffix means latest frozen version.

But wrt modules for C++ and NDK, module name with latest frozen version
is not available for now.

In b/139280289, more background is explained

Test: m
Bug: 139280289
Change-Id: Ib38e2cb114cc373ef50652f421ddaff9b4fbe5b9
Merged-In: Ib38e2cb114cc373ef50652f421ddaff9b4fbe5b9
2019-10-29 16:01:18 +09:00
yoonjeong Jang
bc97964aad Addition of 'XorEqualsString' method for comparing String
Previously, ApnSetting compared two APNs using String with 'XorEqual' method
and the result of it used for 'dedupeApnSettings' for DcTracker.
For instance, a MMS APN for the specific operator shall be merged with
the default(Internet) APN of the same operator's(mccmnc) APN once the result of 'similar' is true.
But recently, it didn't merge two similar APNs properly due to 'UNSPECIFIED_STRING' case.
So we've added XorEquals for String(XorEqualsString) case.

The Issue will happen in the circumstance below.
 1.A network operator's similar APNs are saved separately at the APN database(apns-conf.xml)
    For instance, Add two APNs like below and check the result of merging APNs at DcTracker.
        <apn carrier="SKT LTE INTERNET"
          mcc="450"
          mnc="05"
          apn="lte.sktelecom.com"
          type="default,supl,fota,cbs"
          protocol="IPV4V6"
         />
        <apn carrier="SKT LTE INTERNET"
          mcc="450"
          mnc="05"
          apn="lte.sktelecom.com"
          type="mms"
          mmsc="http://omms.nate.com:9082/oma_mms"
          mmsproxy="smart.nate.com"
          mmsport="9093"
          protocol="IPV4V6"
         />:q
 2. Two similar APNs shall be merged on the result of ApnSetting's 'similar' method.
         P  => merged
         Q  => not merged

Test: Manual

Change-Id: I0584310765e246ef16163201282d7db48c44e451
Signed-off-by: yoonjeong Jang <yjeong.jang@samsung.com>
2019-10-29 13:00:28 +09:00
Peter Wang
10d6f20bc9 Merge "Fixed java doc for EuiccService#eraseSubscriptions" 2019-10-28 22:50:53 +00:00
Peter Wang
8db38c9ef6 Merge "Fix java doc for eraseSubscriptionsWithOptions" 2019-10-28 22:50:53 +00:00
Hideki Ishii
de2688ec89 Prevent sending CLIR activation and deactivation code only
Sending CLIR activation("*31#") and deactivation("#31#") code without
dialing number is not allowed by some operator. This patch adds new
CarrierConfig key to prevent sending CLIR activation and deactivation
code only.

Test: manual - Verified behavior about sending "*31#" and "#31#"
Bug: 140366917
Change-Id: I2d53e438f96a9dabc99a544cea15c6841061f3d5
2019-10-28 15:44:29 -07:00
Jack Yu
48ad8828d1 Merge "Add new carrier configuration for GET INPUT command" 2019-10-28 22:06:43 +00:00
Peter Wang
0ecde1f5f9 Fixed java doc for EuiccService#eraseSubscriptions
Bug: 143138878
Test: on device
Change-Id: I2a9ab4fe4e1c48fc7e7178b1de9b1f72b0408183
Merged-In: I2a9ab4fe4e1c48fc7e7178b1de9b1f72b0408183
2019-10-28 12:40:23 -07:00
Peter Wang
fa9c61ad2d Fix java doc for eraseSubscriptionsWithOptions
Bug: 143138878
Test: on device
Change-Id: I7fe32bb1e09ea37a8c8a91fb7d7e820491c71803
Merged-In: I7fe32bb1e09ea37a8c8a91fb7d7e820491c71803
2019-10-28 12:37:56 -07:00
Peter Wang
ca01a7ee08 Merge "Add EuiccCardManager.ResetOption to eraseSubscriptions" 2019-10-28 19:32:18 +00:00
Treehugger Robot
149ad21fcd Merge "Add owners for TV related files" 2019-10-28 18:40:38 +00:00
Steven Moreland
2cd23b6a59 ServiceManagerProxy: implement new method
This class is hanging around for UnsupportedAppUsage. Adding additional
method to fix compilation, but it should never be called.

Bug: 135686713
Test: compilation fixed
Change-Id: I58022af86a53239990e057936826d0f1214acc6f
2019-10-28 11:17:15 -07:00
Greg Kaiser
d4dd8b8edf Declare Visualizer::setEnabled() 'final'
We call the virtual method setEnabled() from Visualizer's
destructor.  In the destructor, the virtual binding is not used.
This isn't a problem for any current code, but to future-proof
against a possible future subclass of Visualizer, we declare
this method 'final'.

Test: TreeHugger
Change-Id: I703580b37cc1bf7f411caa723f95a691dff840a5
2019-10-28 08:02:29 -07:00
Shigeki Yokomichi
0335f0916d Fix crash loop due to broken packages.xml around updated-package
Symptom:
Device cannot boot up due to NPE during package scan.

Root Cause:
/data/system/packages.xml is broken with an unexpected <updated-package>
element even though there's no corresponding <package> element.
When a system apk is installed, the system apk is registered
as a <package> element in the packages.xml.
When updated with a newer apk in /data, the data apk is registered as
a <package> and the system apk is moved to <updated-package>.
If a user triggers "Uninstall updates" but the device cannot complete
uninstallation processing due to any critical problem like system
freeze, the package.xml can be broken because the <package> for the
data apk is removed once but the <updated-package> for the system apk
remains wrongly.

Solution:
In this case, this change ignores the inconsistent <updated-package> and
installs the system apk as non-updated system app.

Test: forcibly stop "Uninstall updates" processing with JDB
      as described in b/143251299 and check system restart behavior
Bug: 143251299
Change-Id: I48b6957d19f5d60d08d2e5ba48fa1d7bf42fdcfe
2019-10-28 23:19:33 +09:00
Treehugger Robot
df5cd39198 Merge "Replace framework.jar with framework-minus-apex.jar" 2019-10-28 11:40:09 +00:00
Jiyong Park
c893b46034 Replace framework.jar with framework-minus-apex.jar
framework.jar is now a build-time only library which has private symbols
from framework-minus-apex.jar and public symbols from APEXes. Instead of
framework.jar, framework-minus-apex.jar is installed to the device.

framework-minus-apex is installed as framework.jar because the name is
pretty widespread throughout Android. Keeping the original file name for
the backwards compatibility.

Bug: 139391334
Test: m, inspect the build system.img and check that
system/framework/framework.jar exists
Merged-In: Ia12d5984b011a54bd8ef708d0f552298a6ddec8a

(cherry picked from commit 617a16478b0f5875084e339553b7b96f3a292e03)

Change-Id: I30d5c789c1d67cac7dfe6339f244e66af5114767
2019-10-28 15:33:37 +09:00
Jack Yu
fde6b837f9 Merge "Change Wi-Fi Calling text for SFR France" 2019-10-27 07:20:47 +00:00
Xin Li
b2198fa670 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Ian Kasprzak
1490293aa2 Merge "Ignore FlakyTests in test-mapping." 2019-10-26 20:07:34 +00:00
Yoshiaki Naka
1c5203a65b Add new carrier configuration for GET INPUT command
The characters 0 to 9, *, # and + are accepted in the digit only mode of
GET INPUT/INKEY commands according to the 3GPP/ETSI standard, but only
numeric charactrers 0 to 9 are used in some actual use-cases. It must be
confusing to display all the allowed characters including *, # and + as
the helper text on the input screen in that case, so whether to display
the allowed characters must be configurable.

Bug: 128890104
Test: Confirmed the expected behavior in manual test cases.

Change-Id: I97ed3dd538c55f48eb05dad96e4836a48a295675
2019-10-26 17:44:19 +00:00
Marco Nelissen
0bf6a04b0b Merge "Move Visualizer to libaudioeffect_jni, its only user" 2019-10-26 01:45:57 +00:00
Ian Kasprzak
cc89aa534d Ignore FlakyTests in test-mapping.
(Merged-In tag to prevent merging to qt-r1-dev-plus-aosp and downstream)

Test: N/A
Bug: 142395610

Change-Id: Ib7b9aab429b59fa1fcd9638f4733147a17cbd4ef
Merged-In: Ia2345b03d54deef9bd2f5ed67ae9ce2216507b10
2019-10-25 17:22:05 -07:00
Peter Wang
2ab852d411 Add EuiccCardManager.ResetOption to eraseSubscriptions
Bug: 139474431
Test: on device
Change-Id: Ib8496ed6dbc6179940892de8df7901e84dd67d76
Merged-In: Ib8496ed6dbc6179940892de8df7901e84dd67d76
2019-10-25 14:26:22 -07:00
Marco Nelissen
1a7b415d53 Move Visualizer to libaudioeffect_jni, its only user
This removes libaudioeffect_jni's dependency on libmedia and removes
libmedia's dependency on libaudioutils.

Test: build
Change-Id: I23902cd1cc16b49200f41f79736683c89b9f86f8
Merged-In: I23902cd1cc16b49200f41f79736683c89b9f86f8
2019-10-25 20:35:30 +00:00
Marco Nelissen
04d8813a01 Merge "Add required header_libs" 2019-10-25 19:47:54 +00:00
Mathieu Chartier
cfee28589b Merge "Avoid preloading classes for boot image profiling" 2019-10-25 19:35:00 +00:00
Christopher Tate
0d9a81ce73 Services exit fg when bg-restricted app leaves top
Apps under bg restrictions can still start foreground services while
they are the top/frontmost UI.  However, this was not being reexamined
when the app was no longer the top UI.  This is now fixed:  when an app
under bg restrictions exits the top state, any foreground services it is
hosting are demoted out of the foreground state.  At this point the
service lifecycle is just like any other ordinary service that an app
has left running after it is no longer the active UI:  the service is
stopped by the OS after the standard grace period.

Bug: 139436349
Test: repro app supplied with the bug
Test: foreground use of GPM under bg restrictions
Test: atest CtsAppTestCases:android.app.cts.ActivityManagerProcessStateTest\#testBgRestrictedForegroundService
Change-Id: I6d0e954c961f7c547c1f5d98e3926586f3071bca
Merged-In: I6d0e954c961f7c547c1f5d98e3926586f3071bca
2019-10-25 11:03:06 -07:00
Chen Xu
17518fa149 Merge "move CellBroadcastMessage from telephony-common to app" 2019-10-25 17:28:22 +00:00
Xin Li
d3498e3053 Merge Coral/Flame into AOSP master
Bug: 141248619
Change-Id: Ic0486c8c79d94c9a30efa37676b2f6a94fb7b5fa
Merged-In: Ibe8ff7bdba7a886bd8b91155ae56f087a836981f
2019-10-25 10:27:58 -07:00
Chen Xu
7e902363a6 Merge "make CallerInfo as SystemAPI" 2019-10-25 17:27:45 +00:00
Tom Cherry
4be2934e61 Merge "Remove legacy logger_entry_v* structs" 2019-10-25 16:53:20 +00:00
Tyler Gunn
633e4c3f19 Make Connection.Listener methods package private.
To prevent using these outside of the API surface, making package private
so we don't get tempted to use in the framework.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: Ife3a82371b018b74efbe10e11015526d7aaeb7a9
2019-10-25 07:24:17 -07:00
Howard Chen
7898d33e3a Merge "Use new GsiInstallParams struct" 2019-10-25 07:18:57 +00:00
Mark Chien
634c6a512f Merge "[Tether03] Migrate IpServer into module" 2019-10-25 06:41:49 +00:00
Hai Zhang
af8a6c724f Merge "Add OWNERS for SettingsProvider."
am: 18bece7b32

Change-Id: Ibe8ff7bdba7a886bd8b91155ae56f087a836981f
2019-10-24 14:45:53 -07:00
Yincheng Zhao
02f0815ddc Merge "Adding API in TelephonyManger for updating Fplmns."
am: 32eb91717f

Change-Id: I6f1ec15774320b08238c9338ff849b7528c120a6
2019-10-24 14:38:49 -07:00
Mitch Phillips
33f59669ff Merge "Make libstatslog static-linkage compatible."
am: 871d5592ff

Change-Id: I35ecaee6dada5341d563f01915286324d07ec7f4
2019-10-24 14:35:40 -07:00
Howard Chen
e176c56f6e Use new GsiInstallParams struct
Bug: 139402092
Test: adb shell am start-activity \
            -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
            -a android.os.image.action.START_INSTALL \
            -d file:///storage/emulated/0/Download/system.raw.gz \
            --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
            --el KEY_USERDATA_SIZE 8589934592

Change-Id: I62330ccbe3c863850b545db5e911196d22f518d7
2019-10-24 21:34:43 +00:00
Marco Nelissen
8844f0f8dd Add required header_libs
Test: build
Bug: 143245419
Change-Id: Idff0bf6cde9bc3e568d04c978f388be31963bc02
2019-10-24 21:25:59 +00:00
Hai Zhang
18bece7b32 Merge "Add OWNERS for SettingsProvider." 2019-10-24 21:12:48 +00:00
Yincheng Zhao
32eb91717f Merge "Adding API in TelephonyManger for updating Fplmns." 2019-10-24 20:50:27 +00:00
Mitch Phillips
871d5592ff Merge "Make libstatslog static-linkage compatible." 2019-10-24 20:38:33 +00:00
chenhg
0597d41602 AudioService: fix step rescaling.
When converting UI step (+/-1) into a number of internal units on the
stream alias, the return value is how log to move. The source stream
index shouldn't be considered.

BUG: 137779348
Change-Id: I23d3dbf1394b22f6d65d6478573ffb2bba812a6f
2019-10-24 13:30:59 -07:00
Tom Cherry
d02698938e Remove legacy logger_entry_v* structs
These are obsolete so we move all users to a single format.

Test: build, logging unit tests
Change-Id: I05ebb0b9135c61585ff103d24b785b9f21197257
2019-10-24 10:56:34 -07:00
Hai Zhang
a06f938f66 Add OWNERS for SettingsProvider.
Test: presubmit
Change-Id: I83862af2283b899a99fb313ba2118da45b2d4a1f
2019-10-24 10:51:56 -07:00
Mathieu Chartier
ca31663ab4 Merge "Fix waiting for system server to be running for BootImageProfileTest"
am: 761ce2abac

Change-Id: I597247d864e5b92d734405c87b59ef3282f80cb9
2019-10-24 08:09:56 -07:00
Mathieu Chartier
d3c72db3bb Avoid preloading classes for boot image profiling
Since the clinits may execute methods, we should avoid preloading
classes to avoid executing methods that may not be required. These
samples could cause inaccuracy in the boot image profile.

Test: manual: adb logcat | grep preloadClasses
Bug: 139883463

Change-Id: I5b4568a477724606105196cba010109f80eecec1
2019-10-24 08:04:31 -07:00
Mathieu Chartier
761ce2abac Merge "Fix waiting for system server to be running for BootImageProfileTest" 2019-10-24 14:41:54 +00:00