Swiss-army knife for Android testing and development ⛺
Swiss-army knife for Android testing and development ⛺
ADB-Enhanced is a Swiss army knife for Android testing and development.
A command-line interface to trigger various scenarios like screen rotation, battery saver mode, data saver mode, doze mode, and permission grant/revocation. It's a wrapper around adb and not a replacement.
sudo pip3 install adb-enhanced
brew install adb-enhanced
sudo pip install adb-enhanced works only for Python 3. Python 2 is no longer supported.adbe might not be configured correctly in the path.sudo pip3 install infi.docopt-completion && docopt-completion $(which adbe) after installing adb-enhanced.Turn doze mode on
adbe doze on
Turn mobile-data off
adbe mobile-data off
Turn on battery saver
adbe battery saver on
Don't keep activities in the background
adbe dont-keep-activities on
Take a screenshot
adbe screenshot ~/Downloads/screenshot1.png
Take a video
adbe screenrecord video.mp4 # Press ^C when finished
Turn Wireless Debug mode on
adbe enable wireless debugging
Switch between gesture and button navigation (Android 10 and above)
$ adbe navigation
threebutton
$ adbe navigation gestural
"Navigation mode" state changed from "threebutton" -> "gestural"Grant storage-related runtime permissions
adbe permissions grant com.example storage
Revoke storage-related runtime permissions
adbe permissions revoke com.example storage
Start an app
adbe start com.example
Kill an app
adbe force-stop com.example
Clear app data - equivalent of uninstall and reinstall
adbe clear-data com.example
ls/cat/rm any file without worrying about adding "run-as" or "su root"
adbe ls /data/data/com.example/databases # Works as long as com.example is a debuggable package or shell has the root permission or directory has been made publicly accessible
Detailed device info including model name, Android API version etc, device serial
$ adbe devices
Unlock Device "dcc54112" and give USB debugging access to this PC/Laptop by unlocking and reconnecting the device. More info about this device: "unauthorized usb:339869696X transport_id:17"
Serial ID: dcc54111
Manufacturer: OnePlus
Model: ONEPLUS A5000 (OnePlus 5T)
Release: 8.1.0
SDK version: 27
CPU: arm64-v8a
Serial ID: emulator-5554
Manufacturer: unknown
Model: Android SDK built for x86
Release: 4.4.2
SDK version: 19
CPU: x86…App backup to a tar file unlike the Android-specific .ab format
$ adbe app backup com.google.android.youtube backup.tar
you might have to confirm the backup manually on your device's screen, enter "00" as password...
Successfully backed up data of app com.google.android.youtube to backup.tar……make lint
make testA new build can be released using release/release.py script.
Build a test release via make release_debug.
Build a production release via make release_production
make documentationNote that this happens automatically during make release_production.
You will have to do brew install pandoc if you are missing pandoc.
Note: The inspiration for this project came from android-scripts.
No open issues yet, or sync has not completed.