Commit Graph

7767 Commits

Author SHA1 Message Date
Yurii Zubrytskyi
a443ae2b2e Merge changes I668e8664,Ia44f7e45 into rvc-dev am: 207f1d3036 am: 06e1a29053
Change-Id: Ic8352f21cb07ed21155fa2ecb2e6c01bcc0db8a8
2020-04-11 02:01:16 +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
5a54ff1b9e Merge "Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()" into rvc-dev am: e9ed63aa92 am: 85b5b73e34
Change-Id: I3286d6bd9886f2ab37d4da6d28ceb78144f964e1
2020-04-09 16:47:40 +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
453e2b4177 Merge "Revert "Revert "Do not mount whitelisted package in storage data and obb dirs""" into rvc-dev am: afef06a0f6 am: 216018145e
Change-Id: I1ab61ddd6e493d30c6cc61a56e88ddb0f8202273
2020-04-08 15:10:07 +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
0be4e1819a Merge "Change the way how we call setStorageParams." into rvc-dev am: 9f16f2665a am: 14e544cd4d
Change-Id: I101829c5e6f45da7684a4cfed50d3dc092348ba2
2020-04-08 01:09:35 +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
8b9e09f2e7 Merge "Make PowerManagerService use float for brightness" into rvc-dev am: adbe11f6ac am: ce3e3d67cd
Change-Id: I4207fb71ecb127c670fc677dd9f7966f4885a9e9
2020-04-07 09:56:36 +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
58cdf17ce4 Merge "Remove a TODO as no work needs to be done" into rvc-dev am: a32954ec22 am: ca6a0f9999
Change-Id: Ie940d829e61cef732d43ff319e3e7aab43dda901
2020-04-06 13:14:33 +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
Mohammad Islam
cf2865a167 Merge changes from topics "abort-individual-session", "apk-checkpoint", "rebrand-to-revert", "supportsCheckPoint"
* changes:
  Enable filesystem checkpoint for staged apk installation
  Allow staging multiple sessions with non-overlapping packages (apk+apex)
  Replace abortActiveSession in StagingManager with revertActiveSessions
  Allow StagingManager to abort individual staged session
  Prevent staging multiple sessions on devices not supporting checkpoint
  Rebrand the term "rollback" to "revert" for apexd
2020-04-01 13:05:58 +00:00
Steven Moreland
16687cbce9 Document linkToDeath behavior on object cleanup.
In Java, this has always been the case, but it wasn't documented.

Bug: 152627219
Test: n/A
Change-Id: I8d93d2876bac8f16101a30afdf06699ece653d25
2020-03-31 14:22:13 -07:00
TreeHugger Robot
9dffcec823 Merge "PMS: Add shell command to toggle FIXED_PERFORMANCE" into rvc-dev am: 63ff5bb6f1
Change-Id: I9d9877994761fe22e6d4e30adc45a376b287739d
2020-03-31 20:57:47 +00:00
TreeHugger Robot
63ff5bb6f1 Merge "PMS: Add shell command to toggle FIXED_PERFORMANCE" into rvc-dev 2020-03-31 20:38:47 +00:00
Michael Wright
9dc277395f Merge "Remove registerSection API with optional Executor" into rvc-dev am: ca87d86d59
Change-Id: I3f1e6601a5871ec0ddaa0c0de742f028f7dae7fd
2020-03-31 18:02:20 +00:00
Mike Ma
1b75683d4f Remove registerSection API with optional Executor
This patch addresses an issue from API review:
registerSection cannot have an optional Executor

registerSection is an unreleased API in R, therefore can be hard
removed.

Fixes: 148867197
Test: Build
Change-Id: Icdb8b97f7fa3f1880aa3039dbbe82f8331a45202
2020-03-30 17:13:39 -07:00
Nikita Ioffe
24e2259e5d 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
2020-03-30 23:43:47 +01:00
Nikita Ioffe
8a6760b55c Merge "pm install-commit supports waiting for staged session to be ready" am: 1886454c78
Change-Id: Ide53b18b7c32d2dec5bd76cc4f39df65ccd2027e
2020-03-30 22:29:03 +00:00
Nikita Ioffe
87847be695 pm install-commit supports waiting for staged session to be ready
This change allows callers of adb install-multi-package to benefit from
--wait flag which will wait for the pre-installed verification of staged
sessions.

Test: atest PackageManagerShellCommandTest
Test: adb install-multi-package tzdata.apex shim.apex
Bug: 147694315
Change-Id: Ia356c4dff635ec230eb505fb400913c76ec84042
Merged-In: Ia356c4dff635ec230eb505fb400913c76ec84042
(cherry picked from commit 13973e1d89)
2020-03-28 19:28:01 +00:00
Nikita Ioffe
c269ab1f97 Merge "pm install-commit supports waiting for staged session to be ready" into rvc-dev am: 810c90c70e
Change-Id: I86737a964c12aa55e94893d33a53a4865f91e1d8
2020-03-28 18:56:47 +00:00
Nikita Ioffe
810c90c70e Merge "pm install-commit supports waiting for staged session to be ready" into rvc-dev 2020-03-28 18:35:50 +00:00
Nikita Ioffe
13973e1d89 pm install-commit supports waiting for staged session to be ready
This change allows callers of adb install-multi-package to benefit from
--wait flag which will wait for the pre-installed verification of staged
sessions.

Test: atest PackageManagerShellCommandTest
Test: adb install-multi-package tzdata.apex shim.apex
Bug: 147694315
Change-Id: Ia356c4dff635ec230eb505fb400913c76ec84042
2020-03-28 12:39:29 +00:00
Ram Muthiah
ee7f81aca9 Merge "Revert "Do not mount whitelisted package in storage data and obb dirs"" into rvc-dev am: 40383b0f2b
Change-Id: I32cc4880b7017114f9207e73e2c6087679efe637
2020-03-28 02:58:05 +00:00