Commit Graph

60418 Commits

Author SHA1 Message Date
Jeffrey Huang
877adfea28 Migrate pullBinderStats
Test: atest UidAtomTests#testBinderStats
Test: adb shell cmd stats pull-source 10022
Test: adb shell cmd stats pull-source 10023
Change-Id: Ib321743b725abe6770b840477d7fbce755a0bde3
2020-01-16 15:17:40 -08:00
Jeffrey Huang
b92de55380 Migrate pullTemperature and pullCooldownDevice
Test: adb shell cmd stats pull-source 10021
Test: adb shell cmd stats pull-source 10059
Change-Id: I9d58a4b8aa32daa0b750d4e45c1dcc6a34407865
2020-01-16 15:17:40 -08:00
Jeffrey Huang
a0e1cd2dd6 Migrate ionHeapSize
Test: Ran adb shell cmd stats pull-source 10056
Test: Ran adb shell cmd stats pull-source 10061
Change-Id: I6501109a94875c69078dea0ac07dcce3bc9641e3
2020-01-16 15:17:39 -08:00
Jeffrey Huang
b1c1634325 Migrate ProcessMemory pullers
Test: atest UidAtomTests#testProcessMemoryState
Test: atest UidAtomTests#testProcessMemoryHighWaterMark
Test: atest UidAtomTests#testProcessMemorySnapshot
Test: adb shell cmd stats pull-source 10013
Test: adb shell cmd stats pull-source 10042
Test: adb shell cmd stats pull-source 10064
Change-Id: I0ce870a3fec668e380a6b6412f278033d6734f35
2020-01-16 15:17:38 -08:00
Tej Singh
250e7aad89 Fix crash when pulling certain atoms
IonMemoryUtil and ProcFsMemoryUtil were package-private classes loaded
in the system server class loader and had the same package as
StatsCompanionService, which is loaded in a separate class loader for
statsd. This caused a crash when statsd tried to access either. This cl
moves IonMemoryUtil and ProcFsMemoryUtil along with StatsPullAtomService
to a separate package so that no classes are shared in the same package.

Bug: 147792532
Test: pulled all relevant atoms and make sure they worked
Test: adb shell cmd stats pull-source 10064
Test: adb shell cmd stats pull-source 10061
Test: adb shell cmd stats pull-source 10042
Test: adb shell cmd stats pull-source 10056
Change-Id: I5107aa47045321e84549a7f2d55d0ee27f0d080e
2020-01-16 15:16:54 -08:00
Ruchir Rastogi
25e6dd3ed1 Merge "Migrate DeviceCalculcatedPower pullers to new API" 2020-01-16 19:16:50 +00:00
Mohammad Samiul Islam
8474b608a7 Merge "Revert "Revert "Make RollbackPackageHealthObserver observe apk-in-apex""" 2020-01-16 17:59:33 +00:00
Chavi Weingarten
59c937eaff Merge "Use root Activity to determine size compatibility in freeform mode." 2020-01-16 17:54:35 +00:00
Jeffrey Huang
0e332b3dcb Merge changes I1eec8c74,I6c4e80df
* changes:
  Migrate pullModemActivityInfo
  Migrate pullWifiActivityInfo
2020-01-16 17:14:43 +00:00
TreeHugger Robot
d77145bdfc Merge "Delete the staging directory after rule push finishes." 2020-01-16 17:02:13 +00:00
TreeHugger Robot
4c6d9ed906 Merge "Fix LockSettingsShellCommand handling of empty old credentials" 2020-01-16 16:32:14 +00:00
Rubin Xu
62b56b32ef Fix LockSettingsShellCommand handling of empty old credentials
Fix a crash when the device is secure but the user did not supply
the old credential when invoking LockSettingsShellCommand

Bug: 65239740
Test: adb shell cmd lock_settings set-pin  1254 when device has password
Change-Id: Id94f26c98984c6c09865ff45daeb76307f66dffb
2020-01-16 14:58:49 +00:00
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
Mohammad Samiul Islam
e7e63a692a Revert "Revert "Make RollbackPackageHealthObserver observe apk-in-apex""
This reverts commit 400124c6ae.

Reason for revert: Fixed the compile error; TestAppACrashingV2 was not
available to com.android.apex.apkrollback.test_v1

Change-Id: Ic443e913b837c9bb2716678521ad1d12d3bc7e4d
2020-01-16 14:00:28 +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
Jeffrey Huang
1f81889704 Migrate pullModemActivityInfo
Test: No cts test. Ran adb shell cmd stats pull-source 10012
Change-Id: I1eec8c748916010182be310e726924325b694a34
2020-01-15 15:50:56 -08:00
Jeffrey Huang
4df5740027 Migrate pullWifiActivityInfo
Test: atest HostAtomTests#testWifiActivityInfo
Test: adb shell cmd stats pull-source 10011
Change-Id: I6c4e80df4121504cdcfb49c9f5b84916ae2adef3
2020-01-15 15:50:55 -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
Ruchir Rastogi
5ea3163325 Migrate DeviceCalculcatedPower pullers to new API
As part of migrating the pullers to the new API, we modify
permission checks within BatteryStatsService. Previously, a Binder
thread within StatsCompanionService (with statsd's calling identity)
called BatteryStatsService functions, which was why statsd was assigned
the BATTERY_STATS permission. Now, that call is being made from the
system process Background thread. Because enforceCallingPermission
outside of Binder threads, we switched to enforceCallingOrSelfPermission.

Test: m -j
Test: adb shell cmd stats pull-source 10039
Test: adb shell cmd stats pull-source 10040
Test: adb shell cmd stats pull-source 10041
Test: atest CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerUse
Test: atest
CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerBlameUid
Test: atest CtsStatsdHostTestCases:BatteryStatsValidationTests#testPowerUse
Bug: 145565211
Change-Id: Ie009e6eead3e48ecee6b40d9a38c9d571d4d4117
2020-01-15 15:39:56 -08: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