439825 Commits

Author SHA1 Message Date
Hall Liu
eb7a2ad408 Add call barring constants to ImsUtImplBase
Add call barring constants to ImsUtImplBase in order to expose them in
the system API surface.

Fixes: 147733594
Bug: 146834818
Test: build
Change-Id: Ieb701625b1ecf858d67648f5bb4c87f3e87c1f73
2020-01-16 10:25:59 -08:00
Hall Liu
3b98950a2c Merge "Revert submission" 2020-01-16 18:13:36 +00:00
Sarah Chin
f63f4dac76 Expose TelephonyManager constants as SystemApi
CARD_POWER_DOWN, CARD_POWER_UP, CARD_POWER_UP_PASS_THROUGH

Test: lunch && make && make doc-comment-check-docs --> no compile errors
Bug: 147611125
Change-Id: I2329e99ab7fc12ca71e057e2d5c639c43d4a6dd5
2020-01-16 16:10:58 +00:00
Treehugger Robot
592266cbf1 Merge "Handle ParcelableException instead of crashing system server" 2020-01-16 13:08:17 +00:00
Treehugger Robot
858151066a Merge "Make PreciseDataConnectionState constructor System API" 2020-01-16 12:38:38 +00:00
Treehugger Robot
03e365f649 Merge "Improve DSU log and notification message" 2020-01-16 12:15:26 +00:00
Mohammad Samiul Islam
665838e7b1 Handle ParcelableException instead of crashing system server
Unhandled exception is causing system server to crash.

Bug: 146790672
Test: builds successfully
Change-Id: Ibfe53ee0309dcec6fd3b24f8b67fcb78f5ce7fd5
Merged-In: Ibfe53ee0309dcec6fd3b24f8b67fcb78f5ce7fd5
2020-01-16 12:11:05 +00:00
Nikita Ioffe
c7aa11d29e Merge "Add shell commands to start checkpoint/check it is supported" 2020-01-16 12:10:47 +00:00
Anton Hansson
85bb788795 Merge "Revert "Add method to enforce READ_PRECISE_PHONE_STATE permission"" 2020-01-16 09:25:42 +00:00
Anton Hansson
0153dfa360 Revert "Add method to enforce READ_PRECISE_PHONE_STATE permission"
Revert "Add method to enforce READ_PRECISE_PHONE_STATE permission"

Revert submission 1205361-ENFORCE_PRECISE_PERMISSION

Reason for revert: Broke many internal targets
Reverted Changes:
I852098ffb: Add method to enforce READ_PRECISE_PHONE_STATE per...
Ib542a5e2f: Add method to enforce READ_PRECISE_PHONE_STATE per...

Change-Id: I71413a32c7c2299614ec304eba424024000e0748
2020-01-16 09:07:47 +00:00
Taesu Lee
27e67c2eb0 New system API to create SMS PDU and expose copyMessageToIcc()
Expose copyMessageToIcc() with ACCESS_MESSAGES_ON_ICC permission and new
getSmsPdu() and getDeliverPdu() for both 3GPP and 3GPP2 are added for
use by TelephonyProvider.
It includes cleanup documentations for SMSC and getSubmitPdu() as well.

Test: Manual

Change-Id: I0bed6a961412c89025d5c70f59fef5cd163cbfbf
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 17:35:09 +09:00
Taesu Lee
ade283c436 Cleanup code and documentation for SMS EF records
Bug: 145683032
Test: Manual

Change-Id: Ide03fb636249e4609a7e133320f415ed29984086
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 16:24:18 +09:00
Paul Hu
3950a24dca Merge "Replace CONNECTIVITY_INTERNAL in SystemUI" 2020-01-16 07:23:17 +00:00
Jeongik Cha
e4ac0ac9ad Move SystemUI to /system_ext
we plan to forbid hidden API in product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Test: atest SystemUITests
Exempt-From-Owner-Approval: cherry-pick from internal
Change-Id: I54f86496d4a0045af3576091cce00e5cd285b4f8
Merged-In: I54f86496d4a0045af3576091cce00e5cd285b4f8
2020-01-16 06:50:41 +00:00
paulhu
f53b338e63 Remove CONNECTIVITY_INTERNAL permission
After check the usage of those apps who declared
CONNECTIVITY_INTERNAL permission, they don't access any API which
protected by CONNECTIVITY_INTERNAL. And CONNECTIVITY_INTERNAL
has been removed from their AndroidManifest.xml. So remove the
redudant permission from privapp-permissions-platform.xml.

Bug: 32963470
Test: build, flash, boot to home w/o any permission problem.
Change-Id: I3f31d16163e359b0b16f06129452a758ea149fc1
2020-01-16 14:33:38 +08:00
Jimmy Chen
151384dda4 p2p: revise tethering handler for shared group interface support
When leaving a group, all information are erased and no group interface
is passed to tethering service.
For separate group interface, tethering could be stopped
on p2p group interface removed. For shared group interface,
i.e. management interface and group interface share one
interface, ex. p2p0, tethering has no chance to be stopped since management
interface won't be removed after leaving a group.

Bug: 141382930
Test: atest FrameworksNetTests
Test: atest FrameworksWifiTests
Test: atest TetheringTests
Change-Id: Ib611018b67c76ff79c7e6658136721090feb145b
2020-01-16 14:33:32 +08:00
Po-Chien Hsueh
bcf2adb424 Improve DSU log and notification message
Improve DSU installation service's status log message. And, use
Notification.BigTextStyle for DSU notification message.

Bug: 132924741
Test: Run DSU installation
Change-Id: I9e821edfeff88a1f4084a005de3e0f4264338996
2020-01-16 13:52:57 +08:00
Treehugger Robot
57726b758e Merge "TetheringTests: Stop using @hide Wifi P2P APIs" 2020-01-16 05:51:49 +00:00
Brad Ebinger
27330071ec Expose ImsFeature#getFeatureState as @SystemApi
Bug: 147726372
Test: atest CtsTelephonyTestCases:ImsServiceTest
Change-Id: I35af8028e3d7139a41bdf29475631ae4794a2655
2020-01-15 21:38:04 -08:00
Howard Chen
69d181aecc Merge "Support multiple DSU installations" 2020-01-16 05:33:10 +00:00
markchien
8fad208905 add java_api_finder plugin to tethering module
This is used to generate java APIs used by tethering module

Bug: 145490751
Test:  m com.android.tethering RUN_ERROR_PRONE=true

Change-Id: I97c26e3dcdf4f4c5017f1df582a16335c613f8dd
2020-01-16 13:07:36 +08:00
Calin Juravle
ca98e2866e Merge "[DexManager] Fix off-by-N error in DexManager when reporting dex loads" 2020-01-16 03:14:05 +00:00
Dan Zimmerman
39b442cb61 [DexManager] Fix off-by-N error in DexManager when reporting dex loads
In this loop the continue statement skips over incrementing
dexPathIndex. In effect the classloader context that reported for a
given dex file may be incorrect (specifically in the situation when the
user loads a primary dex file and a secondary dex file in the same
ClassLoader)

Bug: 147089377
Test: atest com.android.server.pm.dex.DexManagerTests
Change-Id: I7d3df507787f758537625b702131a2f4f76190e6
2020-01-16 03:13:50 +00:00
Rambo Wang
1be136dac6 Merge "Add method to enforce READ_PRECISE_PHONE_STATE permission" 2020-01-16 03:05:06 +00:00
Zongheng Wang
7a837f162f Merge "Create a new API to decode Sms PDU" 2020-01-16 02:54:40 +00:00
Allen Su
6489e5328f Merge "[RCS] Add triggerType for onNotifyUpdateCapabilites" 2020-01-16 02:45:40 +00:00
Shuo Qian
35c3b460a6 Make PreciseDataConnectionState constructor System API
TelephonyRegistry is using the deprecated constructor of
 PreciseDataConnectionState; it should use the other constructor of
PreciseDataConnectionState, which is not deprecated; Also need to make
that constructor System API for Mainline.

Test: make update-api (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Bug: 146793835
Merged-In: I83f98aa8b818f654d497867cd16e8afa987114fc
Change-Id: I83f98aa8b818f654d497867cd16e8afa987114fc
2020-01-15 18:32:40 -08:00
hughchen
299e6cb939 Update connect() api
Use BluetoothAdapter.connectAllEnabledProfiles() to connect all
individual profile once instead of connect each individual profile.

Fixes: 141582844
Test: manually
Change-Id: I8d58aceed87a2df212d4097362369c60a8ec0c08
Merged-In: I8d58aceed87a2df212d4097362369c60a8ec0c08
2020-01-16 10:26:47 +08:00
Harpreet \"Eli\" Sangha
9adedac3b9 Vibrator: Have Always-On Check DND/LowPower Modes
Bug: 145961380
Test: Verify always-on settings changes via dumpsys.
Change-Id: I201f04ef1c2bdf7f10961e8c3d9b47cb7a815f11
Merged-In: I201f04ef1c2bdf7f10961e8c3d9b47cb7a815f11
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-01-16 02:11:20 +00:00
Mingming Cai
3149662515 Merge "Migrate convertHalCellIdentityToCellIdentity()" 2020-01-16 02:10:57 +00:00
Hall Liu
b9cf663d30 Revert submission
Reason for revert: Behavior incompatible with Pixels 3 and 3a on VZW

Change-Id: If0b1cef1f9d3318022f3bf9749bbcb1ee1399c91
2020-01-15 18:02:41 -08:00
Treehugger Robot
8478802be5 Merge "Remove phoneId from ImsUceManager" 2020-01-16 01:33:03 +00:00
Yi Kong
8c794f129c Merge "Revert "Disable the new pass manager for libhwui"" 2020-01-16 01:11:33 +00:00
Treehugger Robot
948c4086af Merge "Create an until function to check location permission" 2020-01-16 00:30:39 +00:00
Chris Wailes
ce55f80e17 Fixed an issue Zygote initialization.
An assignment to a flag and a call to a function that uses that flag
were in the wrong order.

Bug: 146614089
Test: Treehugger
Change-Id: If046aa62084892b8dae10497f15cf4c685d226db
Merged-In: If046aa62084892b8dae10497f15cf4c685d226db
2020-01-15 16:20:45 -08:00
Chris Wailes
d8ef116993 Improved timekeeping logic for USAP Pool refill mechanism.
This patch makes two changes to increase the reliability of the USAP
pool refill mechanism.  The first is to change the storage type of the
result of an expression from int to long.  This will help avoid
potential overflow issues.

The second change mitigates the impact of the non-monotonic system clock
having its value changed.  If the clock goes backwards in time past when
the initial event triggered the refill delay, the delay will now be reset.

Bug: 146614089
Test: Treehugger
Change-Id: Ic6f65de51757803b5ba95975bab3b9322a91c837
Merged-In: Ic6f65de51757803b5ba95975bab3b9322a91c837
2020-01-15 16:20:36 -08:00
Chris Wailes
b28db4abbc Resets the refill action/timing info after a pool fill event.
Bug: 132794985
Bug: 146614089
Test: m & flash & launch more apps than USAPs in the pool
Change-Id: I9ee74d76692fa8aeba9c70765b3e8f98ea9105bc
Merged-In: I9ee74d76692fa8aeba9c70765b3e8f98ea9105bc
2020-01-15 16:20:29 -08:00
Chris Wailes
eabbf8720c Make the USAP Pool refill delay configurable.
This patch fetches the USAP pool refill delay value from device_config
instead of hardcoding it.

Bug: 131362095
Bug: 146614089
Test: Build and launch 10+ apps successfully
Change-Id: Idfeb30fa62fa296492da211b2b44902ff4f99b18
Merged-In: Idfeb30fa62fa296492da211b2b44902ff4f99b18
2020-01-15 16:20:23 -08:00
Chris Wailes
7e9f83e18a Re-adds a trace point that was accidentally removed.
Test: Built and collected a trace to verify slice ended
Bug: 146614089
Change-Id: Ic75d65fc7b2a417fc3a58c2df8ec9deb795fb418
Merged-In: Ic75d65fc7b2a417fc3a58c2df8ec9deb795fb418
2020-01-15 16:20:16 -08:00
Chris Wailes
9091be3eb7 Moved some thread priority changes.
The previous place I had moved these changes resulted in runtime threads
being created at the wrong priority.  This patch moves the calls to the
correct location.

Test: atest CtsJvmtiRunTest924HostTestCases
Bug: 146614089
Change-Id: Iad2e17cd137eab81c595cb6816608a36b009da8b
Merged-In: Iad2e17cd137eab81c595cb6816608a36b009da8b
2020-01-15 16:20:07 -08:00
Chris Wailes
80993a6e60 Adjust Java Language thread priority in new processes.
Previously init started the Zygote with -20 nice value and then
immediately switched it to 0 in ZygoteInit.main so that new applications
forked from the Zygote have the correct Java Language thread priority.
This patch delays this priority change so that it only affects the new
processes and not the priority of the Zygote.

Test: m & flash & check ps
Bug: 146614089
Change-Id: Id00d0cfd642f02640c40b6e7b2aa8933a320b60c
Merged-In: Id00d0cfd642f02640c40b6e7b2aa8933a320b60c
2020-01-15 16:20:00 -08:00
Chris Wailes
0b2fbfcf6f Adjusts the USAP pool refill mechanism.
This patch adjusts the USAP pool refill mechanism so that it is less
disruptive to launching applications.  Refill events are now delayed
by several (3) seconds if delaying wouldn't cause the pool to be below
the minimum population size.

This patch also adjusts the process priorities for the USAPs and other
processes spawned from the Zygote so that they behave better in the
context they are spawned in.

Bug: 131362095
Bug: 146614089
Test: booted & launched apps & checked logs
Change-Id: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
Merged-In: I7328f304c9b744cfdbfbdbe522a5f9aeea5233bb
2020-01-15 16:19:53 -08:00
Chris Wailes
82cde3eaed Change USAP name to application name as soon as possible.
This patch changes the location where the process's name is changed to
that of the application being launched.  It also attempts to use the
package name if the "nice name" is missing.

Test: m & flash & boot
Bug: 146614089
Change-Id: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
Merged-In: Id3a3d0b2b66d31c48274f8a986e86e9ed1d28f34
2020-01-15 16:19:46 -08:00
Qingxi Li
cd4a08fb4a Create an until function to check location permission
This util function will check whether the app has location permission
and whether the location mode is enabled for the users. This function
will be used by both connectivity service and wifi networks.

Bug: 142072839
Test: atest ConnectivityUtilTest
Change-Id: I5558ed04e5ef28033a1c649f5491f2f15aa63557
Merged-In: I5558ed04e5ef28033a1c649f5491f2f15aa63557
2020-01-15 15:24:01 -08:00
Hall Liu
719211525f Merge "Add additional APIs in Call for Bluetooth" 2020-01-15 22:58:56 +00:00
Muhammad Qureshi
d40f090891 Merge "Add lmkd atoms to lmkd log_from_module" 2020-01-15 22:52:52 +00:00
Yi Kong
2d969e4dfd Revert "Disable the new pass manager for libhwui"
This reverts commit 304d4bd65dfc8cf77d30115c5650e3de1aef544a.

The new pass manager is not the root cause of non-determinism.

Change-Id: I5c0c44bbefd7f3c0442422f5c718e77b1f18f139
2020-01-15 14:46:57 -08:00
Brad Ebinger
bec99bade4 Remove phoneId from ImsUceManager
ImsUceManager does not need to be created per phoneId, since
the UCE service is created per subscription in RcsStackAdaptor.

Fixes: 147319232
Test: manual; bring up/down RcsService on a MSIM device
Change-Id: If9f89f8f083197c68900a6c1a51837ce0dd0b4a0
2020-01-15 22:21:10 +00:00
Sarah Chin
f1de6ef70b Merge "Remove @hide for CarrierConfigManager constants" 2020-01-15 21:40:35 +00:00
Nikita Ioffe
bef21fbd25 Add shell commands to start checkpoint/check it is supported
Test: adb shell sm supports-checkpoint
Test: adb shell sm start-checkpoint 1 && adb reboot
Bug: 135984674
Change-Id: I08cd675b147cea88ad5b29ab4b0cd64ac445879d
Merged-In: I08cd675b147cea88ad5b29ab4b0cd64ac445879d
(cherry picked from commit 6d74942719bfedfe25f8c20af6fdd726ca14e15e)
2020-01-15 21:18:00 +00:00