file_paths.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Copyright (C) 2019 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. #pragma once
  17. namespace android {
  18. namespace gsi {
  19. static constexpr char kDefaultGsiImageFolder[] = "/data/gsi/dsu/";
  20. static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/dsu/lp_metadata";
  21. static constexpr char kGsiOneShotBootFile[] = "/metadata/gsi/dsu/one_shot_boot";
  22. static constexpr char kGsiInstallDirFile[] = "/metadata/gsi/dsu/install_dir";
  23. // This file can contain the following values:
  24. // [int] - boot attempt counter, starting from 0
  25. // "ok" - boot was marked successful
  26. // "disabled" - boot into GSI no longer allowed
  27. // "wipe" - boot into GSI not allowed; next reboot will delete gsi
  28. static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/dsu/install_status";
  29. } // namespace gsi
  30. } // namespace android