Commit Graph

25990 Commits

Author SHA1 Message Date
paulhu
59148b7938 Replace the permission of internal connectivity checks
A number of connectivity checks that protect system-only methods
check for CONNECTIVITY_INTERNAL, but CONNECTIVITY_INTERNAL is a
signature|privileged permission. We should audit the permission
checks, and convert checks that protect code that should not be
called outside the system to a signature permission. So replace
all CONNECTIVITY_INTERNAL to other proper permissions.

Bug: 32963470
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Change-Id: I8f2dd1cd0609056494eaf612d39820e273ae093f
Merged-In: I8f2dd1cd0609056494eaf612d39820e273ae093f
2019-12-04 11:44:45 +08:00
Treehugger Robot
254411a902 Merge "Deprecate LoginFilter" 2019-12-04 01:45:49 +00:00
Treehugger Robot
98c91be8ae Merge "Rename priority to connection policy in bluetooth apis" 2019-12-04 01:11:46 +00:00
Sooraj Sasindran
6e2ecfeede Merge changes Idf152091,I131f7aff
* changes:
  Make hidden subscription apis as system
  Do not use hidden withCleanCallingIdentity
2019-12-04 00:41:42 +00:00
Hall Liu
cebf791676 Merge "Change name of setShouldScreenCallFurther" 2019-12-04 00:28:48 +00:00
Treehugger Robot
2b65793cd6 Merge "Merge Android10 QPR1 into AOSP master" 2019-12-03 23:15:02 +00:00
Shi Lu
5957013f74 Merge "Need to publish ImsReasonInfo as public API for multiple cases." 2019-12-03 21:54:20 +00:00
Treehugger Robot
52df59acb3 Merge "Add SystemApi to setActiveDevice in BluetoothAdapter" 2019-12-03 21:51:44 +00:00
shilu
c8f41a59e9 Need to publish ImsReasonInfo as public API for multiple cases.
Bug:141928367
Bug:143879961

Test: manual

Change-Id: I3ceac51b62a4686ac719ea15dff782db4109654b
2019-12-03 19:09:17 +00:00
Sooraj Sasindran
e5ac4da10c Make hidden subscription apis as system
Make following APIs as system

SubscriptionInfo;->isGroupDisabled
TelephonyManager;->isModemEnabledForSlot
TelephonyManager;->setOpportunisticNetworkState

Add a new public API
SubscriptionManager;->getActiveAndHiddenSubscriptionInfoList

As they need to be accessed by system application to configure
the opportunistic subscripion info

Bug: 141122805
Test: verified that CBRS app is still working fine
Merged-In: Idf1520911272ba4b7c1f15671d6221d99ba0ab37
Change-Id: Idf1520911272ba4b7c1f15671d6221d99ba0ab37
2019-12-03 11:06:46 -08:00
Rahul Sabnis
c452697717 Add SystemApi to setActiveDevice in BluetoothAdapter
Bug: 145004683
Test: Manual
Change-Id: I70f46bb0153a8a0f3755dc2b3e26e556bd092daa
2019-12-02 15:36:11 -08:00
Rahul Sabnis
df1ef4aa62 Rename priority to connection policy in bluetooth apis
Bug: 145005327
Test: Manual
Change-Id: I43ad57feb7dd70f39005ad7a01bc7dac6fb7b639
2019-12-02 14:44:54 -08:00
Hall Liu
5defb332c9 Merge "Expose new Telecom APIs for use by Telephony"
am: fd191d895e

Change-Id: I9e3d18f58694afb182ddcd388c93e70886115c95
2019-12-02 13:57:01 -08:00
Peter Wang
80a5a3db13 Merge "[Telephony Mainline] Exposed sendOrderedBroadcast"
am: 471b839d02

Change-Id: Icd0230b880346a4ec573ccaa8d1adbade336f87a
2019-12-02 13:47:11 -08:00
Hall Liu
fd191d895e Merge "Expose new Telecom APIs for use by Telephony" 2019-12-02 21:43:02 +00:00
Peter Wang
471b839d02 Merge "[Telephony Mainline] Exposed sendOrderedBroadcast" 2019-12-02 21:32:33 +00:00
Chalard Jean
7dfd758583 Merge "Give apps access to the NAT64 prefix."
am: ce149dba87

Change-Id: I673a44f3f75a2395ae3d9d436c83708f20f414e6
2019-12-01 18:20:00 -08:00
Chalard Jean
f9e2215cc4 Give apps access to the NAT64 prefix.
Apps that do their own DNS queries need to know the NAT64 prefix
to resolve v4 addresses on v6-only networks.

Test: FrameworksNetTests NetworkStackTests
Bug: 144877069
Change-Id: I5a255b7afc2038646b93a0ab893f8ad62d0fb34f
2019-11-30 10:25:02 +00:00
Suprabh Shukla
040206bfcc Merge "Adding version code R for development"
am: b578bdbe43

Change-Id: I704d797eb4c3c0f2ffc449cb32681e68fcf7cc16
2019-11-29 09:18:22 -08:00
Suprabh Shukla
6a509cf4a5 Adding version code R for development
Test: Builds

Bug: 129975435
Change-Id: I26ef76266b2f52746ca08a45f5013c580cecd4fb
Merged-In: I26ef76266b2f52746ca08a45f5013c580cecd4fb
(cherry picked from commit 1d081c503c)
2019-11-28 14:29:12 +00:00
Aaron Huang
21d23db938 Merge "Add IpConfiguration parcelable interface implementation to system API"
am: 76101baf9a

Change-Id: I3ead12ee9162c16f8f5937cfc74f38071cef41c9
2019-11-28 02:09:43 -08:00
Aaron Huang
76101baf9a Merge "Add IpConfiguration parcelable interface implementation to system API" 2019-11-28 09:56:58 +00:00
Aaron Huang
42daacaea7 Add IpConfiguration parcelable interface implementation to system API
API lint robot warnings that parcelable requires writeToParcel
and describeContents.

Bug: 139268426
Bug: 135998869
Test: atest android.net.cts
      atest android.net.wifi.cts
      atest FrameworksNetTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I7acf000c468788c3fdcb47f8601762e7804ab940
2019-11-28 07:25:40 +00:00
Peter Wang
cf8bfcc4c2 [Telephony Mainline] Exposed sendOrderedBroadcast
with appOp as String and options as Bundle

Bug: 139077993
Test: Build, GsmInboundSmsHandlerTest, CdmaInboundSmsHandlerTest and WapPushOverSmsTest
Change-Id: I60e21c7202d1bc7c5d28dfad2e2edde902f28a15
Merged-In: I60e21c7202d1bc7c5d28dfad2e2edde902f28a15
2019-11-27 20:10:20 -08:00
Shuo Qian
0a1aca082c Merge "Introduce APIs for Emergency Number Database version"
am: 18fa446f44

Change-Id: I028be97dca40697f402431c42014028a07506068
2019-11-27 14:47:22 -08:00
Shuo Qian
18fa446f44 Merge "Introduce APIs for Emergency Number Database version" 2019-11-27 22:35:00 +00:00
Zoey Chen
13dc5222d1 Merge "Add SystemApi and NonNull annotation"
am: 79ca88e3b5

Change-Id: Id11ab9f5b4d0ad2623bfa09aea47c2628c133b03
2019-11-27 02:02:49 -08:00
Zoey Chen
79ca88e3b5 Merge "Add SystemApi and NonNull annotation" 2019-11-27 08:41:32 +00:00
Shuo Qian
217a388aef Introduce APIs for Emergency Number Database version
1) Test API to override file partition for testing
2) System API to notify Telephony Emergency Number database installation
 complete
3) Remove broadcast mechanism

Test: gts
Bug: 136027884

Change-Id: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
Merged-In: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
(cherry picked from commit 1b28fdd6dd)
2019-11-26 15:51:15 -08:00
Jiashen Wang
c478e51e9b Merge "Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public"
am: 936fd348f7

Change-Id: I5e915d62c31a05a4b6d6a1e61df814444e68fb37
2019-11-26 10:06:08 -08:00
Jiashen Wang
936fd348f7 Merge "Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public" 2019-11-26 17:56:55 +00:00
zoey chen
cb52ec37c8 Add SystemApi and NonNull annotation
Bug: 143738957
Test: make
Change-Id: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
Merged-In: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
2019-11-26 11:47:57 +08:00
Meng Wang
c5634216d7 Merge "Expose API isInEmergencySmsMode"
am: afb05a64c1

Change-Id: Ifb691669cc59b409490ab951db7f68160203b4d8
2019-11-25 16:20:20 -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
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
Meng Wang
5eda192492 Merge "System API: Context#registerReceiverForAllUsers"
am: 9e590914cb

Change-Id: I2d98300ad4958d19e69dcdfda83e9d5df086d43a
2019-11-25 10:07:43 -08:00
Meng Wang
9e590914cb Merge "System API: Context#registerReceiverForAllUsers" 2019-11-25 17:53:53 +00:00
Roshan Pius
0564779e76 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module"
am: 5b57190f08

Change-Id: I73c98d9dcb43f2db1e74f6d431f07ac90ee813e6
2019-11-25 05:50:08 -08:00
Richard Uhler
01178b4f9d Cleanup some obsolete TODOs and unused code.
am: cda1a17516

Change-Id: I56bce126042670678002ddbbfcf14ff9f94860c3
2019-11-25 05:24:46 -08: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
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
Benedict Wong
bf9172deb4 Merge changes from topics "Expose IKE ID, TS & SaProposal", "Expose IKE exception and callback", "Expose IkeManager & IkeSession", "Expose SessionOptions & EapConfig"
am: 091e420529

Change-Id: If8bb832c218e426210a9236c3c623da779b78f15
2019-11-22 20:10:36 -08:00
evitayan
1230075676 Expose IKE module API: Session Options & EapSessionConfig
am: 39202c84a1

Change-Id: I57f9ee22f7bdc88f1f6d1dd656b579c39bb4d453
2019-11-22 20:10:31 -08:00
evitayan
4e19cf4738 Expose IKE module API: IkeException, configuration & callback
am: c4a5883fc5

Change-Id: Ic22bf1514db08f0454ad7a3dcce5c125ce47a293
2019-11-22 20:10:25 -08:00
evitayan
327e0fcecc Expose IKE module API: IKE ID, TS and SaProposal
am: 69d77da91a

Change-Id: I3cc01a28d45bbf9d7706e0522b2c8e1fc8d5a78f
2019-11-22 20:10:18 -08: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
Charles Munger
769cf05c56 Merge "Deprecate FileUtils.closeQuietly"
am: e4b84f3475

Change-Id: Ia2f71d7cd97b32a175d0210a8f567ae75030439e
2019-11-22 16:03:14 -08:00