Commit Graph

432479 Commits

Author SHA1 Message Date
Hall Liu
568fa06d07 Deprecate KEY_IGNORE_RTT_MODE_SETTING_BOOL
Deprecate the key and set its default to true in order to standardize
behavior across carriers.

Bug: 122250491
Bug: 130010750
Test: manual
Change-Id: Ic814707eb8e95370c659c8bce08386f97769ab90
Merged-In: Ic814707eb8e95370c659c8bce08386f97769ab90
2019-11-26 18:31:13 -08:00
Treehugger Robot
5c7bd75060 Merge "Remove @SystemApi annotation for an overriding method" 2019-11-26 21:22:29 +00:00
Tyler Gunn
0da19daaef Merge "Fix issue with protected broadcast declaration." 2019-11-26 19:22:11 +00:00
Jiyong Park
c624e7d158 Remove @SystemApi annotation for an overriding method
Context.registerReceiverForAllUsers are already marked as @SystemApi.
The same method in ContextWrapper overriding it doesn't need to be
annotated as such. In fact, that API is even not recorded in
system-current.txt.

Bug: 144424011
Test: atest CtsSystemApiAnnotationTestCases
Merged-In: I60890104bf20a2c674edd91ec6b487cca1b4e37b
Change-Id: I60890104bf20a2c674edd91ec6b487cca1b4e37b
2019-11-26 18:04:49 +00:00
Jiashen Wang
936fd348f7 Merge "Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public" 2019-11-26 17:56:55 +00:00
Jayachandran Chinnakkannu
9dcbd6de87 Merge "Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)" 2019-11-26 17:17:38 +00:00
Treehugger Robot
3341bbefea Merge "Include janky runs on flicker rotation tests" 2019-11-26 16:29:45 +00:00
Chiachang Wang
0d7ed7932d Merge "Refactor based on new NetworkMonitor" 2019-11-26 10:52:33 +00:00
Nataniel Borges
8e65a898ec Include janky runs on flicker rotation tests
Sometimes the tests crash because all runs are janky. Our checks are so far robust to jank, so we will consider janky runs too

Test: atest FlickerTests
Change-Id: I20303d530e1a9cc266230530c6f7fa1cecd51020
2019-11-26 11:46:42 +01:00
Treehugger Robot
a6933d2279 Merge "Filter greylist-max-o.txt." 2019-11-26 08:15:09 +00:00
Treehugger Robot
46af84f892 Merge "Limit the retry attemps on restarting Bluetooth" 2019-11-26 04:30:41 +00:00
Ugo Yu
1ff6fd3c21 Limit the retry attemps on restarting Bluetooth
* Back off the delay time of resarting Bluetooth when
  there's continous turn on failures.
* Stop to restart Bluetooth if we are seeing back to
  back Bluetooth crashes, so we won't see endless
  diaglogs popping out.

Bug: 144572641
Test: Manual
Change-Id: Ifeffa214256eab61901c123fc88b037fc6d7dd50
2019-11-26 11:20:29 +08:00
Treehugger Robot
f1e0f2e365 Merge "Add tests for property reads from unset properties" 2019-11-26 02:31:31 +00:00
Chiachang Wang
3532e86487 Refactor based on new NetworkMonitor
Bug: 130325409
Test: atest NetworkStackIntegrationTests
Change-Id: I4426be339cb9990c05b3f4fb5666bd70bcd0f78e
2019-11-26 09:10:45 +08:00
Meng Wang
afb05a64c1 Merge "Expose API isInEmergencySmsMode" 2019-11-26 00:13:00 +00:00
Meng Wang
3dfc84ef72 Expose API isInEmergencySmsMode
Bug: 145161090
Test: cts
Merged-In: Ib9c1a4e05f5c8417b93e11cdf6bf81304e57eaec
Change-Id: Ib9c1a4e05f5c8417b93e11cdf6bf81304e57eaec
2019-11-25 23:56:28 +00:00
Jayachandran Chinnakkannu
2f1c32ef23 Merge "Remove usage of hidden API TelephonyManager.getLine1Number(int)" 2019-11-25 23:42:38 +00:00
Jayachandran C
f823445e53 Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)
This CL deletes the reference to this API as its used in a dead code
which is used for debugging only.

Bug: 140908357
Test: Build
Change-Id: I9fa1996ab5fdb5ab884128d06c2e92bab164dea7
2019-11-25 15:19:47 -08:00
Jiashen Wang
7a48dfdcb7 Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public
Change
CarrierConfigMananger#KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to
a public API.
Bug: 128629337
Test: Manually tested on P20 device.

Change-Id: I9e214607d4b791f11c8b688268fa1d58d66c23fc
Merged-In: I9e214607d4b791f11c8b688268fa1d58d66c23fc
2019-11-25 15:06:49 -08:00
Xiangyu/Malcolm Chen
0f2c3d963d Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." 2019-11-25 22:44:35 +00:00
Xiangyu/Malcolm Chen
de5e074ee7 Merge "Dynamically allocate objects in TelephonyRegistry upon ss <-> ds switch" 2019-11-25 22:44:12 +00:00
Xiangyu/Malcolm Chen
e14caf398e Merge "Add comment in getSubscriptionsInGroup about throwing IllegalStateException" 2019-11-25 22:43:40 +00:00
Jayachandran C
43022eb20a Remove usage of hidden API TelephonyManager.getLine1Number(int)
This CL creats subscription specific telephony manager instance
and then invokes getLine1Number() API.

Bug: 140908357
Test: Build
Change-Id: Ib49098dcf3a0718d498d829765ba7f52d9a1de09
2019-11-25 14:32:24 -08:00
Meng Wang
e34b67f5ca Merge "Move SmsConstants to telephony/common" 2019-11-25 21:59:10 +00:00
Jayachandran Chinnakkannu
6052ca74cd Merge "SmsNumberUtils: Remove usage of the following hidden APIs" 2019-11-25 21:40:14 +00:00
Mathieu Chartier
d9bcf56448 Merge "Pass runtimeFlags to postForkSystemServer" 2019-11-25 21:33:33 +00:00
Mathieu Chartier
742981eca3 Pass runtimeFlags to postForkSystemServer
Flags are now required by ART.

(cherry-picked from commit 2cb0a4d860)
Bug: 139883463
Bug: 144383344
Test: showmap `pid system_server` and verify
Test: atest BootImageProfileTest
Merged-In: I9416ef888557bf0bc0ec7c83f7af1979cac351f8
Change-Id: I9416ef888557bf0bc0ec7c83f7af1979cac351f8
2019-11-25 13:32:02 -08:00
Treehugger Robot
445720a321 Merge "Do not consider SIM state for inactive SIM/modem slot." 2019-11-25 21:22:09 +00:00
Treehugger Robot
6cc2ca0b82 Merge "RecoverySystem: do not check if socket is closed" 2019-11-25 19:50:36 +00:00
Jayachandran C
2863aa48fe SmsNumberUtils: Remove usage of the following hidden APIs
PhoneConstants.PHONE_TYPE_GSM
PhoneConstants.PHONE_TYPE_CDMA
PhoneNumberUtils.isNanp()

Bug: 140908357
Test: Build
Change-Id: I32a55c06bf69bdd0146f2579326794de0cdb3ec5
2019-11-25 11:30:12 -08:00
Meng Wang
ac59ad3c83 Move SmsConstants to telephony/common
So it can be used by modules other than telephony.

Bug: 140908357
Test: make
Change-Id: I7819adbc150df5bd8a05014a9dfa79bd8de425b6
2019-11-25 10:37:30 -08:00
Kenny Root
c6c2619ba2 RecoverySystem: do not check if socket is closed
LocalSocket does not support checking whether the socket is closed explicitly.
The write or read functions will still return IOException when the socket is
closed, so just rely on that.

Bug: 145102966
Test: Factory reset from Home->Menu->Settings->System->Advanced->Reset options->Erase all Data
Change-Id: I9094f07c2f709f4a270af06db8f02e72e1d7faf0
2019-11-25 10:26:53 -08:00
Meng Wang
9e590914cb Merge "System API: Context#registerReceiverForAllUsers" 2019-11-25 17:53:53 +00:00
Artur Satayev
98c0f563d1 Filter greylist-max-o.txt.
Keep only signatures that are present in public releases for P and Q based on android_runtime.hiddenapi.bootclasspath.public.

Bug: 137350495
Test: diff hiddenapi-flags.csv
Change-Id: If270ec7e77e299558988e3f49a9e16ba65ac6afd
2019-11-25 17:39:12 +00:00
Tyler Gunn
1d57b5de03 Fix issue with protected broadcast declaration.
These were renamed in the code-review.  Not sure how the presubmits passed
with the declaration being wrong here.

Test: Manual testing / CTS testing.
Bug: 136109592
Change-Id: I8cf0b6b3a95faa504415318ba521379e2a8680b2
2019-11-25 07:56:55 -08:00
Daniel Colascione
ed4023a61d Add tests for property reads from unset properties
Test: atest FrameworksCoreSystemPropertiesTests
Bug: 144958550

Change-Id: I33c02013f6fb42c3cd974f76cd593940d4f1705b
2019-11-25 06:33:29 -08:00
Neil Fuller
05eeef4188 Merge "Remove dead code from SystemServer" 2019-11-25 13:53:15 +00:00
Chalard Jean
ed2a3ec9b4 Merge "[NS A11] Small refactor" 2019-11-25 08:55:19 +00:00
Paul Hu
85e8fd5a24 Merge "Fix hasUseBackgroundNetworksPermission issue." 2019-11-25 08:41:05 +00:00
Lucas Lin
82f0c22598 Merge "Fix title of PRIVATE_DNS_BROKEN notification when connecting VPN" 2019-11-25 08:14:09 +00:00
Treehugger Robot
5b57190f08 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" 2019-11-25 06:39:04 +00:00
Bill Lin
63e6d6af01 Merge changes from topic "migrate_CtsStagedInstallTest_RollbackTest"
* changes:
  Add multi-user test for the general non-staged case
  Increase timeout in testNativeWatchdogTriggersRollback
  Fix flaky testEnableRollbackTimeoutFailsRollback test
  Wait for available rollbacks in RollbackTest.
  Include NewRollbacks in result of getAvailableRollbacks.
  Rename RollbackData to Rollback.
  Remove INSTALLED_USERS extra from ACTION_PACKAGE_ENABLE_ROLLBACK.
  Update to new RollbackUtils.sendCrashBroadcast API.
  Extend ROLLBACK_COMMITTED broadcast for the multi-user case
  Fix NullPointerException.
  Cleanup some obsolete TODOs and unused code.
  Test Native Watchdog triggers RollbackManager rollback
  Uninstall testapps before running SecondaryUserRollbackTest
  delete ENABLING rollback if we can't get session info for it.
  Add test for rollback of userdata with multiple rollbacks
  Load rollback data in RollbackManagerServiceImpl constructor.
  Use "commit" for rollbacks instead of "execute".
  Add TestApi to block the RollbackManagerHandlerThread.
  Use Slog in RollbackManager, not Log
  Make setRequestDowngrade @TestApi
  Migrate RollbackTest and StagedRollbackTest to cts utils
  Add .apex suffix to apex files during validation
  Add host side test for secondary user rollback
  Reduce ENABLE_ROLLBACK timeout to 0 for timeout test.
2019-11-25 02:56:10 +00:00
Treehugger Robot
a150138e67 Merge "Adjust PermissionMonitor#startMonitoring in ConnectivityService" 2019-11-24 15:21:43 +00:00
paulhu
86e23ebb47 Fix hasUseBackgroundNetworksPermission issue.
PermissionMonitor#hasUseBackgroundNetworksPermission only uses
the first package name of the uid for checking permission.
This is incorrect since each package declared different
permissions. So using the mApps which already checked both
network and using restricted network permissions. If uid is in
the mApps list that means uid has one of permission at least.

Bug: 135897744
Test: atest FrameworksNetTests
Change-Id: I3500a03ce06b5b822311ad0c67b606ce4039216a
2019-11-24 22:27:32 +08:00
Roshan Pius
9518866c53 NetworkScoreManager: Add @SystemApi for wifi mainline module
Add formal API's for API's that the wifi mainline module uses:
a) NetworkScoreManager.requestNetworkScores - Request new network scores.
b) NetworkScoreManager.registerNetworkScoreCallback - @SystemApi wrapper
over the existing registerNetworkScoreCache.
c) NetworkKey.createFromScanResult - Create NetworkKey from ScanResult.

Also,
a) Converted the existing WifiNetworkScoreCache callback implementation to
support both the new @SystemApi (used by wifi) and the old @hide API
(used by settings).
b) Stopped invoking dump on all the callbacks from NetworkScoreService.
The dump of each callback should be invoked at their client site (i.e
wifi service should dump state of the callback it registers with the
service).
c) Added a helper method |dumpWithLatestScanResults| to help dump the
state of the WifiNetworkScoreCache from wifi service.

Bug: 144487252
Test: a) Device boots up and connects to wifi network.
b) Manually verified that network scores are being requested & updated
with the new interface.

Change-Id: Id5a66189150e7a088127519373a832f63bdd12ac
Merged-In: Id5a66189150e7a088127519373a832f63bdd12ac
(cherry-picked from c278f80c28)
2019-11-24 07:04:30 +00:00
Nikita Ioffe
62cec10872 Merge "Always ask vold to unlock user" 2019-11-23 12:13:44 +00:00
Benedict Wong
99e1e2812f Merge "Add IKE to allowable zygote paths" 2019-11-23 03:45:53 +00:00
Benedict Wong
091e420529 Merge changes from topics "Expose IKE ID, TS & SaProposal", "Expose IKE exception and callback", "Expose IkeManager & IkeSession", "Expose SessionOptions & EapConfig"
* changes:
  Expose IKE module API: IkeManager and IkeSession
  Expose IKE module API: Session Options & EapSessionConfig
  Expose IKE module API: IkeException, configuration & callback
  Expose IKE module API: IKE ID, TS and SaProposal
2019-11-23 03:45:53 +00:00
Meng Wang
e3bd3babbc System API: Context#registerReceiverForAllUsers
Bug: 141193711
Test: make
Merged-In: Ie692d2ac27474b9fe11f5548bc504aa00c5ad53c
Change-Id: Ie692d2ac27474b9fe11f5548bc504aa00c5ad53c
2019-11-23 02:17:27 +00:00
Treehugger Robot
3d0a47e717 Merge "Clean up RLog usage" 2019-11-23 02:12:07 +00:00