439331 Commits

Author SHA1 Message Date
Chen Xu
aec1aa8d5d move carrierconfig key disable_severe_when_extreme_disabled to res
Bug: 135956699
Test: Manual
Change-Id: Ib12ff430c5781044ec0b36ac9b930224fc410c95
(cherry picked from commit 49b3b1680d9eebfafa9d7e3b58dc4877decf0b76)
Merged-in: Ib12ff430c5781044ec0b36ac9b930224fc410c95
2019-12-19 10:56:03 -08:00
Jiyong Park
d1dfebd9aa Merge "Add updatable_media_stub to framework"
am: 63bf3e4d98

Change-Id: Ie810db1c2a5906946318f925d7d478b73b4cd651
2019-12-19 10:12:27 -08:00
Chen Xu
340397814a Merge "Expose ModemActivitiyInfo to system API"
am: 5910f6dd65

Change-Id: Iaec1dc20a01c5a061d3835a8a82f6d2c205aa004
2019-12-19 10:08:19 -08:00
Jiyong Park
63bf3e4d98 Merge "Add updatable_media_stub to framework" 2019-12-19 18:04:54 +00:00
Chen Xu
5910f6dd65 Merge "Expose ModemActivitiyInfo to system API" 2019-12-19 18:01:46 +00:00
Marco Nelissen
c17cbfbb85 Link with actual headers instead of symlinks
Test: build
Change-Id: Ia17176fc4bfd099db5faad2b5f9b9d99a3407d2d
2019-12-19 09:37:36 -08:00
Nikita Ioffe
717dbbf1a4 Add an API to tell whenever device supports userspace reboot
If device doesn't support userspace reboot then call to
PowerManager.reboot("userspace") will throw an
UnsupportedOperationException.

For the case of upgrading devices, Treble enforces that previous vendor
image should work with the new system image. Since userspace reboot
requires services to be stopped and restarted cleanly, which upgrading
devices might not be able to comply with, we need to have an API to
distinguish between devices that support userspace reboot and the ones
that do not.

Test: atest PowerManagerTest
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 138605273
Bug: 135984674
Change-Id: I8303f43ab29499eb2995f0256854c787055d9560
2019-12-19 17:26:19 +00:00
Joe Onorato
e7fad0b026 Merge "Always use a positive value for timestamp"
am: bfe66d9800

Change-Id: I2ef63775a67e5d7810934025343e6cf5e7bb3aef
2019-12-19 09:04:29 -08:00
Joe Onorato
bfe66d9800 Merge "Always use a positive value for timestamp" 2019-12-19 16:49:08 +00:00
Victor Chang
dbd6c5e267 Add per-file ownership to libs/androidfw/LocaleDataTables.cpp
Test: treehugger
Change-Id: I61366a576e75137cef2b6607cd860cfd16c23869
2019-12-19 15:55:52 +00:00
markchien
6d06f6d51a [Tether13] Move TetheringManager into framework
Move tethering out of ConnectivityService. All client would
use TetheringManager to talk with TetheringService directly.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
Merged-In: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
2019-12-19 20:53:06 +08:00
markchien
1db6c20884 [Tether14] Add tethering-client jar to whitelist
Allow putting tethering-client into bootclass path.

Bug: 144320246
Test: -build, flash, boot
Change-Id: I42c0f340d11045fbd8ae99fa60a467e643386eff
Merged-In: I42c0f340d11045fbd8ae99fa60a467e643386eff
2019-12-19 12:44:45 +00:00
markchien
f44a25f10d Merge "Change Tethering package name"
am: 7b2a29361c

Change-Id: If48262b77656a67d64888a17decc5b2c307f6bc9
2019-12-19 04:38:36 -08:00
Treehugger Robot
7b2a29361c Merge "Change Tethering package name" 2019-12-19 12:35:49 +00:00
Jack Yu
4d7d5c2c24 Merge "Do not call to SecureElement Service if device does not support any OMAPI readers"
am: 98a96a40c6

Change-Id: I94d624418afcf27a4c3fad02d19f94c5da7d6123
2019-12-19 04:03:10 -08:00
Treehugger Robot
98a96a40c6 Merge "Do not call to SecureElement Service if device does not support any OMAPI readers" 2019-12-19 11:29:08 +00:00
Neil Fuller
09e8b7d841 Add new permissions
This adds new permissions required when setting the time /zone in
response to telephony signals and when setting the time / zone manually
along the lines of "principle of least privilege".

The intent is to later restrict the number of distinct processes that
can manipulate the device system clock / time zone property directly so
that all time changes go through the time / time zone detector services,
which can enforce policy, log the reasons for changes, and so on.

Bug: 140712361
Test: atest com.android.server.timedetector
Change-Id: Iabd3a5f449ad2ef2b6581475ef2535a4a8a88ef9
2019-12-19 11:11:48 +00:00
Austin Wang
019286764f Merge "Revert "Use new UnsupportedAppUsage annotation.""
am: edf7ce4f38

Change-Id: I67d7d5a29882c7e8f935ddbc24b5d544bd57be9e
2019-12-19 03:01:35 -08:00
Austin Wang
edf7ce4f38 Merge "Revert "Use new UnsupportedAppUsage annotation."" 2019-12-19 10:09:11 +00:00
Junyu Lai
a992b3aa83 Merge "Update interface quota limit when network stats updated"
am: bfc4589d46

Change-Id: Ia1425a068fbe372352c321c0416ff3335c8e4803
2019-12-19 02:02:05 -08:00
Junyu Lai
bfc4589d46 Merge "Update interface quota limit when network stats updated" 2019-12-19 09:07:54 +00:00
SongFerng Wang
058b6f80cd Merge "[Mainline] decouple ServiceState.getDataNetworkType()"
am: 5bdafbf9ce

Change-Id: Ib465b805a806575f32d5f5ed173e8da3e5aa951a
2019-12-19 01:03:22 -08:00
SongFerng Wang
5bdafbf9ce Merge "[Mainline] decouple ServiceState.getDataNetworkType()" 2019-12-19 08:47:08 +00:00
Aaron Huang
8d2b81869c Merge "Add LinkProperties methods to system APIs"
am: 4dba00e007

Change-Id: Ib6cc8dff09ed97bdcf8504f8318461e742c34f7a
2019-12-19 00:06:31 -08:00
Aaron Huang
4dba00e007 Merge "Add LinkProperties methods to system APIs" 2019-12-19 08:01:58 +00:00
Benedict Wong
19e3f2b962 Add fcntlInt to public API
In order to allow sockets to be set as non-blocking after the creation,
fcntlInt must be exposed.

Test: new tests added, passing
Change-Id: Ib9951b5391cafda2b88c25f0cb7245b04a1adfb0
2019-12-18 23:40:06 -08:00
easoncylee
1aa15ffa25 Convert apct/framework/window_manager_presubmit-cloud-tf to Test Mapping Suite.
This CL is to convert CF presubmit tests to run in Test Mapping suite.
It has been verified that the test coverage is the same as the original
ATP config.

Bug: 145165552
Bug: 146392848

Test: TreeHugger
      atest FrameworksServicesTests
      atest FrameworksCoreTests
      atest WmTests
      atest FrameworksMockingCoreTests

Change-Id: I30b59e4e51897d222a1580bef89491e41865c06a
2019-12-19 06:55:24 +00:00
Aaron Huang
adfdf4da4f Make MatchAllNetworkSpecifier constructor @SystemApi
Bug: 135998869
Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: Ifcd9ad2916c696c99b8fa13632a302d67f4cb58c
2019-12-19 14:51:15 +08:00
Austin Wang
a63a2c0130 Revert "Use new UnsupportedAppUsage annotation."
This reverts commit a5264903e22bc741add895133474ea13a370de4c.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269

Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
2019-12-19 06:38:19 +00:00
Suren Baghdasaryan
215e1d5e27 Merge "Include KReclaimable meminfo field into getMemInfo results"
am: f61d2347c0

Change-Id: I9ee7de7b744100409475e7401a6ddede1c1cdbad
2019-12-18 22:03:31 -08:00
joker.yang
6955f0c97e Always use a positive value for timestamp
on go device when try to get timestamp, the value over-followed sometimes
as a result, GtsIncidentManagerTestCases would fail due to a negative timestamp

Bug: 142513252
Change-Id: I7d5e701bb8bf4e788a718e093681f97b95cb8551
2019-12-18 21:31:01 -08:00
Suren Baghdasaryan
f61d2347c0 Merge "Include KReclaimable meminfo field into getMemInfo results" 2019-12-19 05:25:38 +00:00
markchien
5a9d9f6935 Change Tethering package name
".apex" is easy to confuse.
Rename as below:
apex: com.android.tethering.apex -> com.android.tethering
apk: com.android.tethering -> com.android.networkstack.tethering

Bug: 146471733
Test: build

Change-Id: I2c7647abb996539a3af6cfe0e0214a5e8927c0d6
Merged-In: I2c7647abb996539a3af6cfe0e0214a5e8927c0d6
2019-12-19 13:06:50 +08:00
Mark Chien
b2384e4850 Merge "Add TETHER_PRIVILEGED permission to shell for CTS test."
am: 30642b395c

Change-Id: I5619cdb78e5be68a177089f7dfefdb9692c95a5c
2019-12-18 21:05:05 -08:00
Mark Chien
30642b395c Merge "Add TETHER_PRIVILEGED permission to shell for CTS test." 2019-12-19 04:59:02 +00:00
waynema
3a25927a58 Remove tlsFingerprints init value
Initializing the value is no longer necessary because ResolverParamsParcel has
 a default value now

Bug:146100043
Test: FrameworksNetTests pass
Change-Id: Ieb151c0cbb330d25f887cbd2eba9db392699d36e
2019-12-19 11:39:44 +08:00
Remi NGUYEN VAN
50fb44e776 Merge "Fix parceling of LinkProperties Inet6Addr"
am: 7382f03d58

Change-Id: I7e4de0ecf06d34f050a881250755c8c0456269fc
2019-12-18 19:12:04 -08:00
Remi NGUYEN VAN
7382f03d58 Merge "Fix parceling of LinkProperties Inet6Addr" 2019-12-19 03:07:43 +00:00
Jiyong Park
025e56e7de Add updatable_media_stub to framework
The module framework is now a build-only library whose purpose is to
provide hidden APIs from the non-updatable part of the platform and APIs
from the modules. Merging updatable_media_stub to framework, like the
stub libraries from other modules.

Bug: N/A
Test: m

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: Ib627523aab44b7c41d27d70c6ae34cda5dc2e27c
(cherry picked from commit 92721349d9ec475b2df3a08775fde0bb3c11ffde)
Change-Id: Ib627523aab44b7c41d27d70c6ae34cda5dc2e27c
2019-12-19 11:57:07 +09:00
Jiyong Park
2d04b3dec6 Hide com.android.server package with @hide javadoc tag
Metalava currently doesn't respect @Hide annoation in package statement.
Use the old @hide javadoc tag there temporarily until the problem is
fixed.

Bug: 146466118
Test: m
Test: m after adding
@SystemApi(client=MODULE_LIBRARIES,client=SYSTEM_SERVER) to some of the
classes under frameworks/base/services

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: I4af7380917fd2808bd6774b86fd4991485d6bfc6
(cherry picked from commit 5141f3790efba0bb5e3a0843038ddcf3b11b0339)
Change-Id: I4af7380917fd2808bd6774b86fd4991485d6bfc6
2019-12-19 11:52:33 +09:00
Jiyong Park
5ed5a04385 Add more enums for the client and process attributes of SystemApi
For the client attribute, we have
- MODULE_APPS for representing APKs implementing modules which are
considered part of the platform
- MODULE_LIBRARIES for representing jars inside modules.

For the process attribute, we have
- SYSTEM_SERVER for representing the system_server process.

For example, @SystemApi(client=MODULE_LIBRARIES,process=ALL) actually
means that the API is meant to be available for classes in the
bootclasspath but not to the classes from the app classloader.

Bug: 140202860
Test: m

Exempt-From-Owner-Approval: cherry-picked from internal

Merged-In: Iba6a564a0967e4d109164849ee6d6500d46469de
(cherry picked from commit 88d5e494c48318c2de047511ea7494428e4aeb1e)
Change-Id: Iba6a564a0967e4d109164849ee6d6500d46469de
2019-12-19 11:49:39 +09:00
Brad Ebinger
8d2ebed0cb Merge "Create new Carrier configuration for separate MMTEL/RCS features"
am: 8283939cec

Change-Id: Ib876abba381b698f921111af97477f24f1fa4349
2019-12-18 18:10:06 -08:00
Brad Ebinger
8283939cec Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-19 02:02:57 +00:00
Jayachandran Chinnakkannu
2bebf8f83b Merge "Expose ACTION_NETWORK_SET_TIME as system API"
am: d3adef0662

Change-Id: Ia6408cb1afab5df22d10fcbe869cdd1999d0deaf
2019-12-18 16:33:13 -08:00
Yifan Hong
12ebf362b4 Delete VINTF compatibility checks during OTA.
Such checks uses old libvintf to parse new VINTF metadata, which is not
supported. The check is now moved to OTA package build time, so there is
no need to check it on the device.

Test: builds
Bug: 139300422
Change-Id: Ifaec06b5298f698958e5727316bf661d1960d0aa
2019-12-18 16:30:07 -08:00
Jayachandran Chinnakkannu
d3adef0662 Merge "Expose ACTION_NETWORK_SET_TIME as system API" 2019-12-19 00:24:57 +00:00
Suren Baghdasaryan
5f8e17b3ef Include KReclaimable meminfo field into getMemInfo results
With new KReclaimable stat available in /proc/meminfo include it in
getMemInfo results so that it can be accounted in dumpsys meminfo reports.

Bug: 138148041
Test: dumpsys meminfo
Change-Id: Id475fcc0a63c6fc12ea64e08cec5cd24c83848a5
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-12-18 14:55:41 -08:00
Elliott Hughes
241393a30b Add AConfiguration_getScreenRound.
This was actually added in M, but because it wasn't in the version map
(and there's no CTS test) it's not actually reliably available until
next year...

Bug: https://issuetracker.google.com/146458518
Change-Id: I5eed970118b627c7e74800f04751a07ce64d86da
2019-12-18 14:30:46 -08:00
Grace Jia
1ad17b6ded Merge "Add post-call screen API."
am: f5b6267d93

Change-Id: I9445a99c54489706dfa560dd61a83346e3427027
2019-12-18 13:32:53 -08:00
Jordan Liu
66cd02ff4e Merge "Expose Circle and Polygon as SystemApi"
am: ac2b27aed1

Change-Id: I1a04dfca879c9ad978b056a8703bccebcda21f39
2019-12-18 13:30:36 -08:00