Commit Graph

438151 Commits

Author SHA1 Message Date
paulhu
cbdf103371 Migrate tethering notification resources
Migrate the resources which are only used by tethering notification
from framework/base/core/res to tethering package resource
folder.

Bug: 122085773
Bug: 139763854
Test: build pass
Change-Id: I832103090d500fd8e2e2efb9dc7151426da3f88d
Merged-In: I832103090d500fd8e2e2efb9dc7151426da3f88d
2019-12-04 14:29:38 +08:00
Paul Hu
6be69420df Merge "Replace the permission of internal connectivity checks" 2019-12-04 05:59:59 +00:00
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
87bf9bc09c Merge changes Ie756b9aa,I38110f3a
* changes:
  [NS A19] Inline updateCapabilities in rematch.
  [NS A18] Reverse listens and request-availables
2019-12-04 02:07:45 +00:00
Treehugger Robot
254411a902 Merge "Deprecate LoginFilter" 2019-12-04 01:45:49 +00:00
Treehugger Robot
c83781809e Merge "Convert apct/framework/ui_services_test-cloud-tf to Test Mapping Suite." 2019-12-04 01:22:57 +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
Jing Ji
9027191b08 Merge "Fix a racing condition in ProcessRecord" 2019-12-03 20:59:05 +00:00
Neil Fuller
7fcab2dba8 Merge "Add a manual path for setting time zone" 2019-12-03 20:17:09 +00:00
Treehugger Robot
0e7782c87b Merge "Camera: Avoid removing valid repeating requests" 2019-12-03 19:31:49 +00:00
Treehugger Robot
5bb655217d Merge "Use KNOWN_PACKAGES when shared lib consumers" 2019-12-03 19:31:30 +00:00
Neil Fuller
77d5009778 Merge "Make TimeDetectorService / Strategy consistent" 2019-12-03 19:26:07 +00:00
Jing Ji
178460c69b Fix a racing condition in ProcessRecord
Bug: 141602830
Bug: 144808687
Test: n/a
Change-Id: I9d67d0733a2eb7f42e23b22ccdc3f3d9b2526ef4
Merged-In: I9d67d0733a2eb7f42e23b22ccdc3f3d9b2526ef4
2019-12-03 11:20:33 -08: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
Sooraj Sasindran
e6a2c0a4d3 Do not use hidden withCleanCallingIdentity
Do not use hidden withCleanCallingIdentity API

Bug: 140908357
Test: make
Merged-In: I131f7affd811eb7a848ea230b332b53654e6fd43
Change-Id: I131f7affd811eb7a848ea230b332b53654e6fd43
2019-12-03 11:05:05 -08:00
Treehugger Robot
a57d559918 Merge "Removes the defunct -s flag." 2019-12-03 19:02:51 +00:00
Neil Fuller
2c6d510e45 Add a manual path for setting time zone
Add a mechanism for suggesting the "manual" time zone setting to the
TimeZoneDetectorStrategy, e.g. for the settings app to use. This
involves various changes / renames to TimeZoneDetectorStrategy to
introduce a distinction between 3 things:
1) General detection code, applicable for anything that changes device
time zone.
2) Phone detection code, applicable for setting the device time zone
from phone signals.
3) Automatic detection code, applicable for setting the device time zone
automatically (of which telephony signals is currently the only example,
but could be joined by new things in future).

Adds tests for the new ManualTimeZoneSuggestion and makes improvements
to the existing tests for PhoneTimeZoneSuggestionTest.

Test: atest android.app.timezonedetector
Test: atest com.android.server.timezonedetector
Bug: 140712361
Change-Id: I9c3a18e47b157cccabda74855e5c91b45fa93b92
2019-12-03 16:38:03 +00:00
Mark De Ruyter
fcb164daa5 Removes the defunct -s flag.
Bug: 144577589
Test: `pm help 2>&1 | grep "install application on sdcard" shows no entries.
Change-Id: I0f83173c1dcd56e94d8eaafbc082c346aa11af7f
Merged-In: I0f83173c1dcd56e94d8eaafbc082c346aa11af7f
2019-12-03 15:54:53 +00:00
Hector Dearman
ad3e08aa69 Merge "Reland Perfetto upload logging atoms DO NOT MERGE" 2019-12-03 15:02:24 +00:00
Hector Dearman
8d4a16cfc6 Reland Perfetto upload logging atoms DO NOT MERGE
Initial state:
- I landed ag/9652310 (the original change) downstream
- I cherry-picked this change on upstream to aosp/1158971
- This cherry-pick had an incorrect Merged-In tag referring to ag/7911242
- This cl was present between mirror-aosp-master and master internally

Branch                      CL
aosp/master                 (aosp/1158971)
    \/
internal/mirror-aosp-master (aosp/1158971)
    \/
internal/[---]              Nothing since ag/7911242 was here
    ||                      already automerger skipped our change
    \/
internal/master             (ag/9652310)
    \/
[various children]          (ag/9652310)

See:
https://android-build.googleplex.com/builds/automerger/graph/project/googleplex-android/platform/frameworks/base

How this will fix the issue:
- The revert will go everywhere aosp/1158971 did
- The reland will go everywhere aosp/1158971 did plus to internal/master

This reverts commit 8ed72df3d8e21c06d8b1b848d6e58c15b251d25a.
2019-12-03 15:01:33 +00:00
Anton Hansson
b595f61f5a Merge "Add sdkext jar to whitelisted zygote paths" 2019-12-03 13:47:39 +00:00
Dario Freni
c7a4eec435 Merge changes from topic "aosp-apk-in-apex"
* changes:
  DO NOT MERGE: Fixes NPE when preparing app data during init
  Support privileged apps installed in APEX.
  Support non-privileged APKs in APEX.
  Refactors initial directory scan to be dryer
2019-12-03 11:45:55 +00:00
Hector Dearman
bab05b054d Merge "Revert "Add Perfetto upload logging atoms"" 2019-12-03 10:05:07 +00:00
Neil Fuller
7d8a624085 Merge "Add a new time zone detection service" 2019-12-03 08:40:07 +00:00
Chalard Jean
932dda858a Merge "Disable a flaky test" 2019-12-03 07:16:25 +00:00
Chalard Jean
b6ec076ac0 Disable a flaky test
Bug: 145513323
Test: FrameworkNetTests
Change-Id: I66e02fdaab2969b77db4a0f0e6fb8b1a981d9350
2019-12-03 16:13:22 +09:00
Po-Chien Hsueh
f1d9e1ffc6 Merge changes from topic "zip_and_sparse"
* changes:
  DSU to support zip files
  Create a SparseInputstream
2019-12-03 05:45:30 +00:00
Xin Li
a614e596b1 Merge Android10 QPR1 into AOSP master
Bug: 145570283
Change-Id: I557701733b49b0f231c89165239ba07c0fa288d2
2019-12-02 21:25:07 -08:00
easoncylee
d063e1116c Convert apct/framework/ui_services_test-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: 145485387

Test: TreeHugger
      atest FrameworksUiServicesTests

Change-Id: Ie16ed765247278b79284b445296fbb0e81d41bf5
2019-12-03 00:47:48 +00: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
Zongheng Wang
6b30bf8a7f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager"
am: 3908351777

Change-Id: I75c245ec452cc8b3918143500ea7f1dad7b0baa7
2019-12-02 14:15:58 -08:00
Treehugger Robot
3908351777 Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-12-02 22:07:21 +00: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
Patrick Baumann
5b7c9a19d1 Merge "Handles null outInfo in deleteSystemPackageLI"
am: b17f9ee38c

Change-Id: I73a81cd9fb433fb0624e58ae60231372ecb1fb50
2019-12-02 13:52:28 -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
Jayachandran Chinnakkannu
3959d1affc Merge "Remove usage of ITelecomService.getCallState() hidden API"
am: b93721efc7

Change-Id: Ibcfecf0665edd2fd8573300442e55670c94dc5a3
2019-12-02 13:42:49 -08:00
Treehugger Robot
b17f9ee38c Merge "Handles null outInfo in deleteSystemPackageLI" 2019-12-02 21:38:37 +00:00
Peter Wang
471b839d02 Merge "[Telephony Mainline] Exposed sendOrderedBroadcast" 2019-12-02 21:32:33 +00:00
Jayachandran Chinnakkannu
b93721efc7 Merge "Remove usage of ITelecomService.getCallState() hidden API" 2019-12-02 21:15:04 +00:00
Patrick Baumann
d59c35da8c Use KNOWN_PACKAGES when shared lib consumers
This change ensures we find ALL known packages that could be consuming a
shared library, not only currently installed ones. Without this check,
the system may get into a state in which we have currently uninstalled
but on-device apps that depend on a shared library that does not exist
on device.

This change also leaves static shared library packages on device even if
it's not installed for any of the remaining users as it could still be
used, but marked uninstalled for users in which it is consumed.

Bug: 141413692
Bug: 142083996
Test: Manual; attempt to remove shared lib after marking its consumer uninstalled.
Test: atest StaticSharedLibsHostTests
Change-Id: Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea
Merged-In: Id4e37c3e4d3ea3ad5fddae5d2c7305e56f50eeea
2019-12-02 20:44:35 +00:00
Patrick Baumann
d54f430b56 Handles null outInfo in deleteSystemPackageLI
This change adds null checks before accessing outInfo in
deleteSystemPackageLI.

Bug: 139907865
Test: manual; remove static dependency on eng build and reboot
Change-Id: If0fd48343e89cbb77ccd25826656194195d5b0cd
Merged-in: If0fd48343e89cbb77ccd25826656194195d5b0cd
2019-12-02 20:42:58 +00:00
Zongheng Wang
02f82e233d Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
Bug: 142004000
Test: Manual
Change-Id: I45f93ce35813fff9677c2d41e6f31622bc04ca09
Merged-In: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-12-02 19:53:08 +00:00