Git Product home page Git Product logo

android-scripts's Introduction

devtools

Do you use the developer options on your android device? Like "show overdraw" or "show layout bounds"? Wouldn't it be handy to switch those tools on and off via command line? via devtools you can switch:

  • gfx (profile gpu rendering)
  • layout (show layout bounds)
  • overdraw
  • updates (show screen updates)
  • wifi (enable/disable wifi)
  • data (enable/disable mobile data)

on and off via command line. Works on emulators and devices. And, yes: it will control multiple devices at once.

Check the video:

IMAGE ALT TEXT HERE

install

Just checkout or download the scrips to your system. Make sure you have groovy installed, and adb-executeable in your PATH

On mac with brew just run:

brew install https://raw.githubusercontent.com/dhelleberg/android-scripts/master/androidscripts.rb

adbscreenrecord

Will execute screenrecord on your API Level 19+ device and will pull the file automatically after you finish the screenrecording.

adbscreenrecord <filename.mp4, optional>

adbwifi

Do you use adb-wifi connections? tired of figuring out the ip of your phone and typing it in?

This script tries to solve that.

use

connect your phone via USB (in best case with WiFi switched on) and run the script.

wait until it tells you to disconnect and press enter.

##sample output

$> src/adbwifi.groovy
WLAN IP 192.168.178.44
mobile ip on WLAN: 192.168.178.44
now disconnect your phone and press enter

List of devices attached
192.168.178.44:5555	unauthorized

$> adb shell
shell@hammerhead:/ $

android-scripts's People

Contributors

dhelleberg avatar chrjsorg avatar spatenotte avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.