mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-07-24 21:55:24 -04:00
@@ -62,7 +62,7 @@ def _startup_guard_module(out_path, args):
|
||||
|
||||
def deps_guard(out_path, args=None):
|
||||
_deps_guard_module(out_path, args)
|
||||
#_startup_guard_module(out_path, args)
|
||||
_startup_guard_module(out_path, args)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
@@ -432,10 +432,10 @@ class ConfigParser():
|
||||
|
||||
def scan_config(self):
|
||||
config_paths = [
|
||||
"/system/etc/init",
|
||||
"/chip_prod/etc/init",
|
||||
"/sys_prod/etc/init",
|
||||
"/vendor/etc/init",
|
||||
"system/etc/init",
|
||||
"chip_prod/etc/init",
|
||||
"sys_prod/etc/init",
|
||||
"vendor/etc/init",
|
||||
]
|
||||
for file_name in config_paths:
|
||||
self._scan_config_file(file_name)
|
||||
@@ -504,7 +504,7 @@ def startup_config_collect(base_path):
|
||||
parser = ConfigParser(os.path.join(base_path, "packages/phone"))
|
||||
parser.load_config("/system/etc/init.cfg")
|
||||
parser.scan_config()
|
||||
parser.load_selinux_config("/system/etc/selinux/config")
|
||||
parser.load_selinux_config("system/etc/selinux/config")
|
||||
return parser
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -78,6 +78,7 @@ class ParameterFileParser():
|
||||
self._parameters = {}
|
||||
|
||||
def _handle_param_info(self, file_name, param_info):
|
||||
print(param_info)
|
||||
param_name = param_info[0].strip()
|
||||
old_param = self._parameters.get(param_name)
|
||||
if file_name.endswith(".para.dac"):
|
||||
@@ -94,10 +95,14 @@ class ParameterFileParser():
|
||||
self._parameters[param_name] = param
|
||||
|
||||
def load_parameter_file(self, file_name, str = "="):
|
||||
print("** ", file_name)
|
||||
try:
|
||||
with open(file_name, encoding='utf-8') as fp:
|
||||
line = fp.readline()
|
||||
while line :
|
||||
if line.startswith("/*"):
|
||||
print("fileName = ", file_name)
|
||||
continue
|
||||
if line.startswith("#") or len(line) < 3:
|
||||
line = fp.readline()
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user