Commit Graph

60400 Commits

Author SHA1 Message Date
JW Wang
2d66ab9be8 Merge changes I7579d6c9,I329b1f1a,I46d08fe2
* changes:
  No need to call #updateRollbackLifetimeDurationInMillis (3/n)
  Register an OnPropertiesChangedListener in onBootCompleted (2/n)
  Squash runnables in onBootCompleted (1/n)
2020-01-16 14:21:13 +00:00
Greg Kaiser
400124c6ae Revert "Make RollbackPackageHealthObserver observe apk-in-apex"
This reverts commit d56ce00039.

This revert is to fix the wembley build.

Test: Local wembley build
Change-Id: I651f20ffc6ba11cced5a2a737fd3d77211127221
2020-01-16 05:40:17 -08:00
Roshan Pius
feb86eae2e Merge changes from topics "user_remove_extra_user", "wifi_net_utils"
* changes:
  UserManagerService: Add UserHandle extra to user added/removed broadcast
  wifi-service: Jar-Jar net util library
  WifiManager: Add API to query STA + AP concurrency
2020-01-16 13:05:13 +00:00
Rafal Slawik
13c4957cb4 Merge "Introduce IonHeapSize atom" 2020-01-16 12:58:28 +00:00
Mohammad Samiul Islam
67d72581ac Merge "Make RollbackPackageHealthObserver observe apk-in-apex" 2020-01-16 12:48:16 +00:00
Mohammad Samiul Islam
b4075aabd0 Merge "Store the correct rollback id for logging on boot complete" 2020-01-16 11:16:31 +00:00
Gavin Corkery
fd2f68734c Merge "Integrate Rescue Party boot loop logic to Package Watchdog" 2020-01-16 11:12:55 +00:00
TreeHugger Robot
51ef50530b Merge "PackageManager no longer requires the ExtServices to be a "Shared Library"" 2020-01-16 10:43:40 +00:00
Rafal Slawik
bdd5a50240 Introduce IonHeapSize atom
IonHeapSize is replacing SystemIonHeapSize on devices with newer
kernels. It relies on libmeminfo to measure the total size of all ion
heaps, unlike the old atom that manually parsed a file from debugfs.

Test: m -j
Test: statsd_testdrive 10070
Bug: 140788538
Bug: 147722878
Change-Id: If3fa74bd96631116ef05656e7942fa6cf4e15005
2020-01-16 10:29:07 +00:00
Automerger Merge Worker
15e32bf125 Merge "Support multiple DSU installations" am: 69d181aecc am: fd9ae75440 am: feb7f9cf81
Change-Id: Iec8edb8568d707b827a8d4e70373333d96d6ab10
2020-01-16 06:28:53 +00:00
Automerger Merge Worker
feb7f9cf81 Merge "Support multiple DSU installations" am: 69d181aecc am: fd9ae75440
Change-Id: I236a00274d6b6e7d1c7ac134ef17232c368cdd6a
2020-01-16 06:14:51 +00:00
TreeHugger Robot
4ec0be1faf Merge "Stop using UserHandle.getUserId() in media sever" 2020-01-16 05:51:58 +00:00
Howard Chen
69d181aecc Merge "Support multiple DSU installations" 2020-01-16 05:33:10 +00:00
Automerger Merge Worker
b69a2c9cd1 Merge "[DexManager] Fix off-by-N error in DexManager when reporting dex loads" am: ca98e2866e am: 2fd4a1c4be am: 4ce52911a3
Change-Id: Id4452f8e0cf073cbf330bf1c4645a578df583997
2020-01-16 03:31:27 +00:00
Automerger Merge Worker
4ce52911a3 Merge "[DexManager] Fix off-by-N error in DexManager when reporting dex loads" am: ca98e2866e am: 2fd4a1c4be
Change-Id: If51dce95c2779790a845c0462655e5f68cf1b1bf
2020-01-16 03:20:42 +00:00
Aaron Huang
9e0c5262ca Merge "Move DnsSdTxtRecord to net common static library" 2020-01-16 03:15:55 +00:00
TreeHugger Robot
8e6358b19f Merge "Fixes provider authority matching when ';' is used." 2020-01-16 03:15:35 +00: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
Kweku Adams
5946fcb969 Merge "Update sticky battery saver off notification." 2020-01-16 02:01:07 +00:00
TreeHugger Robot
4256a577bd Merge "Clear binder identity for UserManager calls" 2020-01-16 01:02:05 +00:00
TreeHugger Robot
b14200a272 Merge "Optimise input stack for better performance using buffers." 2020-01-16 00:44:15 +00:00
Nathan Harold
bbc2aaeaaa Merge changes from topic "barring-info"
* changes:
  Add a BARRING_TYPE_UNKNOWN for Unreported Barring
  Add Callback to notify changes of barring status
2020-01-16 00:06:07 +00:00
Roshan Pius
38b3e3a104 UserManagerService: Add UserHandle extra to user added/removed broadcast
Also, renamed a local variable.

Bug: 147611548
Test: Compiles
Change-Id: I4de739c7719321c83ebdd32df13395d9a218c4ad
2020-01-15 15:52:08 -08:00
TreeHugger Robot
e522d373d9 Merge "Change the indexing bucket size to 250 since it shows better performance." 2020-01-15 23:46:57 +00:00
Patrick Baumann
e2d9d71c4b Fixes provider authority matching when ';' is used.
Authorities defined in the manifest may support multiple authorities
split by the ';' character. This change adds support for this feature
when calculating visibility.

Bug: 145677500
Test: atest AppSecurityTests
Change-Id: Ifc2ff8ab95ce06502d9bf309c69ccd734526ef94
2020-01-15 23:43:57 +00:00
Danning Chen
8f0903ae74 Merge "Add a new method queryEventsForUser() to UsageStatsManagerInternal for People Service to call" 2020-01-15 22:55:15 +00:00
Soonil Nagarkar
7ebcaef623 Clear binder identity for UserManager calls
Bug: 147743742
Test: presubmits
Change-Id: I973e345be9a4118861c909920644ea5243c0a96f
2020-01-15 14:32:05 -08:00
Makoto Onuki
270d5225b5 Merge "Expose SystemService as @SystemApi for mainline modules" 2020-01-15 21:50:33 +00:00
Automerger Merge Worker
c5bfdd62c9 Merge "Use non-wakeup alarm for delay constraint." am: 3f9e9efe46 am: 3ade229c1c
Change-Id: I1232500c5f954ce757c1371ef2d9eeedb2987728
2020-01-15 20:29:41 +00:00
Peter Kalauskas
a65024de3b Merge "Use 0.8 as the low ram scale" 2020-01-15 20:22:08 +00:00
TreeHugger Robot
b5b58aacb8 Merge "Show background location permission rationale for first request" 2020-01-15 20:17:55 +00:00
Treehugger Robot
3f9e9efe46 Merge "Use non-wakeup alarm for delay constraint." 2020-01-15 20:07:43 +00:00
Trung Lam
c8b4c7f1f6 Merge "Added PeopleBackupHelper and skeleton backup/restore methods on PeopleServiceInternal." 2020-01-15 20:00:51 +00:00
Evan Rosky
718bc41353 Merge "Add focusability into the hierarchy and Container transaction" 2020-01-15 19:42:47 +00:00
Gavin Corkery
aa57ef3e46 Integrate Rescue Party boot loop logic to Package Watchdog
Make Package Watchdog the component that receives calls
about boot events, and decides on whether or not to
perform mitigation action for a perceived boot loop.
The logic for selecting an observer to handle boot loops
is similar to how package failure is handled. The threshold
logic is the same as it was in Rescue Party (5 system server
boots in 10 minutes). Rescue Party maintains its own rescue
levels internally, which map to user impact levels.

Add optional onBootLoop() and executeBootLoopMitigation() methods
to PackageHealthObserver.

Add tests to handle the new cases handled by Package Watchdog.

Test: atest RescuePartyTest
Test: atest PackageWatchdogTest
Bug: 136135457
Change-Id: Ic435e60318e369509975c19a9888741e047803de
2020-01-15 19:20:57 +00:00
Makoto Onuki
bf03b1b0b3 Expose SystemService as @SystemApi for mainline modules
Test: build / treehugger (annotation change only)
Bug: 146145144
Change-Id: I41b4d56dce06034730e8b3e70c2ca3fab8cc3456
2020-01-15 11:16:19 -08:00
Automerger Merge Worker
ca946bed5f DO NOT MERGE Fix AppOpsServiceTest am: c03b32c406 am: 47cc84875c
Change-Id: Iccb7dc7d5857c2fbd03372cc0f97cfd429ece85f
2020-01-15 19:15:23 +00:00
Automerger Merge Worker
cb5b958917 Merge "Cleanup ITelephony in TelephonyPermissions with new System API. This method is used by Telephony Module for permission checking." am: 725c54065d am: 3a6b29da40
Change-Id: I10447351e53ff84e6b2c747574080741189c6206
2020-01-15 19:14:45 +00:00
Kweku Adams
3ff74379a8 Update sticky battery saver off notification.
Remove the percentage and reword the title and summary so that users
don't get confused when seeing the notification at a later time.
Also removing unused strings.

Bug: 147060977
Test: manual inspection
Change-Id: I84ff7297b9e3af0b11a8872aed871654ca8ab0b5
2020-01-15 11:12:55 -08:00
TreeHugger Robot
458fbcba7f Merge "Add conversation-centric inline controls" 2020-01-15 19:09:53 +00:00
Philip P. Moltmann
47cc84875c DO NOT MERGE Fix AppOpsServiceTest
am: c03b32c406

Change-Id: Icb334aaa1f7a6ad6815fb034bbac27f3ace09cdb
2020-01-15 11:08:21 -08:00
Treehugger Robot
e88817bd42 Merge changes Ie816e0c6,I5b94e92a,I5391ac49,If074bed1
* changes:
  DO NOT MERGE Fix AppOpsServiceTest
  DO NOT MERGE Don't throw exception in AppOpsManager.checkOp
  DO NOT MERGE Remove unnecessary internal APIs.
  DO NOT MERGE SetMode: Don't call into PM with AppOps lock held
2020-01-15 19:01:15 +00:00
Ruchir Rastogi
8d3ec4a6c6 Merge "Migrate BuildInformation puller to new API" 2020-01-15 18:52:29 +00:00
Shuo Qian
725c54065d Merge "Cleanup ITelephony in TelephonyPermissions with new System API. This method is used by Telephony Module for permission checking." 2020-01-15 18:51:54 +00:00
Automerger Merge Worker
de38d0529f Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" am: 7fd95f64df am: 4a76965c68 am: b8a357c250
Change-Id: I9aee20185e189e51d537b6b0895fdc31c31d0ea2
2020-01-15 18:39:33 +00:00
Automerger Merge Worker
9cfa347e01 NetworkScoreManager: Expose SCORE_FILTER_* consts am: 16fc91a1c1 am: 51564c0050
Change-Id: I9532ed9e27aa83cc90b2e04fa5c6e330891dbc33
2020-01-15 18:25:42 +00:00
Automerger Merge Worker
b8a357c250 Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" am: 7fd95f64df am: 4a76965c68
Change-Id: I71d047b955cbb80519bca4cd15d4638dec3dc812
2020-01-15 18:24:31 +00:00
David Su
51564c0050 NetworkScoreManager: Expose SCORE_FILTER_* consts
am: 16fc91a1c1

Change-Id: Ibeb6f983417da745766a50a4b06b846f92721cec
2020-01-15 10:18:07 -08:00
Nikita Ioffe
32add5ab42 Merge "Add shell commands to start checkpoint/check it is supported" 2020-01-15 18:16:29 +00:00