Device Management
Product Updates
March Updates: Remote ADB + New CLI + Mason OS 2.9.0
With February now in the rear view mirror, we’ve got some exciting new product announcements to share as we roll into Spring!
These MAJOR updates include a new look for the Mason Controller product, a revamped CLI workflow, a new Mason OS version, and the star of the show – our new X-Ray feature.
You can start testing out these new features TODAY – check out below to learn more.
Remote ADB with X-Ray
One of the biggest challenges our customers face is supporting devices that are deployed in the field. This can be a huge resource drain that takes away from building and shipping awesome new features. In the Android world, one of the best ways to troubleshoot bugs is with Android Debug Bridge (ADB). Unfortunately, this doesn’t work when devices are already deployed because you need to physically plug into the device… until now.
Our new X-Ray feature lets you remotely execute ADB commands, such as pulling logs, copying or pushing files, installing/uninstalling apps, initiating a shell, etc.
Here’s what makes X-Ray awesome:
- You can use it remotely, meaning you don’t need to physically access the device or require a wired connection.
- You can use it in real time, allowing you to see logs or interact with the device as issues are happening.
- You can use it programmatically, so you can run commands across large groups of devices with ease.
- It’s securely enabled by default, meaning you don’t have to turn on developer options.
You can read more about X-Ray in our blog post – and make sure to keep an eye out for future releases that will let you remotely view and control any device in your fleet.
CLI Version 1.5
This new version has some significant improvements and changes to the overall workflow for how you build projects with Mason.
You no longer need to manually register each artifact (e.g. apps or media files), and you no longer have to register your project and then build it. Now, when you initiate a mason project, the .masonrc file tells the CLI where all the relevant artifacts are located. This enables the `mason register project` command to automatically register all the latest artifacts, and start a build in a single step.
Here’s a look at how the workflow changes for creating a new Mason Project:
Old Workflow
- Create Project: Create a project in the Mason Controller.
- Manually Register Each Artifact: Individually register any applications or media files you want associated with your project.
- Create YML File: Create a new config file with any OS configurations, apps, and media artifacts included in the config, and version up your config.
- Register Project: Register that YML file.
- Build Project: Build your project, including your custom Android OS defined by your YML file.
- Deploy Project: Deploy your project to a group or groups of devices
New Workflow
- Create Project: Create a project in the Mason Controller.
- Initialize Project: Initializing the project using the Mason CLI automatically creates your mason.yml file, and asks for the paths to any app or media artifacts you will want to register as part of your project.
- Configure OS: Edit the YML file that has been created for you with any OS configs, apps, and media artifacts
- Register Project: Register your project (this will automatically register any apps, media files, and configuration files), AND will automatically build your project.
- Deploy Project: Deploy your project to a group or groups of devices
Some other cool stuff!
- The new latest keyword lets you replace explicit versions with “latest”. This works in your mason.yml config with the project or app version, and in the CLI when deploying an app or project.
- Command names can be shortened as long as they don’t conflict with other commands. For example, mason register media bootanimation test-1 latest $file can be shortened to mason r m b test-1 latest $file.
Mason OS 2.9 is here!
A new version of Mason OS is available for you to test and roll out to production. In addition to support for the X-Ray feature, we’ve added some new APIs to the Mason Framework so your app can control the UX, and included some new OS configuration options.
- Mason Framework
- API for dynamically toggling navigation bar
- API for putting device to sleep
- API for global actions menu
- API for enable/disable NFC
- New Configs
- Add config in Android to override power button (setting the value to 100 let’s your app intercept the event and define what happens on a long/short press)
- config_longPressOnPowerBehavior: 100
- config_shortPressOnPowerBehavior: 100
- Add config to enable or disable X-Ray
- Add config in Android to override power button (setting the value to 100 let’s your app intercept the event and define what happens on a long/short press)
A Slick New UI
Last but not least, if you’ve logged in recently, you’ve probably noticed that things look a little different. We’ve completely revamped the UI and created some small UX changes as well to create a new and improved Mason experience.
Get Started Today
Sign up for a Mason account today if you’re interested in trying out any of these new features yourself!