Commit Graph

7780 Commits

Author SHA1 Message Date
Martijn Coenen
074f904e45 Merge "Don't update quota for non-emulated volumes." into rvc-dev am: 29d6a24fbf
Change-Id: Ic22e1a5d81a1d43d7f623fd494c2602b053569c3
2020-04-21 12:42:42 +00:00
Martijn Coenen
29d6a24fbf Merge "Don't update quota for non-emulated volumes." into rvc-dev 2020-04-21 12:22:48 +00:00
Martijn Coenen
1b981a3aea Don't update quota for non-emulated volumes.
Since they don't support quota. Also, don't throw an exception if we
can't find a volume for the passed-in path, but warn instead: the volume
may be unstable and have disappeared by the time we do this.

Bug: 152618535
Test: boot emulated image; verify no crashes when inserting media on
      public storage
Change-Id: I0e6b8f5c9f9f35b80b7bd5f6255a70e210a30474
2020-04-21 12:51:47 +02:00
TreeHugger Robot
23d07666b4 Merge "Apply intensity settings to composed vibration effects" into rvc-dev am: 896cdcca42
Change-Id: I38e330bd5728b767525b5d2c8ef4133a92c54c8b
2020-04-20 18:29:12 +00:00
TreeHugger Robot
896cdcca42 Merge "Apply intensity settings to composed vibration effects" into rvc-dev 2020-04-20 18:11:30 +00:00
Lais Andrade
bf7a301ab0 Apply intensity settings to composed vibration effects
Use the existing maxAmplitude and gamma adjustment values to apply the
relative scaling of default vibration intensity settings and user
settings on top of the PrimitiveEffect#scale value.

As a consequence, the relative scaled amplitude of a OneShot or Waveform
vibration effect should match the scaled PrimitiveEffect#scale value.

Fix: 154089649
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: I3ca0042a42675289a2ed8110c9dc3798055ebf4a
2020-04-20 15:02:15 +00:00
TreeHugger Robot
63c1271fbc Merge "Mark more directory getter APIs @TestApi" into rvc-dev am: 5ac047d365
Change-Id: I0c36668774a2ec2b2710f06f51b474c48f14a849
2020-04-17 15:41:20 +00:00
Jerry Chang
e63ae2f84f Mark more directory getter APIs @TestApi
To have a way to verify behavior of more directories, mark more
directory getter APIs @TestApi.

Bug: 148664742
Test: atest SysConfigTest#testStageWhitelist
Change-Id: I2d22412935b24ec4c33d8d1b3a7fbb7df4a08841
2020-04-17 14:50:48 +08:00
TreeHugger Robot
ba4ec979c5 Merge "bypass anti-malware verification" into rvc-dev am: a93686c403
Change-Id: Ibdaacdde8e9ef649da98959bd7b09cf711aac5bf
2020-04-15 20:18:22 +00:00
TreeHugger Robot
a93686c403 Merge "bypass anti-malware verification" into rvc-dev 2020-04-15 20:13:43 +00:00
Todd Kennedy
75dd0e649a bypass anti-malware verification
For incremental installations only, we skip the verification
request broadcast and instead always send a verified broadcast
with the root hash.

Bug: 151240337
Test: Manual. Install APK normally and see the verifier request broadcast is sent
Test: Manual. Install APK incrementally and see verifier request broadcast is not sent, and verified broadcast is sent with root hash
Change-Id: I2599472818b63ea172d2d412741e5540c8a52176
2020-04-15 10:33:19 -07:00
TreeHugger Robot
0afed20e84 Merge "Add new atoms to track user journeys, such as user switches." into rvc-dev am: 58df220212
Change-Id: I16ca5df6fd9622134b6558dc57507775c058872b
2020-04-15 17:17:20 +00:00
Varun Shah
acb5634dc4 Add new atoms to track user journeys, such as user switches.
Define new atoms to better log and understand various user journeys,
such as user switches, user starts, and user creation.

The UserLifecycleJourneyReported atom defines a user's journey and
holds a user's information such as their user id, user type, and flags
associated with the user. This atom includes a session-id which is used
to link to the UserLifecycleEventOccurred atom which keeps track of
lifycycle events that occur throughout a user's journey. As more user
journeys are defined, there could be more Events added in the future.

Note: the JourneyReported atom can currently be logged more than once
per user journey since there is no record of the user's ongoing journey.
This will be updated in a future CL.

Bug: 146505521
Bug: 150788910
Test: statsd_testdrive 264 265
Change-Id: Iff3847be64d718fb2ec17e58c33d47f7fa4b627a
2020-04-14 11:25:07 -07:00
Yurii Zubrytskyi
ea99744a5c Merge changes I668e8664,Ia44f7e45 into rvc-dev am: 207f1d3036
Change-Id: I73b6ad0e82811d55971cd7a4d4cfb6c422c01e56
2020-04-11 01:43:40 +00:00
Yurii Zubrytskyi
da208016d6 [incfs] Make native library extraction async
IncrementalService can create the library files beforehand, but
delay filling in their data. As it takes quite a while in
general (over a second in cases when the phone is busy), it's
better to run the unzipping and filling in a separate thread
and only make sure it finishes before the whole installation
process is complete.
This speeds up the megacity.apk installation by ~250-300ms,
1000-1100ms -> 750-800ms

Bug: 153513507
Test: adb install megacity.apk

Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10 12:30:49 -07:00
Nikita Ioffe
0dd6064112 Merge "Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()" into rvc-dev am: e9ed63aa92
Change-Id: I70f5578d65f2a6148ea47dac7fee15267ca220da
2020-04-09 16:40:48 +00:00
Nikita Ioffe
57300d9057 Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()
This method consolidates logic of testing whenever rebooting userspace
is supported in a place that can be used both from
PowerMager.isRebootingUserspaceSupported() API and from
PowerManagerService.reboot() implementation.

Consequently, this makes `adb shell svc power reboot userspace` also
benefit from that check, and fail userspace reboot on devices that don't
support it.

Also tweaked logic of ignoring RemoteException to take into account
userspace reboot.

Test: adb root
Test: adb shell setprop init.userspace_reboot.is_supported 0
Test: adb shell svc power reboot userspace & verified error message
Test: adb shell setprop init.userspace_reboot.is_supported 1
Test: adb shell svc power reboot userspace & verified no error message
Test: atest PowerManagerTest
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 152803929
Change-Id: I2d3a8e0ae1320c408a838c5c5fdf4cd977b167b3
2020-04-09 14:07:22 +01:00
TreeHugger Robot
3bd9fd2def Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev am: afef06a0f6
Change-Id: Iacb6e514daa631a3d1d202d34dfb3cfbe90da072
2020-04-08 15:04:12 +00:00
TreeHugger Robot
afef06a0f6 Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev 2020-04-08 14:48:39 +00:00
TreeHugger Robot
a6ba2079fa Merge "Change the way how we call setStorageParams." into rvc-dev am: 9f16f2665a
Change-Id: I21a175fe5a65144f2b608796b2b7e9dddfd0cea0
2020-04-08 00:53:13 +00:00
Alex Buynytskyy
f415679228 Change the way how we call setStorageParams.
Now it's unified with callback FS connector - we are passing the
callback pointer directly to dataloader. This restricts access only
to methods we want and only by someone we want.

Bug: b/153468113
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ib557ebbe7c6c5ce92140eb20534a3626b3ac96d3
2020-04-07 14:42:50 -07:00
Fiona Campbell
dcb31d4b7e Merge "Make PowerManagerService use float for brightness" into rvc-dev am: adbe11f6ac
Change-Id: I411084fb6f60f0375a48ac4887eaf7bea2d7e33c
2020-04-07 09:40:27 +00:00
Fiona Campbell
adbe11f6ac Merge "Make PowerManagerService use float for brightness" into rvc-dev 2020-04-07 09:36:09 +00:00
Fiona Campbell
29dce0f0a9 Make PowerManagerService use float for brightness
Change the override brightness values to use float instead of an int in
PowerManagerService.

Bug: 150671605

Test: WmTests:RootWindowContainerTests
FrameworksServicesTests:PowerManagerServiceTest
CtsOsTestCases:android.os.cts.PowerManagerTest
FrameworksCoreTests:android.os.PowerManagerTest

Change-Id: I97e97e1500dac7f8beb112812d1347fa420afbf7
2020-04-06 19:28:55 +01:00
Abhijeet Kaur
a0503dcaf8 Merge "Remove a TODO as no work needs to be done" into rvc-dev am: a32954ec22
Change-Id: I07fcf866dd3559caa27231369b0755d5b5d4791a
2020-04-06 12:49:25 +00:00
Abhijeet Kaur
a32954ec22 Merge "Remove a TODO as no work needs to be done" into rvc-dev 2020-04-06 12:36:11 +00:00
Abhijeet Kaur
fd83d9dbb7 Remove a TODO as no work needs to be done
Bug: 150672994
Test: builds
Change-Id: I90fcbfb8d52e6883c12c7a76765767eaed370afe
2020-04-06 10:34:28 +01:00
TreeHugger Robot
92d390f966 Merge "Disable the freezer while we're collecting binder interface descriptors." into rvc-dev am: 2c1f53ad6f
Change-Id: Idf9069200305679f3547d08f73b14b9cfa71bfe6
2020-04-03 22:46:10 +00:00
TreeHugger Robot
2c1f53ad6f Merge "Disable the freezer while we're collecting binder interface descriptors." into rvc-dev 2020-04-03 22:41:52 +00:00
Treehugger Robot
0dcc6ebf3b Merge "Include exception as cause of BadParcelableException" am: 9b88b3732d am: 2238c3f118
Change-Id: I5be457218bf96fc9db47a4992da59a1cc35ee2f5
2020-04-03 19:17:07 +00:00
Treehugger Robot
2238c3f118 Merge "Include exception as cause of BadParcelableException" am: 9b88b3732d
Change-Id: I2e79f0c5cef6aab068e290c5682847142c9eb939
2020-04-03 18:51:21 +00:00
Treehugger Robot
9b88b3732d Merge "Include exception as cause of BadParcelableException" 2020-04-03 18:37:25 +00:00
Eugene Susla
ea5a8302b3 Merge "Prevent HandlerThread from losing interrupted flag" am: f86d2fb44d am: 9cdea35a61
Change-Id: Ia3712877cb377a0cc5b0dcd1f6716b5bc439b78f
2020-04-03 17:39:39 +00:00
Eugene Susla
9cdea35a61 Merge "Prevent HandlerThread from losing interrupted flag" am: f86d2fb44d
Change-Id: I8277cd9ce4a5ad03228ed8f351acd3d0e7892fdc
2020-04-03 17:14:40 +00:00
Eugene Susla
f86d2fb44d Merge "Prevent HandlerThread from losing interrupted flag" 2020-04-03 16:58:18 +00:00
Charles Munger
368949c23a Include exception as cause of BadParcelableException
Bug: 136208613
Test: Improved error message
Change-Id: I31404ef67f3b3c8788bd5b83ac5db94279f50f7c
2020-04-02 20:25:22 +00:00
Nikita Ioffe
d8c1e77cf8 Merge "Make init.userspace_reboot.is_supported a rw property" into rvc-dev 2020-04-02 15:20:34 +00:00
Ricky Wai
af8bcbd46f Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""
This reverts commit 7929c5dced.

Reason for revert: DeviceBootTest works now.
Fixed a bug in ProcessList to handle inode==0 case.

Test: atest DeviceBootTest
Bug: 151218156

Change-Id: I9c0066471e613ac7550cd55205653d84486af062
2020-04-02 13:10:33 +00:00
Alex Buynytskyy
3ea7adf007 Merge changes from topic "LOADER_USAGE_STATS" into rvc-dev am: 50e0244012
Change-Id: I543c9a2c62c3468494537db9b0bb9d9e04acee6f
2020-04-02 00:48:17 +00:00
Alex Buynytskyy
50e0244012 Merge changes from topic "LOADER_USAGE_STATS" into rvc-dev
* changes:
  Checking LOADER_USAGE_STATS before enabling read logs.
  Revert "Update the current API dump"
2020-04-02 00:36:26 +00:00
Alex Buynytskyy
5e860ba105 Checking LOADER_USAGE_STATS before enabling read logs.
Bug: b/152633648
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ic747a51b97b785c627c95bddecc6834ef602ff30
2020-04-02 00:31:41 +00:00
Steven Moreland
179ba84aab Merge "Document linkToDeath behavior on object cleanup." am: 2608950d10 am: f276d0b74d
Change-Id: Id8621528331802054b5979edfb4a09c3e44fba61
2020-04-01 19:21:11 +00:00
Steven Moreland
f276d0b74d Merge "Document linkToDeath behavior on object cleanup." am: 2608950d10
Change-Id: I3c8a4f9f4da3aff87fa1f1e1fff0e016f1ec4cad
2020-04-01 18:57:19 +00:00
Steven Moreland
2608950d10 Merge "Document linkToDeath behavior on object cleanup." 2020-04-01 18:35:05 +00:00
Nikita Ioffe
5c99905f44 Make init.userspace_reboot.is_supported a rw property
General recommendation is to avoid read-only properties, and instead control
"read-onlines" by only allowing init/vendor_init to set the property.

Since ro.init.userspace_reboot.is_supported was added in this release, and
nobody outside of the platform is querying it directly, it should be fine to
simply rename it.

Test: adb shell getprop init.userspace_reboot.is_supported
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 152803929
Change-Id: I31b9ac7f2c92ce82664a0266aea62faa2bdd365f
Merged-In: I31b9ac7f2c92ce82664a0266aea62faa2bdd365f
(cherry picked from commit 24e2259e5d)
2020-04-01 18:26:19 +01:00
Martijn Coenen
956c1333a4 Disable the freezer while we're collecting binder interface descriptors.
These are synchronous calls out from system_server to many processes;
make sure we don't get hung up on them.

Bug: 152294322
Test: N/A
Change-Id: Ie6f9da6c7f5df346cc28e0968f70a898bcd52adf
2020-04-01 16:37:51 +02:00
Nikita Ioffe
6017e36d7a Merge "Make init.userspace_reboot.is_supported a rw property" am: 67ee6aeb9e am: ece1219eb9
Change-Id: I2eca263d3037edb5b282b3923845be35a3d61537
2020-04-01 13:52:19 +00:00
Nikita Ioffe
ece1219eb9 Merge "Make init.userspace_reboot.is_supported a rw property" am: 67ee6aeb9e
Change-Id: I4ee415f6ee67ad88e6035fae5d7850e0933c1dd6
2020-04-01 13:32:15 +00:00
Mohammad Samiul Islam
aa0cebd8a4 Prevent staging multiple sessions on devices not supporting checkpoint am: 8c7142a658
Change-Id: I42c180ae216777624b4ad204466f0f64fccecbb9
2020-04-01 13:31:05 +00:00
Nikita Ioffe
67ee6aeb9e Merge "Make init.userspace_reboot.is_supported a rw property" 2020-04-01 13:14:22 +00:00