| Jaekyun Seok | eeb2188 | 2018-01-16 12:51:19 +0900 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (C) 2018 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 | #ifndef _INIT_STABLE_PROPERTIES_H | 
 | 18 | #define _INIT_STABLE_PROPERTIES_H | 
 | 19 |  | 
 | 20 | #include <set> | 
 | 21 | #include <string> | 
 | 22 |  | 
 | 23 | namespace android { | 
 | 24 | namespace init { | 
 | 25 |  | 
 | 26 | static constexpr const char* kPartnerPrefixes[] = { | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 27 |     "init.svc.vendor.", "ro.vendor.", "persist.vendor.", "vendor.", "init.svc.odm.", "ro.odm.", | 
 | 28 |     "persist.odm.",     "odm.",       "ro.boot.", | 
| Jaekyun Seok | eeb2188 | 2018-01-16 12:51:19 +0900 | [diff] [blame] | 29 | }; | 
 | 30 |  | 
 | 31 | static const std::set<std::string> kExportedActionableProperties = { | 
| Jaekyun Seok | 00ef7d5 | 2018-04-12 08:16:31 +0900 | [diff] [blame] | 32 |     "dev.bootcomplete", | 
| Jaekyun Seok | cba467e | 2018-03-12 10:53:32 +0900 | [diff] [blame] | 33 |     "init.svc.console", | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 34 |     "init.svc.mediadrm", | 
| Jaekyun Seok | 167ec7f | 2018-04-05 21:20:59 +0900 | [diff] [blame] | 35 |     "init.svc.surfaceflinger", | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 36 |     "init.svc.zygote", | 
 | 37 |     "persist.bluetooth.btsnoopenable", | 
 | 38 |     "persist.sys.crash_rcu", | 
 | 39 |     "persist.sys.zram_enabled", | 
| Jaekyun Seok | 1f90cce | 2018-03-29 14:54:51 +0900 | [diff] [blame] | 40 |     "ro.board.platform", | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 41 |     "ro.bootmode", | 
 | 42 |     "ro.build.type", | 
| Jaekyun Seok | 00ef7d5 | 2018-04-12 08:16:31 +0900 | [diff] [blame] | 43 |     "ro.crypto.state", | 
 | 44 |     "ro.crypto.type", | 
| Jaekyun Seok | 4f214c5 | 2018-03-28 12:21:03 +0900 | [diff] [blame] | 45 |     "ro.debuggable", | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 46 |     "sys.boot_completed", | 
| Jaekyun Seok | 1f90cce | 2018-03-29 14:54:51 +0900 | [diff] [blame] | 47 |     "sys.boot_from_charger_mode", | 
| Jaekyun Seok | cf2da29 | 2018-01-31 18:12:13 +0900 | [diff] [blame] | 48 |     "sys.retaildemo.enabled", | 
 | 49 |     "sys.shutdown.requested", | 
 | 50 |     "sys.usb.config", | 
 | 51 |     "sys.usb.configfs", | 
 | 52 |     "sys.usb.ffs.mtp.ready", | 
 | 53 |     "sys.usb.ffs.ready", | 
 | 54 |     "sys.user.0.ce_available", | 
 | 55 |     "sys.vdso", | 
| Jaekyun Seok | 00ef7d5 | 2018-04-12 08:16:31 +0900 | [diff] [blame] | 56 |     "vold.decrypt", | 
 | 57 |     "vold.post_fs_data_done", | 
| Jaekyun Seok | eeb2188 | 2018-01-16 12:51:19 +0900 | [diff] [blame] | 58 |     "vts.native_server.on", | 
| Jaekyun Seok | 167ec7f | 2018-04-05 21:20:59 +0900 | [diff] [blame] | 59 |     "wlan.driver.status", | 
| Jaekyun Seok | eeb2188 | 2018-01-16 12:51:19 +0900 | [diff] [blame] | 60 | }; | 
 | 61 |  | 
 | 62 | }  // namespace init | 
 | 63 | }  // namespace android | 
 | 64 |  | 
 | 65 | #endif |