Captain-ADB
thyrlian
40
Visit GitHub RepoADB

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 -p <PORT> -o 0.0.0.0 (or bundle exec rackup -p <PORT> -o 0.0.0.0)
  4. Open a browser, type in this URL http://localhost:PORT

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"
}

POST devices/:device_sn/deeplinks

{
    "packageName": "com.example.android",
    "deepLink": "https://www.android.com/example"
}

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

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT