438849 Commits

Author SHA1 Message Date
Treehugger Robot
7b2a29361c Merge "Change Tethering package name" 2019-12-19 12:35:49 +00: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
edf7ce4f38 Merge "Revert "Use new UnsupportedAppUsage annotation."" 2019-12-19 10:09:11 +00:00
Junyu Lai
bfc4589d46 Merge "Update interface quota limit when network stats updated" 2019-12-19 09:07:54 +00:00
SongFerng Wang
5bdafbf9ce Merge "[Mainline] decouple ServiceState.getDataNetworkType()" 2019-12-19 08:47:08 +00: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
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
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
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
8283939cec Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-19 02:02:57 +00: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
f5b6267d93 Merge "Add post-call screen API." 2019-12-18 21:10:23 +00:00
Grace Jia
91cec6ee8f Add post-call screen API.
Test: manual
Bug: 135929421
Change-Id: I63043646bb96b8543849c617ce1ccd41a558f24d
2019-12-18 21:07:40 +00:00
Jordan Liu
ac2b27aed1 Merge "Expose Circle and Polygon as SystemApi" 2019-12-18 20:56:22 +00:00
Treehugger Robot
609f65048f Merge "Revert "Deprecate Data Command in Android"" 2019-12-18 19:41:49 +00:00
Brad Ebinger
2499aa4b81 Create new Carrier configuration for separate MMTEL/RCS features
Bug: 111305845
Test: atest FrameworksTelephonyTests; atest CtsTelephonyTestCases
Merged-In: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
Change-Id: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
2019-12-18 11:02:09 -08:00
Chen Xu
9663781a86 Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
(cherry picked from commit 7322e4a7ce0ba5a331df215e48d6f68f2cf890b9)
Merged-in: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-12-18 10:45:00 -08:00
Shuo Qian
6fe660ea86 Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public
Test: build
Bug: 146445404
Change-Id: Ifb1efcb6fb0b870b8dc8caf07103e41e593b1a5f
2019-12-18 18:44:03 +00:00
Daniel Huang
53484a4946 Merge "Add more error codes." 2019-12-18 18:22:08 +00:00
David Su
7381525076 Merge "Fix android.util.CloseGuard sample usage" 2019-12-18 18:19:58 +00:00
Shuo Qian
b179a7fc2f Revert "Deprecate Data Command in Android"
This reverts commit 5c4e7b81b571d11851fd9c63a308e1a910b196b9.

Reason for revert: <b/146461873>

Bug: 146461873

Change-Id: I8bd10333f2014e52e1d3122c5b9dc895a5d6c658
2019-12-18 17:27:21 +00:00
satayev
1385dca8f6 Merge "Use new UnsupportedAppUsage annotation." 2019-12-18 15:32:40 +00:00
Treehugger Robot
6748f4cc07 Merge "Add Light/Dark theme for bugreport warning dialog" 2019-12-18 14:50:30 +00:00
Treehugger Robot
591e1fcfcf Merge "Fix bugreport warning dialog" 2019-12-18 14:39:29 +00:00
Abhijeet Kaur
b7518de1b4 Add Light/Dark theme for bugreport warning dialog
Previously added "android:theme="@android:style/Theme.
DeviceDefault.DayNight" to the application tag in this manifest file to
enable dark theme for bugreport info.
BugreportWarningActivity is nested within this application tag, so
assumed all the child tags to have DayNight theme.

android:theme="@android:style/Theme.DeviceDefault.Dialog.Alert" shows
the dialog always as Dark mode.

android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"
shows the dialog always as Light mode.

This bug is not easily notice-able as "Do not show this again" checkbox
is checked by default for this dialog. Unless one wipes data partition,
this dialog doesn't come up even after flashing new builds.

Bug: 141663298
Bug: 146400225
Test: Normal (light mode) Trigger interactive/full/wifi bugreport.
      Click on bugreport finished "Share" notification.
      Light mode warning dialog should appear. (with white background)
      Uncheck the "Do not show this again" checkbox to test with dark
      mode.
Test: Go to Settings. Turn on Dark theme.
      Trigger interactive/full/wifi bugreport.
      Click on bugreport finished "Share" notification.
      Dark mode warning dialog should appear. (with dark grey background)

Merged-In: I200c592608261665e4c2416303f573522c6bc59a
Change-Id: I200c592608261665e4c2416303f573522c6bc59a
(cherry picked from commit 43bbe8a2fcce4bddfb59b8545e55ed328315a064)
2019-12-18 14:09:44 +00:00
Abhijeet Kaur
6a8f0fb9a5 Fix bugreport warning dialog
This bug was introduced when fixing dark theme for bugreport dialogs.

Bug: 135446537
Bug: 146400225
Test: manually (both in light and dark theme)
Merged-In: Ib8c16d068c00632d009033c2eab7d2d6cb7e4eea
Change-Id: Ib8c16d068c00632d009033c2eab7d2d6cb7e4eea
(cherry picked from commit f90de9746b119d2bc540b563ac7cc46fa7957366)
2019-12-18 14:09:17 +00:00
SongFerngWang
40f04301b6 [Mainline] decouple ServiceState.getDataNetworkType()
Use NetworkRegistrationInfo.getRegistrationState() to
replace serviceState.getDataNetworkType() inside getCombinedServiceState

Bug: 146473838
Test: atest frameworks/base/packages/SettingsLib/tests/robotests/\
src/com/android/settingslib/UtilsTest.java (PASS)

Change-Id: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
Merged-In: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
2019-12-18 21:08:52 +08:00
Artur Satayev
a5264903e2 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv \
      git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
2019-12-18 12:07:36 +00:00
Treehugger Robot
ea0124cddf Merge "Changes in OWNERS of app integrity component." 2019-12-18 11:31:39 +00:00
Remi NGUYEN VAN
f705ea69dc Fix parceling of LinkProperties Inet6Addr
IPv6 addresses parceled for DNS servers, private DNS servers, PCSCF
servers were parceled without the scope. This causes issues with
link-local DNS servers.

Test: atest FrameworksNetTests
Bug: 145181158
Change-Id: I0ed24e51d4d0656f4a1f932b5e9f646b35b4b971
2019-12-18 19:52:30 +09:00
Neil Fuller
c5725ad0a7 Merge "Tidy up changes for TimeZoneDetectorStrategy" 2019-12-18 10:00:17 +00:00
Treehugger Robot
f65e0e3181 Merge "framework is not available to APEXes" 2019-12-18 08:24:49 +00:00
Treehugger Robot
e6d84c0d97 Merge "Don't depend on annotation processors XmlWriter." 2019-12-18 08:17:32 +00:00
Jiyong Park
6316f348e7 Merge "unique_fd is passed by value in AIDL interfaces" 2019-12-18 06:14:38 +00:00
danielwbhuang
7e4b4629d0 Add more error codes.
1. Add error codes for setPreferredOpportunisticDataSubscription and updateAvailableNetworks
2. Use Compatibility Framework to remap them.

Test: run atest.
1.atest TelephonyManagerTest#testPreferredOpportunisticDataSubscription
2.atest TelephonyManagerTest#testUpdateAvailableNetworks

Bug: 130595455
Merged-In: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
Change-Id: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
2019-12-18 06:13:51 +00:00
Treehugger Robot
65303aa385 Merge "vibrator: Support Always-On Effects" 2019-12-18 06:10:18 +00:00