Skip to content

Instantly share code, notes, and snippets.

#include <android/log.h>
#include <jni.h>
#include <binder/Binder.h>
#include <binder/Parcel.h>
#include <binder/IServiceManager.h>
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@obaidi2005
obaidi2005 / ADBShell+.bat
Created July 1, 2016 03:11 — forked from smelfungus/ADBShell+.bat
Run ADB shell command with options on all connected devices
:: Inpired by Windows version https://gist.github.com/thebagchi/df29ae862fc1c296dec2
:: Which is inspired by Linux version of the same https://gist.github.com/christopherperry/3208109
@echo off
SET ARGUMENTS=%*
if "%ARGUMENTS%" == "" (
GOTO EOF
)
@obaidi2005
obaidi2005 / ADB++.BAT
Created July 1, 2016 03:09 — forked from thebagchi/ADB++.BAT
issue command on selected device without looking up adb devices
@echo off
SET ARGUMENTS=%~1
if "%ARGUMENTS%" == "" (
GOTO EOF
)
SET "ARGUMENTS=%ARGUMENTS:""="%"
SETLOCAL ENABLEDELAYEDEXPANSION
@obaidi2005
obaidi2005 / ADB+.BAT
Created July 1, 2016 03:09 — forked from thebagchi/ADB+.BAT
script for issuing commands to multiple android devices on windows
:: Inspired by Linux version of the same https://gist.github.com/christopherperry/3208109
@echo off
SET ARGUMENTS=%~1
if "%ARGUMENTS%" == "" (
GOTO EOF
)
SET "ARGUMENTS=%ARGUMENTS:""="%"