All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
// TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
// Android 17 local network protection: an app targeting 36 or lower gets ACCESS_LOCAL_NETWORK on its
// own, but only if it doesn't declare it. 3.3.0 declared it without asking for it, and on Android 17
// every packet from the network was dropped (#403 #405). Declaring it goes with targetSdk 37 and a
// runtime request.
// Run with: node shared/test/android-lnp.js
'use strict';
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const root = path.join(__dirname, '..', '..');
for (const app of ['android', 'android-tv']) {
const gradle = fs.readFileSync(path.join(root, app, 'app', 'build.gradle.kts'), 'utf8');
const manifest = fs.readFileSync(path.join(root, app, 'app', 'src', 'main', 'AndroidManifest.xml'), 'utf8')
.replace(/<!--[\s\S]*?-->/g, '');
const target = Number((gradle.match(/targetSdk\s*=\s*(\d+)/) || [])[1]);
assert.ok(target > 0, `${app}: targetSdk not found`);
if (target < 37) {
assert.ok(!/android\.permission\.ACCESS_LOCAL_NETWORK/.test(manifest),
`${app}: targets ${target} but declares ACCESS_LOCAL_NETWORK, which turns off Android 17's own grant`);
}
}
console.log('android-lnp: ok');