Android/iOS

ANDROID

Automation

selendroid - JAVA

http://selendroid.io/

appium - nodejs

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

adb

Data Transfer

1
adb devices
2
adb ls /sdcard
3
adb push foo.zip /sdcard/Download/
Copied!

Debug

https://developer.android.com/studio/command-line/dumpsys.html#meminfo
1
adb shell dumpsys meminfo # http://i.imgur.com/DKsJ1Cb.png
2
adb shell getprop ro.build.ab_update # check if dual boot partition
Copied!

fastboot

twrp

https://miuiver.com/how-to-flash-twrp/
1
apt install fastboot
2
fastboot devices
3
fastboot flash recovery twrp.img
4
fastboot reboot # hold [Vol-Up]
Copied!

miflash unlock

Down+Power:
1
fastboot oem edl
2
fastboot oem edl-reboot
Copied!
Clear partions & /data: https://zhuanlan.zhihu.com/p/413293727 ROMs: https://xiaomirom.com/series/ Fix boot hang: https://topjohnwu.github.io/Magisk/install.html # .apk->.zip; twrp->install

IOS

Automation

see appium above

Bar/QR code to REST API

https://workflow.is/docs/taking-advantage-of-web-apis

Google Authenticator

on multiple devices: delete old config and scan new qr code at the same time
Last modified 6mo ago