i.name = "Jing Li"
- speak 🇨🇳 🇺🇸 🇩🇪
- live in Berlin
- come from Sichuan - hometown of 🐼, is renowned for its 🌶️🌶️🌶️ cuisine
- play 🏀
- Top GitHub developer 🥇
- Top 20 Java dev in Berlin
- Top 50 Docker dev worldwide
Providing simple web API and view for Android Debug Bridge (adb). Free your imagination, use it as the way you want.
License: MIT License
i.name = "Jing Li"
This repo is missing a license. Without a license, all code is copyright the author and may not be used by anyone else.
Please use something like http://choosealicense.com/ to decide what license to use. I recommend MIT or GPL.
http://developer.android.com/tools/help/shell.html#screenrecord
adb shell screenrecord /sdcard/demo.mp4
adb pull /sdcard/demo.mp4
def cpdir(remote_dir, local_dir)
remote_dir = File.join(remote_dir, "")
local_dir = File.join(local_dir, "")
files = `adb shell ls #{remote_dir}`.split("\r\n")
files.each do |f|
`adb pull #{remote_dir}#{f} #{local_dir}/#{f};`
end
end
Random Crap
==================================================
Default 5xx
choose a device -> then routing becomes /device/xxx
session value use selected device
(but how to handle error when device is removed/unplugged?)
reset button for chose package
adb shell screenrecord /sdcard/demo.mp4
adb pull /sdcard/demo.mp4
adb -s 192.168.56.102:5555 install app.apk
http://stackoverflow.com/questions/7789826/adb-shell-input-events
https://github.com/senzhk/ADBKeyBoard
usage: input ...
input text
input keyevent
input [touchscreen|touchpad|touchnavigation] tap
input [touchscreen|touchpad|touchnavigation] swipe [duration(ms)]
input trackball press
input trackball roll
Account management
http://www.slideshare.net/dpreussler/abgeschottete-realitt-mobile-testing-days-2014-berlin
disable select button if no radio (device) is checked
http://stackoverflow.com/questions/3196136/disable-browse-button-if-the-radio-button-isnt-selected
adb shell dumpsys meminfo <package.name>
dumpsys meminfo
dumpsys cpuinfo
dumpsys account
dumpsys activity
dumpsys window
dumpsys wifi
http://engineering.meetme.com/2014/04/android-debug-bridge-adb-command-scripting/
main.haml
Knowledge Base
-s - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
adb devices -l # human readable form
adb shell 'pm list packages -f' | sed -e 's/.=//' | grep 'ebay'
cat /data/system/packages.list | sed -e 's/.///' | grep 'ebay'
adb shell screencap -p | ruby -EBINARY -pe '$_.gsub!(/\r\n/, "\n")' > ~/Desktop/screenshot.png
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Desktop/screenshot.png
adb shell screenrecord /sdcard/movie.mp4
(Press Ctrl-C to stop)
adb pull /sdcard/movie.mp4
http://developer.android.com/tools/help/adb.html#screenrecord
http://stackoverflow.com/questions/5382212/capture-video-of-androids-screen
ddmlib: Library providing APIs to talk to Android devices
http://mvnrepository.com/artifact/com.android.tools.ddms/ddmlib/23.1.0
adb backup app
adb wifi
adb uninstall com.xxx.abc
1> x.log
2> x.log
echo $?
adb -s BH902VWU16 shell 'which sh; echo $?'
/system/bin/sh: which: not found
127
adb shell sqlite3
/data/data/com.android.providers.telephony/databases/telephony.db
"update carriers set proxy=''xxx', port='xx' where id=xxx "
Unit Tests:
list_devices
List of devices attached
BH902VWU16 device
192.168.56.101:5555 device
Style:
.clickable {
cursor: pointer;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.