374057 Commits

Author SHA1 Message Date
Nathan Harold
9ca4d43922 Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID" 2018-06-28 22:05:56 +00:00
Nathan Harold
df54d98be6 Allow Cell Location for SYSTEM_UID and ROOT_UID
This change permits the system uid and root uid to
access cellular location information via the binder.
Previously this was restricted to the phone uid, but
running with uid=system is a privileged situation,
which makes me think this this wasn't intentional.

Also add a few lines of debug code to make issues
in LocationAccessPolicy easier to track down in the
future.

Bug: 110806860
Test: manual - ran with SL4A as SYSTEM_UID and
    verified access to getAllCellInfo.

Merged-In: Ie18be2cd72c49f1859d1434428f82f164bed8756
Change-Id: Ie18be2cd72c49f1859d1434428f82f164bed8756
2018-06-28 19:09:51 +00:00
Michael Wachenschwanz
d02c5d8400 Java side setup and access to Binder Proxy Tracking
Expose Binder Proxy Tracking by Uid from the native side. Enable
 tracking for SYSTEM and killing of any bad behaving uids.

Merged-In: Ifd6d0f30a93fad406417dd83c1495c105bced974
Change-Id: Ifd6d0f30a93fad406417dd83c1495c105bced974
Fixes: 63901963
Test: bit FrameworksCoreTests:android.os.BinderProxyCountingTest
(cherry picked from commit 55182464fb9f6536ee500eac02a031e7b7226fc4)
2018-06-28 22:17:22 +09:00
Nathan Harold
7ee5f2185d Simplify equals() method of ServiceState
For whatever reason, ServiceState used a
somewhat-convoluted check for null and
class type. Updating to use a canonical
and brief approach.

Bug: 8675309
Test: compilation
Change-Id: I0d635067a06093affff478e13c28bbbe2bfda7df
2018-06-27 18:55:49 -07:00
Nathan Harold
b220fde296 Update ServiceState.hashCode()
hashCode() was missing about 10 fields and was
using some unnecessary bespoke logic to generate
hashes for individual fields. This CL simplifies
the hashCode() implementation and adds the missing
fields.

Bug: 8675309
Test: compilation
Change-Id: I1424973b11fcc6480d6f8c83d5fd0eb1b5533c7f
2018-06-27 17:13:03 -07:00
Tyler Gunn
206bacb18b Merge "ImsMultiEndPoint - Sip Notify Change"
am: af228ca978

Change-Id: I49bcddccfa561ee4464ebcb2f8b07612b8e95e65
2018-06-27 15:28:10 -07:00
Nathan Harold
998c416213 Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID" into stage-aosp-master 2018-06-27 20:02:59 +00:00
Tyler Gunn
af228ca978 Merge "ImsMultiEndPoint - Sip Notify Change" 2018-06-27 20:02:37 +00:00
Brad Ebinger
0397b9b65d Merge "Telephony: Introduce a base class for ISMS.aidl."
am: f03b8e2471

Change-Id: I2c155c6bb46baa411f531e411f86efe0e56c20dc
2018-06-27 12:46:39 -07:00
Nathan Harold
2cdcd98379 Allow Cell Location for SYSTEM_UID and ROOT_UID
This change permits the system uid and root uid to
access cellular location information via the binder.
Previously this was restricted to the phone uid, but
running with uid=system is a privileged situation,
which makes me think this this wasn't intentional.

Also add a few lines of debug code to make issues
in LocationAccessPolicy easier to track down in the
future.

Bug: 110806860
Test: manual - ran with SL4A as SYSTEM_UID and
    verified access to getAllCellInfo.

Change-Id: Ie18be2cd72c49f1859d1434428f82f164bed8756
2018-06-27 18:52:15 +00:00
Colin Cross
a12c0f506c Mark installable jars with installable: true
Most jars don't need to be installed on the device.  Instead of
using java_library and java_library_static to distinguish between
them make java_library and java_library_static identical and use
installable: true to identify the few jars that need to be dexed
and installed on the device.

Bug: 110885583
Test: m checkbuild
Change-Id: I579da7c1a712ec4fb49e288e7f3ab369cb75baf4
2018-06-27 11:49:44 -07:00
Rubin Xu
f751657ad8 [automerger skipped] Merge "Support seamless handover between VPN fds."
am: 9916d4b3e8  -s ours

Change-Id: Ieac6b403e5c242f161da56a917e55b07badc888d
2018-06-27 11:27:29 -07:00
Brad Ebinger
f03b8e2471 Merge "Telephony: Introduce a base class for ISMS.aidl." 2018-06-27 18:24:51 +00:00
Tobias Thierer
16de9c5a8a Merge "Track dropping of throws clause in Pattern.java."
am: 251a0cfb78

Change-Id: Icb30c1ffaba63d9f633bf45c9af2a949ddbf1fcd
2018-06-27 11:21:42 -07:00
Rubin Xu
9916d4b3e8 Merge "Support seamless handover between VPN fds." 2018-06-27 16:27:26 +00:00
Treehugger Robot
251a0cfb78 Merge "Track dropping of throws clause in Pattern.java." 2018-06-27 16:01:14 +00:00
Avinash Nalluri
ceaf7226cf Emergency SMS carrier config flag
Allow send sms over ims to emergency number when the device is in
lte/limited lte mode without normal ims registration.
Modem will use emergency ims pdn to submit sms to network.

Change-Id: I5762102c695fe309a4a5b318abccded5c50154e0
Bug: 110462046
2018-06-27 08:46:54 -07:00
Tobias Thierer
5442964205 Merge "TextUtils: track behavior change of Pattern.split() when targeting > 28."
am: b5f35aeaf3

Change-Id: I55ba23bfae8f578eb75a4cbfeb2ed4ad1492867d
2018-06-27 08:14:58 -07:00
Tobias Thierer
b5f35aeaf3 Merge "TextUtils: track behavior change of Pattern.split() when targeting > 28." 2018-06-27 13:53:12 +00:00
Neil Fuller
ca48eb7fa9 resolve merge conflicts of bc38909bf3790331532c329a867d5a22fbf94016 to stage-aosp-master
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ib06f2869e5aa1788c8d5fc281a8565420e93d8f7
2018-06-27 11:40:06 +01:00
Neil Fuller
bc38909bf3 Merge "Prepare for migration to the time detector service" 2018-06-27 08:45:36 +00:00
Nathan Harold
bace6e3132 Update Docstrings for CellSignalStrengthLte
Add comments to the docstrings to indicate optional
values that may not always be reported. Users are
still reporting bugs for missing fields, which we
consider optional. This should clarify which methods
are optional vs mandatory for LTE.

For signal strength, RSRP is mandatory, and TA is
mandatory while in LTE_ACTIVE. RSSNR, RSRQ, and CQI
are all optional.

Bug: 36995487
Test: compilation (docstring-only change)
Change-Id: I05af5d42cbf6836109efe6441e95223e81671534
2018-06-26 17:21:28 -07:00
David Sehr
984fc6eae1 [automerger skipped] Merge "Split fork and specialize in zygote"
am: f40f05229c  -s ours

Change-Id: I3d5162e3967503d85aae73fe6bd37e0f50516b9d
2018-06-26 17:13:55 -07:00
Josh Gao
258513f581 Merge "Fix memory leak in RenderThread::dumpGraphicsMemory."
am: c00dd28164

Change-Id: I788e8747361a5c0e3324aa7ac88951428b5f0829
2018-06-26 17:09:06 -07:00
Ajay Nambi
0bfe9438b1 Telephony: Introduce a base class for ISMS.aidl.
Add a dummy base class implementation for
AIDL APIs defined. Clients can override the
required APIs.

Bug: 73994017
Change-Id: Ifd14e04ae0467a7b963cd993cfd514660f14fa95
2018-06-26 22:54:03 +00:00
Tyler Gunn
6f8fef77de [automerger skipped] Merge "Update onDeregistered docs to make capability change expectations clear."
am: 690f008e3f  -s ours

Change-Id: Ibb2c56554f0df15cf287c90aa1f183674e948f3d
2018-06-26 15:26:09 -07:00
David Sehr
f40f05229c Merge "Split fork and specialize in zygote" 2018-06-26 22:02:16 +00:00
Treehugger Robot
c00dd28164 Merge "Fix memory leak in RenderThread::dumpGraphicsMemory." 2018-06-26 21:38:14 +00:00
Tyler Gunn
690f008e3f Merge "Update onDeregistered docs to make capability change expectations clear." 2018-06-26 21:14:27 +00:00
TreeHugger Robot
3c6186c474 Merge "services.core.unboosted: hidl manager->static_libs" into stage-aosp-master 2018-06-26 20:49:15 +00:00
David Sehr
9a81005e44 Split fork and specialize in zygote
Separate the portions of the zygote jni library that perform forking
from specialization into system_server or app process.  This is a small
step towards separating forking into a pre-launch activity, possibly
with a pool of pre-application processes.

Bug: 68253328
Test: boot and run
Change-Id: I6ce694d9a69bf7d10cf61cd39989091ee9cabd37
Merged-In: I6ce694d9a69bf7d10cf61cd39989091ee9cabd37
2018-06-26 12:50:30 -07:00
Josh Gao
1c300861d2 Fix memory leak in RenderThread::dumpGraphicsMemory.
This would have been a double-close of fd, except we just leak the
FILE* instead.

Test: treehugger
Change-Id: I519366fbcf0eb6f03f79c22abfa2b1b1b493a70a
2018-06-26 12:37:42 -07:00
David Sehr
3937fbb439 Merge "Split fork and specialize in zygote" into stage-aosp-master 2018-06-26 16:34:43 +00:00
Steven Moreland
1f58a288e7 services.core.unboosted: hidl manager->static_libs
Bug: 77307025
Test: boot device w/o hidl libs on boot classpath, no loading
  error

Change-Id: Iae2b0015a29de71c22e6bc31004613bbf4ca971b
2018-06-26 16:07:22 +00:00
Tobias Thierer
a287bfead0 Track dropping of throws clause in Pattern.java.
This is not really an API change because PatternSyntaxException
is unchecked (extends RuntimeException). The behavior has not
changed (PatternSyntaxException can still be thrown).

Bug: 109659282
Test: Treehugger
Change-Id: I5759eee10b27307b68f15fdd6f6f1a258ee01529
2018-06-26 14:48:48 +01:00
Tobias Thierer
3e76c04c96 TextUtils: track behavior change of Pattern.split() when targeting > 28.
Another CL in this topic changes the behavior of String.split() and
Pattern.split() to omit a "" generated by a leading zero-width match.
TextUtils.split() is implemented on top of these methods and therefore
adopts the behavior change by default.

The behavior change only affects apps targeting API versions > 28.

Test: cts-tradefed run singleCommand cts-dev -m CtsTextTestCases \
      -t android.text.cts.TextUtilsTest
Test: cts-tradefed run singleCommand cts-dev -m CtsLibcoreTestCases
Bug: 109659282

Change-Id: I8abe251353f8eacf1429ac9a8e272d50a0944c29
2018-06-26 14:48:47 +01:00
Neil Fuller
325ecf7df4 Merge "Add more behavior to TimeDetectorService"
am: b1fc5a4c7e

Change-Id: Ibbda2d253bf807cc480a4218aa1d898d6737ec7b
2018-06-26 05:14:31 -07:00
Neil Fuller
e01a7adf5a resolve merge conflicts of 55c0a6682574b881b0ccdf2b08fdc4b6c84d1b81 to stage-aosp-master
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ie524607cabc6688911eee7e4f61c50fd406c71f4
2018-06-26 11:55:46 +01:00
Neil Fuller
b3d6abbe6f Prepare for migration to the time detector service
Paves the way for moving more behavior to the time detector
service from the NetworkTimeUpdateService.

The NewNetworkTimeUpdateService is effectively identical to
the OldNetworkTimeUpdateService in this initial commit.

Bug: 78217059
Test: build / boot
Merged-In: Ica9fa9b61c849e034d76c0faae5693b60a4a197f
Change-Id: Ica9fa9b61c849e034d76c0faae5693b60a4a197f
2018-06-26 09:46:32 +01:00
Neil Fuller
b1fc5a4c7e Merge "Add more behavior to TimeDetectorService" 2018-06-26 08:43:55 +00:00
Neil Fuller
55c0a66825 Merge "Minimum viable TimeZoneDetectorService" 2018-06-26 08:34:56 +00:00
Erik Kline
1239734050 Merge "Make auto-upstream the default tethering behaviour"
am: e193298c4a

Change-Id: Ie160bb6422f7a8f218dbf1374fdfadb0b957150d
2018-06-26 01:32:31 -07:00
Treehugger Robot
e193298c4a Merge "Make auto-upstream the default tethering behaviour" 2018-06-26 07:11:02 +00:00
Amit Mahajan
12b08d00b8 Merge "Update comments for TelephonyManager.getUiccSlotsInfo()"
am: 3838ff457e

Change-Id: I46a8a708e949e134b8e4cb05fe315b058ad500fc
2018-06-25 16:31:55 -07:00
Treehugger Robot
3838ff457e Merge "Update comments for TelephonyManager.getUiccSlotsInfo()" 2018-06-25 22:22:25 +00:00
Brad Ebinger
057f582e09 Merge "Fix Possible Deadlock with getFeatureState"
am: 6bebb8418c

Change-Id: I675c116e54d961971d4a32f87dd247cca51b5069
2018-06-25 11:45:32 -07:00
Neil Fuller
4980bbcd30 Add more behavior to TimeDetectorService
The client code now "suggests" time updates
to the time detection service. The current implementation
of the time detection service will validate and set the
device system clock as needed. In future it will ignore
these suggestions if better information is available.

Responsibility for sending the
TelephonyIntents.ACTION_NETWORK_SET_TIME intent has
been moved to the time detection service until it can be
removed or replaced.

The telephony code is still responsible for basic rate
limiting but the majority of the decision logic has been
moved to the service.

There is an associated change in telephony code to switch to
using the server.

Bug: 78217059
Test: atest FrameworksServicesTests:com.android.server.timedetector
Test: atest FrameworksCoreTests:android.util.TimestampedValueTest
Change-Id: I4f7a10ac06b2d32da22689e1ddf309e0a2795f30
2018-06-25 19:34:05 +01:00
Brad Ebinger
6bebb8418c Merge "Fix Possible Deadlock with getFeatureState" 2018-06-25 17:30:02 +00:00
Erik Kline
fc1bde9261 Merge "Prefer default Internet network for upstream tethering."
am: 3580a6a996

Change-Id: I0990d077627aed71b03e7aa40a8acc460448a774
2018-06-25 06:24:22 -07:00
Erik Kline
a78701812f Make auto-upstream the default tethering behaviour
Test: as follows
    - built
    - flashed
    - booted
    - runtest --no-hidden-api-checks frameworks-net
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 110118584
Change-Id: I3af6594cd16ecefa3d4a44902f2138fa635fbae1
2018-06-25 22:10:07 +09:00