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

Function setKeybox

webui/scripts/menu_option.js:170–179  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

168 * @returns {Promise<Boolean>}
169 */
170export async function setKeybox(content) {
171 const { errno } = await exec(`
172 mv -f /data/adb/tricky_store/keybox.xml /data/adb/tricky_store/keybox.xml.bak 2>/dev/null
173 cat << 'KB_EOF' > /data/adb/tricky_store/keybox.xml
174${content}
175KB_EOF
176 chmod 644 /data/adb/tricky_store/keybox.xml
177 `);
178 return errno === 0;
179}
180
181/**
182 * Set aosp key

Callers 4

fetchAndSetKeyboxFunction · 0.90
fetchCustomKeyboxFunction · 0.90
aospkbFunction · 0.85
menu_option.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected