xref: /aosp_15_r20/frameworks/native/cmds/installd/globals.h (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1*38e8c45fSAndroid Build Coastguard Worker /*
2*38e8c45fSAndroid Build Coastguard Worker **
3*38e8c45fSAndroid Build Coastguard Worker ** Copyright 2008, The Android Open Source Project
4*38e8c45fSAndroid Build Coastguard Worker **
5*38e8c45fSAndroid Build Coastguard Worker ** Licensed under the Apache License, Version 2.0 (the "License");
6*38e8c45fSAndroid Build Coastguard Worker ** you may not use this file except in compliance with the License.
7*38e8c45fSAndroid Build Coastguard Worker ** You may obtain a copy of the License at
8*38e8c45fSAndroid Build Coastguard Worker **
9*38e8c45fSAndroid Build Coastguard Worker **     http://www.apache.org/licenses/LICENSE-2.0
10*38e8c45fSAndroid Build Coastguard Worker **
11*38e8c45fSAndroid Build Coastguard Worker ** Unless required by applicable law or agreed to in writing, software
12*38e8c45fSAndroid Build Coastguard Worker ** distributed under the License is distributed on an "AS IS" BASIS,
13*38e8c45fSAndroid Build Coastguard Worker ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*38e8c45fSAndroid Build Coastguard Worker ** See the License for the specific language governing permissions and
15*38e8c45fSAndroid Build Coastguard Worker ** limitations under the License.
16*38e8c45fSAndroid Build Coastguard Worker */
17*38e8c45fSAndroid Build Coastguard Worker 
18*38e8c45fSAndroid Build Coastguard Worker #ifndef GLOBALS_H_
19*38e8c45fSAndroid Build Coastguard Worker #define GLOBALS_H_
20*38e8c45fSAndroid Build Coastguard Worker 
21*38e8c45fSAndroid Build Coastguard Worker #include <inttypes.h>
22*38e8c45fSAndroid Build Coastguard Worker #include <string>
23*38e8c45fSAndroid Build Coastguard Worker #include <vector>
24*38e8c45fSAndroid Build Coastguard Worker 
25*38e8c45fSAndroid Build Coastguard Worker namespace android {
26*38e8c45fSAndroid Build Coastguard Worker namespace installd {
27*38e8c45fSAndroid Build Coastguard Worker 
28*38e8c45fSAndroid Build Coastguard Worker // Name of the environment variable that contains the asec mountpoint.
29*38e8c45fSAndroid Build Coastguard Worker static constexpr const char* ASEC_MOUNTPOINT_ENV_NAME = "ASEC_MOUNTPOINT";
30*38e8c45fSAndroid Build Coastguard Worker 
31*38e8c45fSAndroid Build Coastguard Worker extern std::string android_app_dir;
32*38e8c45fSAndroid Build Coastguard Worker extern std::string android_app_ephemeral_dir;
33*38e8c45fSAndroid Build Coastguard Worker extern std::string android_app_lib_dir;
34*38e8c45fSAndroid Build Coastguard Worker extern std::string android_app_private_dir;
35*38e8c45fSAndroid Build Coastguard Worker extern std::string android_asec_dir;
36*38e8c45fSAndroid Build Coastguard Worker extern std::string android_data_dir;
37*38e8c45fSAndroid Build Coastguard Worker extern std::string android_media_dir;
38*38e8c45fSAndroid Build Coastguard Worker extern std::string android_mnt_expand_dir;
39*38e8c45fSAndroid Build Coastguard Worker extern std::string android_profiles_dir;
40*38e8c45fSAndroid Build Coastguard Worker extern std::string android_root_dir;
41*38e8c45fSAndroid Build Coastguard Worker extern std::string android_staging_dir;
42*38e8c45fSAndroid Build Coastguard Worker 
43*38e8c45fSAndroid Build Coastguard Worker extern std::vector<std::string> android_system_dirs;
44*38e8c45fSAndroid Build Coastguard Worker 
45*38e8c45fSAndroid Build Coastguard Worker bool init_globals_from_data_and_root();
46*38e8c45fSAndroid Build Coastguard Worker bool init_globals_from_data_and_root(const char* data, const char* root);
47*38e8c45fSAndroid Build Coastguard Worker 
48*38e8c45fSAndroid Build Coastguard Worker }  // namespace installd
49*38e8c45fSAndroid Build Coastguard Worker }  // namespace android
50*38e8c45fSAndroid Build Coastguard Worker 
51*38e8c45fSAndroid Build Coastguard Worker #endif  // GLOBALS_H_
52