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 17 #pragma once 18 19 namespace android { 20 namespace gsi { 21 22 static constexpr char kDefaultGsiImageFolder[] = "/data/gsi/dsu/"; 23 24 static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/dsu/lp_metadata"; 25 static constexpr char kGsiOneShotBootFile[] = "/metadata/gsi/dsu/one_shot_boot"; 26 static constexpr char kGsiInstallDirFile[] = "/metadata/gsi/dsu/install_dir"; 27 28 // This file can contain the following values: 29 // [int] - boot attempt counter, starting from 0 30 // "ok" - boot was marked successful 31 // "disabled" - boot into GSI no longer allowed 32 // "wipe" - boot into GSI not allowed; next reboot will delete gsi 33 static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/dsu/install_status"; 34 35 } // namespace gsi 36 } // namespace android 37