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:
- Clone this project, and go to project directory
- Run
bundle install
- Run
rackup
(orbundle exec rackup
) - 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