Lines Matching refs:section
84 def dump_kernel(self, section, kernel_path): argument
90 dev = self.partition_map[section.upper()]['device']
95 def write_kernel(self, section, kernel_path): argument
101 dev = self.partition_map[section.upper()]['device']
106 def _modify_kernel(self, section, argument
124 self.dump_kernel(section, self.dump_file_name)
155 self.write_kernel(section, kernel_to_write)
157 def corrupt_kernel(self, section): argument
159 self._modify_kernel(section.upper(), self.DELTA)
161 def restore_kernel(self, section): argument
163 self._modify_kernel(section.upper(), -self.DELTA)
165 def get_version(self, section): argument
167 return self.partition_map[section.upper()]['version']
169 def get_datakey_version(self, section): argument
171 return self.partition_map[section.upper()]['datakey_version']
173 def get_sha(self, section): argument
176 dev = self.partition_map[section.upper()]['device']
180 def set_version(self, section, version): argument
184 self._modify_kernel(section.upper(), version, KERNEL_VERSION_MOD)
186 def resign_kernel(self, section, key_path=None): argument
188 self._modify_kernel(section.upper(),
189 self.get_version(section),