Category: ADB

Programmatically close recent apps

It seems and is the most obvious choice to close apps running in background in order to give a device a small boost. Android’s recents screen is designed to allow users to quickly stop...

Dumpsys: Battery mocking with ADB shell

In some cases a specific conditions in relation to device’s battery state, level or charging method are required for either development or testing. It seems relatively easy to charge or discharge a device. However,...

Backup and restore Android’s settings quickly

Few posts ago (Programmatically change android settings) I mentioned a clever way of changing Android’s setting from a command line with the use of one of the system’s binary. This allowed for manipulation of...

0

Query information from Android device with ‘dumpsys’

There a simple tool called Dumpsys, that allows query various services in order to find some useful data. It lists all the stats  & information about particular selected component in a simple text format. Here is the...

0

Programmatically change android settings

Setting up the device for each test can be an enormous task, with countless possibilities of devices’ states; it’s easy to make an error resulting in a false negative outcome. Is there a simpler method other...

0

Track crashes and ANRs with Activity Manager

Crash and/or ANR (Application Not Responding) is one of the most obvious signs that there is something wrong with the App. In most cases, they present themselves with a nice pop-up, but sometimes those...