Calling Android Settings pages programmatically during Staging

In quite a few situations we need the user to input specific data during device Staging. For instance, I have been doing a job for a customer, requiring a PIN code pre-set on the device, when it comes back from repairs. This PIN code can only be set programmatically by Device Administrator class app (or MDM agent, which usually registers as one). Given the circumstances, this was not an option.

Normally, this means that you’d have to provide instruction containing lots of “tap this” and “skip that” as well as lots of screenshots to ensure that there is no way the user will be lost. However, this approach is error prone and time consuming. And for repair loop operations this means $$$. Wouldn’t it be better to just scan a barcode? But how?

Each page of the Settings app in an Activity. Thus, we can write an intent to pop it up. StageNow (via MX) allows us to run intents. The question is, how do we find, which data to populate the intent with? Let’s find out!

(more…)

Advertisements

Harnessing Android Intents

This post is about Android Intents, and how to use them to start/stop/show/hide Android apps and services and perform some more advanced actions. Intents are the glue that binds numerous Android components together, and are very important for understanding and mastering various aspects of Android. Main goal of this guide is to understand enough about intents in order to be able to use them in ADB scripts and other tools that allow sending Intents.

(more…)