
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
androidtv-remote
Advanced tools
npm install androidtv-remote
After first succeeded pairing, you can reuse generated certs with getCertificate() by sending it in constructor options.
let host = "192.168.1.12";
let options = {
pairing_port : 6467,
remote_port : 6466,
name : 'androidtv-remote',
cert: {},
}
let androidRemote = new AndroidRemote(host, options)
androidRemote.on('secret', () => {
line.question("Code : ", async (code) => {
androidRemote.sendCode(code);
});
});
androidRemote.on('powered', (powered) => {
console.debug("Powered : " + powered)
});
androidRemote.on('volume', (volume) => {
console.debug("Volume : " + volume.level + '/' + volume.maximum + " | Muted : " + volume.muted);
});
androidRemote.on('current_app', (current_app) => {
console.debug("Current App : " + current_app);
});
androidRemote.on('ready', async () => {
let cert = androidRemote.getCertificate();
androidRemote.sendKey(RemoteKeyCode.MUTE, RemoteDirection.SHORT)
androidRemote.sendAppLink("https://www.disneyplus.com");
});
let started = await androidRemote.start();
Event: secretEmitted when androidtv ask for code.
Event: poweredEmitted when androidtv is powering on/off.
Event: volumeEmitted when androidtv is changing volume/mute.
Event: current_appEmitted when androidtv is changing current app.
Event: errorEmitted when androidtv has a problem : by example when you send a wrong app_link with sendAppLink(app_link).
Command: sendCode(code)code : You need to pass the shown code on the TV when askedCommand: sendKey(KeyCode, Direction)KeyCode : Any key of https://developer.android.com/reference/android/view/KeyEvent?hl=frDirection :
START_LONG : Start long pushEND_LONG : Stop long pushSHORT : Simple pushCommand : sendAppLink(app_link)app_link : You can find them in some Android apps by seeking 'android:host' in Android-Manifest
MIT
FAQs
AndroidTV Remote
We found that androidtv-remote demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.