INNER CODE UNIT · TypeScript

VendorKeyError

yume-chan/ya-webadb · libraries/adb-credential-nodejs/src/index.ts:62

class VendorKeyError extends KeyError {
    constructor(path: string, options?: ErrorOptions) {
        super(`Can't read vendor key file at "${path}"`, path, options);
    }
}

export class TangoNodeStorage implements TangoKeyStorage {
    static readonly KeyError = KeyError;
    static readonly InvalidKeyError = InvalidKeyError;
    static readonly VendorKeyError = VendorKeyError;

    async #getAndroidDirPath() {
        const dir = resolve(homedir(), ".android");
        await mkdir(dir, { mode: 0o750, recursive: true });
        return dir;
    }

    async #getUserKeyPath() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…