MCPcopy
hub / github.com/KOWX712/Tricky-Addon-Update-Target-List / aospkb

Function aospkb

webui/scripts/menu_option.js:185–189  ·  view source on GitHub ↗

* Set aosp key * @returns {Promise }

()

Source from the content-addressed store, hash-verified

183 * @returns {Promise<void>}
184 */
185async function aospkb() {
186 const { stdout } = await exec(`xxd -r -p ${basePath}/common/.default | base64 -d`);
187 const result = await setKeybox(stdout);
188 showPrompt(getString(result ? "prompt_aosp_key_set" : "prompt_key_set_error"), result);
189}
190
191// aosp kb eventlistener
192document.getElementById("aospkb").onclick = aospkb;

Callers

nothing calls this directly

Calls 3

showPromptFunction · 0.90
getStringFunction · 0.90
setKeyboxFunction · 0.85

Tested by

no test coverage detected