summaryrefslogtreecommitdiff
path: root/daemon.cpp
AgeCommit message (Collapse)Author
2022-01-10gsid: Add a command-line option for verifying image maps.David Anderson
Bug: 213646061 Test: adb remount, gsid verify-image-maps Change-Id: I2d2f28921a2f22bb1c7d8660802fe33adbf109bd
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
2020-03-11Cleanup unused dependenciesandroid-r-preview-4android-r-preview-3android-r-preview-2Yo Chiang
* Cleanup unused headers * Cleanup libgsid unused dependencies Test: Build and boot Change-Id: I22456c176dde524bc51a435bca6fc45d37240f56
2020-03-03Convert gsid to use the dynamic AIDL service infrastructureHoward Chen
Replace the original on demand start mechanism with the new dynamic AIDL service infrastructure to resolve a possible race condition. Bug: 149130673 Test: gsi_tool status Change-Id: I141475b56191eb82efe222bf7522350fc66a7dac
2019-10-02Add a binder call to retrieve device-mapper tables for diagnostics.David Anderson
The binder call is exposed through "gsid dump-device-mapper". Since this requires linking to libgsid, also take the opportunity to move gsid dependencies to static linkage. Bug: 140204341 Test: dumpstate Change-Id: I8858fde00cd5159be7794b22791fe14914af9a1c
2019-07-29Only shut down gsid when it has no more consumers.David Anderson
Consumers of gsiservice must now use IGsid for its top-level interface. IGsiService can be acquired through IGsid::getClient. When the last reference to IGsiService is dropped, gsid will cleanly exit. Callers should no longer stop gsid through init. Bug: 133528572 Test: gsid cleanly exits after gsi_tool runs Change-Id: Ie5cb80fa63e61b143f9f27cca96999a5c71dab2c Merged-In: Ie5cb80fa63e61b143f9f27cca96999a5c71dab2c
2019-01-14Implement a boot attempt counter.David Anderson
Bug: 122556707 Test: manual test Change-Id: I75457b95aef9d74bbf4121850f2f29fdc887386c
2019-01-11Introduce a daemon (gsid) for managing GSI installs.David Anderson
Bug: 122556707 Test: manual test Change-Id: I96d833f77740e6b791992336e590dd1a089895c9