summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-08Snap for 8426163 from 5e06a0a2fb83f921ad8c9a25c7b70c241dc675e8 to ↵android-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100Android Build Coastguard Worker
mainline-tzdata2-release Change-Id: Id650c5f6089116c6c50d24ba465f9a0f66aa05f9
2021-10-07Snap for 7803083 from 3631a30920e393cd9608cc51ed2a3ea49d0bd620 to ↵Android Build Coastguard Worker
mainline-tzdata2-release Change-Id: I589fc2a0f92eb71dc27a7310808e02c4a092e226
2021-07-07Revert "Add ramdisk_available to init_first_stage's deps" am: ae331fecdcandroid-mainline-12.0.0_r99android-mainline-12.0.0_r77android-mainline-12.0.0_r70android-mainline-12.0.0_r63android-mainline-12.0.0_r59android-mainline-12.0.0_r49android-mainline-12.0.0_r122android-mainline-12.0.0_r100android12-mainline-networkstack-releaseInseob Kim
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/gsid/+/15167753 Change-Id: Idb77df22a6b4cb82a58fe349598f4df0720208b0
2021-07-01Revert "Add ramdisk_available to init_first_stage's deps"android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devInseob Kim
Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Completely migrate init first stage to Soong" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Update init_first_stage" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars" Revert "Add install_in_root to cc_binary" Revert "Add ramdisk_available to init_first_stage's deps" Revert submission 15071196-init_first_stage_soong Reason for revert: fixes b/192248690 Reverted Changes: I23cf4f975:Add ramdisk_available to init_first_stage's deps Icd98c7e24:Add ramdisk_available to init_first_stage's deps If9da9ba16:Add ramdisk_available to init_first_stage's deps Ibc8668029:Add ramdisk_available to init_first_stage's deps I3b4b8c475:Add ramdisk_available to init_first_stage's deps I59cd149e0:Completely migrate init first stage to Soong I36d789578:Add ramdisk_available to init_first_stage's deps I2a0daa612:Add BUILD_USES_RECOVERY_AS_BOOT to soong config Ic76c325ce:Directly create ramdisk dirs in ramdisk image rule... I4c5374deb:Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars I8aab5faf3:Add ramdisk_available to init_first_stage's deps I9d5a10661:Add ramdisk_available to init_first_stage's deps Iaa2edeb4a:Add ramdisk_available to init_first_stage's deps I7cb582ca0:Update init_first_stage I06091d15e:Add ramdisk_available to init_first_stage's deps I8bdb8dda3:Add ramdisk_available to init_first_stage's deps I7436b8dd1:Add ramdisk_available to init_first_stage's deps I39693fd86:Add ramdisk_available to init_first_stage's deps I0a9ba90f0:Add ramdisk_available to init_first_stage's deps Ib66b4c4ea:Add ramdisk_available to init_first_stage's deps I31ce63d23:Add ramdisk_available to init_first_stage's deps Icb580f97c:Add ramdisk_available to init_first_stage's deps I044a075b7:Add ramdisk_available to init_first_stage's deps I33164a7e7:Fix ndk and aml arch order Ib8d92904a:Add ramdisk_available to sysprop_library Ibc3516453:Add install_in_root to cc_binary Change-Id: I4766b869b5a5d3708f0c0620c009d8e225af8ff5
2021-06-24Add ramdisk_available to init_first_stage's deps am: 61adc2b6feInseob Kim
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/gsid/+/15073693 Change-Id: I7f1e1f9495bb5a62ac407e60ef6af93b32b7dfcf
2021-06-23Add ramdisk_available to init_first_stage's depsInseob Kim
Bug: 187196593 Test: boot Change-Id: I23cf4f9753a934e7053a70ef11cfafaa8fa4bd62 Merged-In: I23cf4f9753a934e7053a70ef11cfafaa8fa4bd62
2021-06-10gsi_tool: Change to use StderrLogger am: 52ab7ca517Yi-Yo Chiang
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/gsid/+/14730610 Change-Id: I38c4d543092989b85b8e93b9e6eaee6a475b03ab
2021-05-26gsi_tool: Change to use StderrLoggerYi-Yo Chiang
StdioLogger might break the output format of `gsi_tool status`, thus breaking DSUEndtoEndTest. Use StderrLogger instead so that all logs go to stderr. Bug: 188785243 Test: forrest DSUEndtoEndTest Change-Id: I95e5a24c59fb5c5ac31c44fa04d58174c39bab34 Merged-In: I95e5a24c59fb5c5ac31c44fa04d58174c39bab34 (cherry picked from commit 5766a459bcfc8611407354c68d4ffe03b0e0761e)
2021-04-30aidl: suppress warnings (mixed-oneway) am: 2be7b6311f am: eefbfbd3d1 am: ↵Jooyung Han
7932b78a7f am: 3589a2d077 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1688327 Change-Id: Icdc6f427c2c8cd51e87b4110af4e17afc8a2fbdb
2021-04-30aidl: suppress warnings (mixed-oneway) am: 2be7b6311f am: eefbfbd3d1 am: ↵Jooyung Han
7932b78a7f Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1688327 Change-Id: I26100976d846961beee5639f5a1ea14dc0a1a853
2021-04-30aidl: suppress warnings (mixed-oneway) am: 2be7b6311f am: eefbfbd3d1Jooyung Han
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1688327 Change-Id: I3e0a625cfe1dfe2cbe307dcaf1dcbc912086f672
2021-04-30aidl: suppress warnings (mixed-oneway) am: 2be7b6311fJooyung Han
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1688327 Change-Id: Idacb8624c8fed5c8ee46167cfe653a10647a6162
2021-04-28aidl: suppress warnings (mixed-oneway)android-s-beta-2android-s-beta-1Jooyung Han
In general, we recommend not to mix oneway methods and non-oneway methods to avoid ambiguity. But this interface explicitly named "oneway" methods with "-Async". Fixes: 179853732 Test: mmma system/gsid Change-Id: Ibb233ebfc4d9ac6a674435d9fe197638af32fcdc
2021-03-29Make DSU metadata files globally readable am: f72d88aedf am: e323e02ad4 am: ↵Yi-Yo Chiang
b29901004f am: f6c84dd546 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1623819 Change-Id: Ida8472ebe8a11d7fe2c7f9797b6ad0ffa9f4344e
2021-03-29Make DSU metadata files globally readable am: f72d88aedf am: e323e02ad4 am: ↵Yi-Yo Chiang
b29901004f Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1623819 Change-Id: Ib80b45d50ca8eeccc9fb4cd7ce3865ddc5d2055c
2021-03-29Make DSU metadata files globally readable am: f72d88aedf am: e323e02ad4Yi-Yo Chiang
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1623819 Change-Id: I6ab7167fa15f2df6d9ecccbc05c189f9425baf41
2021-03-29Make DSU metadata files globally readable am: f72d88aedfYi-Yo Chiang
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1623819 Change-Id: I94cbc8e573db4112c88bb6e506358f8478b5b1ac
2021-03-22Make DSU metadata files globally readableYi-Yo Chiang
libfstab (fs_mgr_fstab.cpp) could be statically linked into unpriviledged processes, and calling fs_mgr_fstab.cpp:ReadFstabFromFile() from an unpriviledged process while inside of a DSU system would return an incorrect Fstab, because ReadFstabFromFile() needs to read the DSU metadata files to return the correct result. To remedy this, we make DSU metadata files that are required by libfstab to be globally readable (0644). We also split the sepolicy label gsi_metadata_filea into two part, gsi_metadata_file and gsi_public_metadata_file, and make gsi_public_metadata_file:file readable by other domain (not banned by neverallow). Bug: 181110285 Test: Write a small utility program to validate the result of ReadFstabFromFile() in DSU. Change-Id: Ia7c8c584b23752195198cc43698c71a31cabc00e
2021-03-17Create the backing file for the PersistentDataBlock am: 56c2eaad92 am: ↵Howard Chen
158693aca3 am: 5d119cfe38 am: f16fc8551f Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1535676 Change-Id: I2f544690bd0d4cf9f86c6c08fea254386c14f6a6
2021-03-17Create the backing file for the PersistentDataBlock am: 56c2eaad92 am: ↵Howard Chen
158693aca3 am: 5d119cfe38 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1535676 Change-Id: I6e0b488c7ebdc6e776a19b6f5b7352e79821e5e0
2021-03-17Create the backing file for the PersistentDataBlock am: 56c2eaad92 am: ↵Howard Chen
158693aca3 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1535676 Change-Id: Icc91ebbe1d1dea5fc7e701505a937c4c78df761b
2021-03-17Create the backing file for the PersistentDataBlock am: 56c2eaad92Howard Chen
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1535676 Change-Id: Ibbccef7302aceca0a2786875ac6e3cadedd6d6ff
2021-03-10Create the backing file for the PersistentDataBlockHoward Chen
In order to support the test harness mode in DSU. A copy-on-write mechanism is added to the system server to protect the on-device PersistentDataBlock from any modification. When running a DSU, all write operations are redirected to a backing file. This CL creates the backing file with rc file to get the correct se file label. Bug: 175852148 Test: gsi_tool install Change-Id: I739e28a4cbc36330e1ba39de0e8b7d5a111617f7
2021-02-24Merge "Move external storage mkdir to ValidateInstallParams" am: 41ec4141a5 ↵Treehugger Robot
am: 5c3e948006 am: 2abdd94724 am: 2445590073 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1596273 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If5e56e6106bf4d00fc57249680c693e44a381ffa
2021-02-23Merge "Move external storage mkdir to ValidateInstallParams" am: 41ec4141a5 ↵Treehugger Robot
am: 5c3e948006 am: 2abdd94724 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1596273 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I289c0d050fe82d9517e99ae61c6a602d25af9f8a
2021-02-23Merge "Move external storage mkdir to ValidateInstallParams" am: 41ec4141a5 ↵Treehugger Robot
am: 5c3e948006 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1596273 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie725f6c05a4369751e4b72c87ea6871e5a3ddd87
2021-02-23Merge "Move external storage mkdir to ValidateInstallParams" am: 41ec4141a5Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1596273 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0c11f2f206628ed5437c4a3dcadd35c80e9a09a8
2021-02-22Merge "Move external storage mkdir to ValidateInstallParams"Treehugger Robot
2021-02-20[automerger skipped] Mark ab/7061308 as merged in stage. am: c11b3dbadb -s ↵Xin Li
ours am: 164d97f3f2 -s ours am: 74775c69fb -s ours am skip reason: Change-Id Iec366a31427c11975a2eac136beb13f0c4c5757b with SHA-1 367d870dcc is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibbb267a751ff0b2419d98bca9cef847415b3e96c
2021-02-20[automerger skipped] Mark ab/7061308 as merged in stage. am: c11b3dbadb -s ↵Xin Li
ours am: 164d97f3f2 -s ours am skip reason: Change-Id Iec366a31427c11975a2eac136beb13f0c4c5757b with SHA-1 367d870dcc is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ica4e3ff7bd0f625dcea34e85768dc8686bae3e0e
2021-02-20[automerger skipped] Mark ab/7061308 as merged in stage. am: c11b3dbadb -s oursXin Li
am skip reason: Change-Id Iec366a31427c11975a2eac136beb13f0c4c5757b with SHA-1 367d870dcc is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iedeae03b1ac45a9ee70bcb2fe0520a2bdc8f5717
2021-02-20Mark ab/7061308 as merged in stage.Xin Li
Bug: 180401296 Merged-In: Iec366a31427c11975a2eac136beb13f0c4c5757b Change-Id: I1a93e178c3cc5a15374d0a0bd8c1f9b8664caf07
2021-02-19Move external storage mkdir to ValidateInstallParamsHoward Chen
Otherwise the Realpath will fail. Bug: 179980369 Bug: 171861574 Test: A physical device with a SD card inserted and CF local instance with an emulated SD Change-Id: I829fb8f2afea86054a1162502914144eff787a37
2021-02-18gsid: Make createPartition() don't preempttively clear installer_ am: ↵Yi-Yo Chiang
c4d64008ac am: 124afd8926 am: 109b93220f am: e3b8d7a060 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585026 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib03b36b2c2dca45d3bb5dcac2d9b085e9f505e46
2021-02-18gsid: Make createPartition() don't preempttively clear installer_ am: ↵Yi-Yo Chiang
c4d64008ac am: 124afd8926 am: 109b93220f Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585026 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I430e9e21b5fd5f9ffc96d25adf995e7ef683edfd
2021-02-18gsid: Make createPartition() don't preempttively clear installer_ am: ↵Yi-Yo Chiang
c4d64008ac am: 124afd8926 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585026 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4bcd3d82a5d7680f201dcbbb411e86b12d2b026a
2021-02-18gsid: Make createPartition() don't preempttively clear installer_ am: c4d64008acYi-Yo Chiang
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585026 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia1ba41af7a1bcd140feee6146239efd78c2bea59
2021-02-18gsid: Make createPartition() don't preempttively clear installer_android-s-preview-1Yi-Yo Chiang
As enableGsi() uses the nullness of installer_ to decide if an on-going installation is happening, we shouldn't clear installer_ in createPartition() no matter what. Even when the installation failed to start, we should still leave installer_ pointing to an useless installation session, so that the caller can have a chance to handle the error state. I think we probably need a dedicated variable to indicate the installation state, so we can tell these subtle differences easier. Bug: 165925766 Bug: 179980369 Test: Verify that DSU installation completes successfully even when scratch failed to be installed. Change-Id: I7b465ac8a83859db45fc9c1a64eabfb76d780aee
2021-02-17Explicitly cast to 64bit integer when calculating filesystem size am: ↵Yi-Yo Chiang
23a996fde1 am: 99e0277ae4 am: 7cf2e769b6 am: 70f53ee452 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585024 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I21c714d1ff26bfc6a9653f6c489cedc42e4b8c71
2021-02-17gsid: suggestScratchSize() respect kMinimumFreeSpaceThreshold am: 645cdedb2f ↵Yi-Yo Chiang
am: 305b00dfe0 am: 524f1cf0d2 am: 22498c97ca Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585025 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2ebbf84f77467676e910084d4ca24fdb94a73ddd
2021-02-17Explicitly cast to 64bit integer when calculating filesystem size am: ↵Yi-Yo Chiang
23a996fde1 am: 99e0277ae4 am: 7cf2e769b6 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585024 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id4828f0b9ba89f39488718e3292cd2a7834e28b7
2021-02-17gsid: suggestScratchSize() respect kMinimumFreeSpaceThreshold am: 645cdedb2f ↵Yi-Yo Chiang
am: 305b00dfe0 am: 524f1cf0d2 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585025 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Idd9e13a501339e99b5d823329db9a48fc01c3a0b
2021-02-17Explicitly cast to 64bit integer when calculating filesystem size am: ↵Yi-Yo Chiang
23a996fde1 am: 99e0277ae4 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585024 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If4c434f9421b63b01f00dd821e4a52c43d4fbbe1
2021-02-17gsid: suggestScratchSize() respect kMinimumFreeSpaceThreshold am: 645cdedb2f ↵Yi-Yo Chiang
am: 305b00dfe0 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585025 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id598d90eaad6eb085d6fdf222961ea85494ae5de
2021-02-17Explicitly cast to 64bit integer when calculating filesystem size am: 23a996fde1Yi-Yo Chiang
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585024 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ide0224ef438c86bec40518ef355d9cfc6623527c
2021-02-17gsid: suggestScratchSize() respect kMinimumFreeSpaceThreshold am: 645cdedb2fYi-Yo Chiang
Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1585025 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If2bda91035d8f7c8ee5ee8ce779bab840cc8c6d9
2021-02-17Explicitly cast to 64bit integer when calculating filesystem sizeYi-Yo Chiang
Else the result may overflow on platforms that have 32bit long. Bug: 179980369 Test: Install DSU on 32bit cuttlefish and observe logcat. Test: Try installing with different userdata size and verify the calculated filesystem size. Change-Id: I50b140590972e733e0e45047b2ce8a6735d205f7
2021-02-17gsid: suggestScratchSize() respect kMinimumFreeSpaceThresholdYi-Yo Chiang
gsid should take kMinimumFreeSpaceThreshold into account when calculating the suggested scratch partition size. Also use uint64_t to store any calculated intermediate result, so we can stay confortable from overflowing, and downcast the result to int64_t in the end, after we clamped the value within int64_t range. Bug: 165925766 Bug: 179980369 Test: Install DSU and verify adb remount works Change-Id: I919c723369d7d788c5c83a19e6b87f077fb2521b
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to system/gsid am: c4e74fde31 am: 50b91bbf9c ↵Bob Badour
am: 9a2230ccf1 am: 7664268c6d Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1589071 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iacb69fc9955c8396c63107a0069fc00c09661e0c
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to system/gsid am: c4e74fde31 am: 50b91bbf9c ↵Bob Badour
am: 9a2230ccf1 Original change: https://android-review.googlesource.com/c/platform/system/gsid/+/1589071 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ieec67b03acb4e9e1d3d700ae6a5e28b9cb59aeec