1*5a923131SAndroid Build Coastguard Worker // 2*5a923131SAndroid Build Coastguard Worker // Copyright (C) 2015 The Android Open Source Project 3*5a923131SAndroid Build Coastguard Worker // 4*5a923131SAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License"); 5*5a923131SAndroid Build Coastguard Worker // you may not use this file except in compliance with the License. 6*5a923131SAndroid Build Coastguard Worker // You may obtain a copy of the License at 7*5a923131SAndroid Build Coastguard Worker // 8*5a923131SAndroid Build Coastguard Worker // http://www.apache.org/licenses/LICENSE-2.0 9*5a923131SAndroid Build Coastguard Worker // 10*5a923131SAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software 11*5a923131SAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS, 12*5a923131SAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*5a923131SAndroid Build Coastguard Worker // See the License for the specific language governing permissions and 14*5a923131SAndroid Build Coastguard Worker // limitations under the License. 15*5a923131SAndroid Build Coastguard Worker // 16*5a923131SAndroid Build Coastguard Worker 17*5a923131SAndroid Build Coastguard Worker #ifndef UPDATE_ENGINE_COMMON_PLATFORM_CONSTANTS_H_ 18*5a923131SAndroid Build Coastguard Worker #define UPDATE_ENGINE_COMMON_PLATFORM_CONSTANTS_H_ 19*5a923131SAndroid Build Coastguard Worker 20*5a923131SAndroid Build Coastguard Worker namespace chromeos_update_engine { 21*5a923131SAndroid Build Coastguard Worker namespace constants { 22*5a923131SAndroid Build Coastguard Worker 23*5a923131SAndroid Build Coastguard Worker // The default URL used by all products when running in normal mode. The AUTest 24*5a923131SAndroid Build Coastguard Worker // URL is used when testing normal images against the alternative AUTest server. 25*5a923131SAndroid Build Coastguard Worker // Note that the URL can be override in run-time in certain cases. 26*5a923131SAndroid Build Coastguard Worker extern const char kOmahaDefaultProductionURL[]; 27*5a923131SAndroid Build Coastguard Worker extern const char kOmahaDefaultAUTestURL[]; 28*5a923131SAndroid Build Coastguard Worker 29*5a923131SAndroid Build Coastguard Worker // Our product name used in Omaha. This value must match the one configured in 30*5a923131SAndroid Build Coastguard Worker // the server side and is sent on every request. 31*5a923131SAndroid Build Coastguard Worker extern const char kOmahaUpdaterID[]; 32*5a923131SAndroid Build Coastguard Worker 33*5a923131SAndroid Build Coastguard Worker // The name of the platform as sent to Omaha. 34*5a923131SAndroid Build Coastguard Worker extern const char kOmahaPlatformName[]; 35*5a923131SAndroid Build Coastguard Worker 36*5a923131SAndroid Build Coastguard Worker // Path to the location of the public half of the payload key. The payload key 37*5a923131SAndroid Build Coastguard Worker // is used to sign the contents of the payload binary file: the manifest and the 38*5a923131SAndroid Build Coastguard Worker // whole payload. 39*5a923131SAndroid Build Coastguard Worker extern const char kUpdatePayloadPublicKeyPath[]; 40*5a923131SAndroid Build Coastguard Worker 41*5a923131SAndroid Build Coastguard Worker // Path to the location of the zip archive file that contains PEM encoded X509 42*5a923131SAndroid Build Coastguard Worker // certificates. e.g. 'system/etc/security/otacerts.zip'. 43*5a923131SAndroid Build Coastguard Worker extern const char kUpdateCertificatesPath[]; 44*5a923131SAndroid Build Coastguard Worker 45*5a923131SAndroid Build Coastguard Worker // Path to the directory containing all the SSL certificates accepted by 46*5a923131SAndroid Build Coastguard Worker // update_engine when sending requests to Omaha and the download server (if 47*5a923131SAndroid Build Coastguard Worker // HTTPS is used for that as well). 48*5a923131SAndroid Build Coastguard Worker extern const char kCACertificatesPath[]; 49*5a923131SAndroid Build Coastguard Worker 50*5a923131SAndroid Build Coastguard Worker // Path to the file used to notify chrome about the deadline of the last omaha 51*5a923131SAndroid Build Coastguard Worker // response. Empty if not supported. 52*5a923131SAndroid Build Coastguard Worker extern const char kOmahaResponseDeadlineFile[]; 53*5a923131SAndroid Build Coastguard Worker 54*5a923131SAndroid Build Coastguard Worker // The stateful directory used by update_engine. 55*5a923131SAndroid Build Coastguard Worker extern const char kNonVolatileDirectory[]; 56*5a923131SAndroid Build Coastguard Worker 57*5a923131SAndroid Build Coastguard Worker #ifdef __ANDROID_RECOVERY__ 58*5a923131SAndroid Build Coastguard Worker constexpr bool kIsRecovery = true; 59*5a923131SAndroid Build Coastguard Worker #else 60*5a923131SAndroid Build Coastguard Worker constexpr bool kIsRecovery = false; 61*5a923131SAndroid Build Coastguard Worker #endif 62*5a923131SAndroid Build Coastguard Worker 63*5a923131SAndroid Build Coastguard Worker } // namespace constants 64*5a923131SAndroid Build Coastguard Worker } // namespace chromeos_update_engine 65*5a923131SAndroid Build Coastguard Worker 66*5a923131SAndroid Build Coastguard Worker #endif // UPDATE_ENGINE_COMMON_PLATFORM_CONSTANTS_H_ 67