diff options
author | Howard Chen <howardsoc@google.com> | 2019-08-05 16:56:12 +0800 |
---|---|---|
committer | Howard Chen <howardsoc@google.com> | 2019-08-19 17:35:02 +0800 |
commit | 7bb18effb27158b1a91ae37c41f0fdfd2d42a938 (patch) | |
tree | 7244879117d79e6948b01a95c08381043dd8c356 /startop/scripts/lib/cmd_utils.py | |
parent | f77da413f1b99fa7dd4d32191fcbdf8d992ada41 (diff) |
Use Ashmem to reduce buffer copies
Use android.os.MemoryFile to allocate Ashmem and use gsid.setAshmem and
gsid.commitGsiChunkFromAshmem to submit data.
Bug: 138976291
Test: adb shell am start-activity \
-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
-a android.os.image.action.START_INSTALL \
-d file:///storage/emulated/0/Download/system.raw.gz \
--el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
--el KEY_USERDATA_SIZE 8589934592
Change-Id: I6df718a8cc3f4e5835c9d20d0bf5bf8bb0daee22
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions