Captain-ADB

General

Category
Free
Tag
ADB
License
N/A
Registered
Aug 17, 2015
Favorites
2
Link
https://github.com/thyrlian/Captain-ADB
See also
fb-adb
adbons
ADB enhanced
ADB for ARM
adbmaster

Additional

Language
Ruby
Version
N/A
Created
May 24, 2014
Updated
Jan 17, 2018 (Retired)
Owner
Jing Li (thyrlian)
Contributors
Jing Li (thyrlian)
Falko Richter (falkorichter)
2
Activity
Badge
Generate
Download
Source code

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