luckpizza / Captain-ADB

Providing simple web API and view for Android Debug Bridge (adb). Free your imagination, use it as the way you want.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Captain-ADB

Providing simple web API and view for Android Debug Bridge (adb). Free your imagination, use it as the way you want.

##Requirement:

  • Android SDK is configured as environment variable in your .bash_profile or .bashrc
    • ANDROID_HOME=[YourAndroidSdkDir]
    • export PATH=$PATH:$ANDROID_HOME/platform-tools
  • Ruby ( >= 1.9.3 strongly suggest using RVM )
  • Bundler - manages Ruby app's dependencies (gem install bundler)

##Setup:

  1. Clone this project, and go to project directory
  2. Run bundle install
  3. Run rackup (or bundle exec rackup)
  4. Open a browser, type in this URL http://localhost:9292/

##API: ###Schema All API is accessed from the http://yourdomain.com/api/, and all data is sent and received as JSON. ###REST APIs POST adb/action/restart
GET devices
GET devices/:device_sn/packages
GET devices/:device_sn/packages/:package_name
DELETE devices/:device_sn/packages/:package_name
DELETE devices/:device_sn/packages/:package_name/data
POST devices/:device_sn/screenshots
PUT devices/:device_sn

{
    "language": "en",
    "country": "us"
}

##License Copyright (c) 2016 Jing Li. See the LICENSE file for license rights and limitations (MIT).

##Thanks: Special thanks to my frontend specialist - Miguel twitter:@lordcracker github:@ellite

##Attribution: Icon made by Freepik from Flaticon is licensed under CC BY 3.0

Icon made by Icon Works from Flaticon is licensed under CC BY 3.0

Icon made by Freepik from Flaticon is licensed under CC BY 3.0

About

Providing simple web API and view for Android Debug Bridge (adb). Free your imagination, use it as the way you want.

License:MIT License


Languages

Language:Ruby 51.8%Language:CSS 27.2%Language:HTML 21.0%