Android security implementation Phase 2 finalization part 1

This commit is contained in:
2026-11-03 23:16:16 +02:00
parent 3ada3c2ce8
commit 526ca767b1
15 changed files with 882 additions and 111 deletions
+5
View File
@@ -17,6 +17,7 @@ const androidPgpConfirmationGate = fs.readFileSync(path.join(root, 'android', 'a
const productivity = fs.readFileSync(path.join(root, 'productivity.js'), 'utf8');
const androidBridge = fs.readFileSync(path.join(root, 'scripts', 'android-bridge.js'), 'utf8');
const androidPgp = fs.readFileSync(path.join(root, 'scripts', 'android-pgp.js'), 'utf8');
const pgpMailUi = fs.readFileSync(path.join(root, 'pgp-mail-ui.js'), 'utf8');
const packageJson = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
const packageLock = JSON.parse(fs.readFileSync(path.join(root, 'package-lock.json'), 'utf8'));
@@ -98,6 +99,10 @@ test('Android OpenPGP uses the encrypted vault and queues only built MIME data',
assert.match(androidPgp, /curve25519Legacy/);
assert.match(androidPgp, /multipart\/encrypted/);
assert.match(androidPgp, /MAX_MESSAGE_BYTES = 25 \* 1024 \* 1024/);
assert.match(androidPgp, /async function verifyMessage/);
assert.match(androidPgp, /readCleartextMessage/);
assert.match(androidPgp, /readSignature/);
assert.match(pgpMailUi, /message\.signed/);
assert.match(androidBridge, /buildOutgoing\(message\)/);
assert.match(androidBridge, /rawBase64, envelope: \{ from, to \}, text: '', attachments: \[\]/);
assert.match(androidMailService, /validateOpenPgpMime\(message\)/);