Ferro's Gitbook
  • README
  • DevOps
    • Grafana_Cloud
  • OpenWrt
    • DHCP_DNS
    • GLiNet
    • boot
    • captive_portal
    • luci
    • mwan3
    • radius
    • theme
    • wireless
  • apps
    • web
  • BSD
    • Mac
  • Cloud
    • aws
    • azure
    • cf
    • gcp
    • github
    • ibm_bluemix
    • Pricing
  • container
    • docker
    • Kubernetes
    • podman
  • db
    • InfluxDB
    • loki
    • MySQL & MariaDB
    • Oracle
    • PostgreSQL
  • dev
    • AHK
    • BI
    • LBS
    • ML
    • android
    • editor
    • flutter_web
    • git
    • go
    • HTML5/BS
    • j2ee
    • js
    • js_grid
    • js_vue
    • jupyter
    • ocaml
    • powershell
    • py
    • py_GUI
    • Django
    • shell
    • snippets
    • uni
    • vba
    • wechat.zh
    • wechat_mp.zh
  • elec
    • 3D Printing
    • AC
    • MOSFET
    • battery
    • boost
    • bulk
    • metal
    • simulator
  • hw
    • GPU
    • PCI
    • arduino
    • Bluetooth
    • ent
    • Pinout
    • x86_AMD
    • x86_intel
  • linux
    • Test System
    • X
    • arch
    • fs
    • kernel
    • Memory
    • nw
    • Linux Services
    • Systemd
    • text
  • ms
    • vscode
    • windows
    • wsl
  • multimedia
    • Blender
    • audio
    • blender
    • graphics
    • home
  • nw
    • L3
    • L3_IPv6
    • SDN
    • VPN
    • dns
    • hw
    • Low Level
    • mikrotik
    • mwan
    • Openflow
    • OVS
    • pfsense
    • ppp
    • proxy
    • tsocks
    • pxe
    • Security
    • TCP
  • phone
    • Mi
    • android
  • Storage(SW)
  • vt
    • Intel GVT-g
    • PVE
    • QEMU
    • VDI
    • hyper-v
    • kube
    • libvirt
    • OpenStack
  • Web
    • IBM_MQ
    • IBM_Websphere
    • SSL
    • Apache/IBM_IHS
    • blockchain
    • caddy
    • j2ee
    • nginx
    • static_site
Powered by GitBook
On this page
  • adb
  • Wifi
  • devices
  • Data Transfer
  • Debug
  • fastboot
  • twrp
  • Apps
  • SSH Button
  • Automation
  • selendroid - JAVA
  • appium - nodejs

Was this helpful?

Edit on Git
  1. phone

android

PreviousMiNextStorage(SW)

Last updated 9 months ago

Was this helpful?

adb

adb version

Wifi

Ver
Link
Prepare
CMD

Android 11 (API level 30)+

https://developer.android.com/tools/adb#wireless-android11-command-line

MIUI: 设置前关悬浮球

adb pair IP:PORT_Dynamic && adb connect IP:PORT

Android 10 (API level 29)-

https://developer.android.com/tools/adb#wireless

USB:adb tcpip 5555 && Disconnect

adb connect IP:5555

devices

adb devices
adb -s 192.168.88.39:42745 ls /  # `-s` if more than one device/emulator 

global options:
-e                       use TCP/IP device (error if multiple TCP/IP devices available)
-s SERIAL                use device with given serial (overrides $ANDROID_SERIAL)
-t ID                    use device with given transport id

Data Transfer

adb shell ls -hs /sdcard

# Download
adb pull -a /file_on_phone # -a: preserve file timestamp and mode
adb shell ls /sdcard/DCIM/Screenshots/* | %{ adb pull -a $_} # powershell , w/ speed
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8    # powershell pipe中文乱码fix

# Delete
Get-ChildItem -Path . –File | %{ adb -s 192.168.7.126:38855 shell "ls -l /sdcard/DCIM/Screenshots/$_" } 

# Upload
adb push foo.zip /sdcard/Download/        # file
adb push . /sdcard/Download/NewFolder     # folder

Debug

https://developer.android.com/studio/command-line/dumpsys.html#meminfo

adb shell dumpsys meminfo # http://i.imgur.com/DKsJ1Cb.png
adb shell getprop ro.build.ab_update # check if dual boot partition

fastboot

twrp

https://miuiver.com/how-to-flash-twrp/

apt install fastboot
fastboot devices
fastboot flash recovery twrp.img
fastboot reboot # hold [Vol-Up]

Apps

SSH Button

Features
key
Lack
Lang
Link

WOL

-

?

ReactNative

https://github.com/BootBoi/android-app

-

custom

output

-

https://play.google.com/store/apps/details?id=com.pd7l.sshbutton

.json

app

?

JAVA

https://github.com/Skarafaz/mercury

Automation

selendroid - JAVA

http://selendroid.io/

appium - nodejs

http://appium.io/ https://github.com/appium/sample-code/tree/master/sample-code/examples

adb
Wifi
devices
Data Transfer
Debug
fastboot
twrp
Apps
SSH Button
Automation
selendroid - JAVA
appium - nodejs