
Research
/Security News
PolinRider Spreads Through Compromised GitHub Accounts and Packagist
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.
@alisaitteke/adb-client
Advanced tools
A modern, powerful TypeScript library for Android Debug Bridge (ADB) operations. This library provides a robust interface to interact with Android devices, offering comprehensive device management, app control, and system monitoring capabilities.
Imagine controlling your Android device with code that's actually readable. No more cryptic ADB commands or shell script nightmares. This library is like having a universal remote for your Android device, but cooler because... well, it's code!
npm install adb-client
# or if you're a yarn person
yarn add adb-client
# or if you're one of those cool pnpm folks
pnpm add adb-client
import { ADB } from 'adb-client';
// Let's do some magic! ✨
async function main() {
try {
const adb = new ADB();
// Find all your Android friends
const devices = await adb.getDevices();
if (devices.length === 0) {
console.log('😢 No devices found. Did you forget to plug it in?');
return;
}
// Pick your favorite device (or the only one you have 😅)
const device = devices[0];
console.log(`🎯 Found device: ${device.model || 'Mystery Phone'}`);
// Let's take a selfie (screenshot)!
await adb.takeScreenshot(device.serialNumber, './awesome-screenshot.png');
console.log('📸 Say cheese!');
} catch (error) {
console.error('💥 Oops!', error.message);
}
}
const adb = new ADB();
// Let's see what devices we've got
const devices = await adb.getDevices();
devices.forEach(device => {
console.log(`📱 Found: ${device.model || 'Mystery Device'} (${device.serialNumber})`);
});
// Get all the juicy details
const props = await adb.getDeviceProperties(devices[0].serialNumber);
console.log(`
🤖 Android Version: ${props.androidVersion}
📦 SDK: ${props.sdkVersion}
⭐ Brand: ${props.brand}
`);
// Install that awesome app you built
await adb.installAPK('device123', './my-awesome-app.apk');
// Launch it to the moon! 🚀
await adb.startApp('device123', 'com.your.awesome.app', '.MainActivity');
// Check how awesome your app is
const info = await adb.getPackageInfo('device123', 'com.your.awesome.app');
console.log(`📊 App Version: ${info.versionName} (${info.versionCode})`);
// Marie Kondo your app data
await adb.clearAppData('device123', 'com.your.awesome.app');
// Take a screenshot (perfect for those "it works on my machine" moments)
await adb.takeScreenshot('device123', './proof-it-works.png');
// Record a video (great for catching those elusive bugs)
await adb.recordScreen('device123', './bug-in-action.mp4', 10, {
size: '720x1280', // For those who care about quality
bitRate: '4M' // For those who care about file size
});
// Check the battery (is it coffee break time?)
const battery = await adb.getBatteryInfo('device123');
console.log(`
🔋 Battery: ${battery.level}%
🌡️ Temperature: ${battery.temperature}°C
⚡ Charging: ${battery.isCharging ? 'Yep!' : 'Nope!'}
`);
// Network status (for when Wi-Fi is being sneaky)
const network = await adb.getNetworkInfo('device123');
console.log(`
🌐 IP: ${network.ipAddress}
📶 Wi-Fi: ${network.wifiEnabled ? 'Connected' : 'Looking for signal...'}
`);
// Press buttons like a pro gamer
await adb.sendKeyEvent('device123', 'KEYCODE_HOME'); // Go home!
await adb.sendKeyEvent('device123', 'KEYCODE_BACK'); // Retreat!
// Toggle Wi-Fi (because why not?)
await adb.setWifiEnabled('device123', true); // 📶 ON
await adb.setWifiEnabled('device123', false); // 📴 OFF
import { ADB, ADBError, DeviceNotFoundError, CommandError } from 'adb-client';
try {
const adb = new ADB();
await adb.getDevices();
} catch (error) {
if (error instanceof DeviceNotFoundError) {
console.error('😢 Device went on vacation:', error.message);
} else if (error instanceof CommandError) {
console.error('🤔 ADB is being difficult:', error.message);
} else {
console.error('💥 Something went boom:', error);
}
}
const adb = new ADB({
customPath: '/path/to/your/special/adb', // For the special snowflakes
timeout: 5000 // For the impatient developers
});
git checkout -b feature/something-awesomegit commit -m 'Add something awesome'git push origin feature/something-awesome# Get the party started
npm install
# Build something amazing
npm run build
# Make sure it works
npm test
# Make it pretty
npm run format
MIT License - Go wild! (Just don't blame us if something breaks 😉)
Found a bug? Got a cool idea? Need a virtual hug?
Made with ☕ and TypeScript. Happy coding! 🚀
FAQs
Modern TypeScript library for Android Debug Bridge (ADB)
The npm package @alisaitteke/adb-client receives a total of 1 weekly downloads. As such, @alisaitteke/adb-client popularity was classified as not popular.
We found that @alisaitteke/adb-client 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.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.