What is OEMConfig? A guide for admins and for OEMs building one
OEMConfig is a standard way for a device manufacturer to expose its own settings to any EMM. The manufacturer ships an app that declares those settings as a managed configuration schema. The EMM reads the schema from Google Play, shows it as a form, and sends the admin's values to the device. The app then applies them through the manufacturer's privileged APIs. No EMM has to build a separate integration for each manufacturer.
Key facts
- OEMConfig is an Android Enterprise standard that lets any EMM configure manufacturer-specific device settings through an app the manufacturer publishes on Google Play.
- It is built on managed configurations. The difference is the target: the device, not an app.
- Google announced OEMConfig in 2018. Samsung's Knox Service Plugin and Zebra's OEMConfig were the first apps.
- An EMM built on the Android Management API cannot call a manufacturer's SDK, so OEMConfig is its route to manufacturer features.
- An OEMConfig app works only on its own manufacturer's hardware. A mixed fleet needs one app per manufacturer.
- Android Enterprise requires EMMs to render four levels of schema nesting. OEMConfig schemas can run to nine.
How does OEMConfig work?
- The manufacturer builds device features that go beyond the standard Android Enterprise APIs. Hardware keys, scanners and firmware controls are typical.
- It builds an OEMConfig app that can call those features, and declares each setting in a managed configuration schema.
- It publishes the app on Google Play.
- An admin adds the app in their EMM. The EMM fetches the schema and renders it.
- The admin sets values, and the EMM sends them with policy.
- On the device, the OEMConfig app reads the values and applies them.
Google announced OEMConfig in 2018. Samsung's Knox Service Plugin and Zebra's OEMConfig were the first apps. Underneath, it is managed configurations, the same mechanism any enterprise app uses to receive remote settings. The difference is the target: the device, not the app.
Why does OEMConfig matter more under AMAPI?
An EMM with its own agent, a custom DPC, could call a manufacturer's SDK directly. An EMM built on the Android Management API (AMAPI) cannot, because the agent on the device is Google's Android Device Policy. For those EMMs, OEMConfig is the route to manufacturer features.
If your fleet depends on features such as scanner settings or key remapping, the manufacturer's OEMConfig app is now on your critical path. Treat it like one. See AMAPI vs custom DPC.
How do you deploy an OEMConfig app? (for admins)
- Find the manufacturer's OEMConfig app in managed Google Play and add it to your EMM.
- Install it by policy on the matching devices. An OEMConfig app works only on its own manufacturer's hardware.
- Fill in the configuration in your EMM's form. In AMAPI terms, this is the app's
managedConfiguration. - Apply it to a test device of each model and Android version, then roll out.
Samsung's app is Knox Service Plugin, package com.samsung.android.knox.kpu. Zebra, Honeywell, Datalogic, Kyocera, Motorola, Panasonic and others publish their own. Knox Service Plugin is free. Its premium features need a Knox Platform for Enterprise Premium key, which Samsung also issues free.
What goes wrong with OEMConfig? (for admins)
- Large, deep schemas. Android Enterprise requires EMMs to support four levels of nesting in a managed configuration. OEMConfig schemas can run to nine. If your console cannot render part of a schema, you cannot set it.
- The schema moves with the app. EMMs read the schema from the current version on Google Play. Microsoft, for example, documents that Intune keeps only the latest version. After a manufacturer update, review your saved configurations.
- Defaults are not guaranteed. A default written in the schema is not always delivered to the app. Set every value that matters explicitly.
- Overlap with standard policy. When a setting exists in both your EMM's standard policy and OEMConfig, prefer the standard field. It behaves the same on every manufacturer.
- Install order. The app must be on the device before its configuration can apply. Install it during setup, so the device does not enter service half-configured.
- Silent failure. An OEMConfig app can report results back to the EMM, but not every manufacturer or console does. Verify on the device.
When should a device maker build an OEMConfig app? (for OEMs)
Build one when two things are true. Your devices have management-relevant features with no Android Enterprise API, and your customers use more than one EMM. Without OEMConfig, each EMM must integrate your SDK. Under AMAPI, they cannot.
How do you build an OEMConfig app? (for OEMs)
- Privileged. The app is preinstalled or signed so that it can reach your system APIs. That privilege is what lets it change settings a normal app cannot.
- Driven by managed configuration. Read values with
RestrictionsManagerwhen the app starts or resumes, and listen forACTION_APPLICATION_RESTRICTIONS_CHANGED. An EMM can change a configuration at any time, even when the app is not running. - Idempotent. The same configuration may arrive many times. Applying it twice must leave the device in the same state.
- Reporting. Send a result for each setting as a keyed app state. Admins then see success or failure in their console. Never put personal data in a state.
How should an OEMConfig schema be designed? (for OEMs)
The schema lives in res/xml/app_restrictions.xml and is referenced from the manifest with the android.content.APP_RESTRICTIONS meta-data entry. A minimal example:
<restrictions xmlns:android="http://schemas.android.com/apk/res/android">
<restriction
android:key="scanner"
android:title="@string/scanner_title"
android:restrictionType="bundle">
<restriction
android:key="scanner_enabled"
android:title="@string/scanner_enabled_title"
android:restrictionType="bool"
android:defaultValue="true" />
</restriction>
</restrictions>
Rules that save your customers trouble:
- Treat keys as a public API. Never rename or reuse a key. Add a new one and mark the old one as retired in its description.
- Group by feature. Use
bundlefor a group of settings andbundle_arrayfor repeated groups.bundle_arrayneeds Android 6.0 or later. - Stay shallow. Four levels of nesting is what every validated EMM must render. Go deeper only when you must.
- Do not rely on defaults. The app receives only the values an EMM set explicitly. Handle a missing key in code.
- Write for the admin. Titles and descriptions are what the EMM shows. Localize them. Keep entry values machine-readable.
- Report what a model cannot do. If a key does not apply to a device, say so in a keyed app state. Do not ignore it silently.
How should an OEM publish and test an OEMConfig app?
Publish the app on Google Play, because that is where EMMs fetch the schema. Ship an updated app alongside each new device or Android release, so new features are configurable on day one.
Test with more than one EMM. Consoles differ in how they render bundles and bundle arrays. Publish a reference for every key, since admins otherwise configure blind. For devices without Google Play, Zebra's setup guide shows one manufacturer's approach to distributing outside Play.
Does AndroidNexus support OEMConfig and Knox Service Plugin?
OEMConfig apps, including Knox Service Plugin, are configured from the AndroidNexus policy. Device makers planning an OEMConfig app can reach the team through the AndroidNexus partner program.
Frequently asked questions
What is OEMConfig?
OEMConfig is an Android Enterprise standard for manufacturer-specific device settings. The manufacturer publishes an app whose managed configuration schema lists the settings. Any EMM that supports managed configurations can display and send them.
Is OEMConfig the same as managed configurations?
It uses managed configurations, but for a different purpose. Managed configurations normally set up an app, such as a mail server address. OEMConfig uses the same mechanism to configure the device itself.
Does OEMConfig work with every EMM?
In principle, yes, if the EMM supports managed configurations. In practice, check how well your console renders large nested schemas. That is where support differs.
Is Knox Service Plugin an OEMConfig app?
Yes. It is Samsung's OEMConfig app and exposes Knox Platform for Enterprise features. The app is free, and premium features need a free Knox Platform for Enterprise Premium key.
Does OEMConfig need Google Play?
The standard route does. The manufacturer publishes the app on Google Play, and the EMM reads its schema from there. Options outside Google Play depend on the manufacturer and the EMM.
Can one OEMConfig app configure another manufacturer's devices?
No. Each app calls its own manufacturer's private APIs. A mixed fleet needs one OEMConfig app per manufacturer, each assigned only to its own devices.
How do I know an OEMConfig setting was applied?
Check your EMM for app feedback from the OEMConfig app, if the manufacturer reports it. Then confirm on a device. A configuration that was sent is not proof that it was applied.
Which manufacturers have an OEMConfig app?
Samsung publishes Knox Service Plugin, package com.samsung.android.knox.kpu. Zebra, Honeywell, Datalogic, Kyocera, Motorola, Panasonic and others publish their own. Search managed Google Play for the manufacturer's name and "OEMConfig" to find the current app.
What is the difference between OEMConfig and an OEM SDK?
An OEM SDK is a library that an EMM's own on-device agent calls directly, so each EMM has to integrate it. OEMConfig moves that work to the manufacturer. The manufacturer ships one app that calls its own APIs, and every EMM configures that app through the same managed configuration mechanism. EMMs built on the Android Management API have no agent of their own, so OEMConfig is the only one of the two they can use.
Sources
- OEMConfig supports enterprise device features, Google
- Set up managed configurations, Android Developers
- Send app feedback to EMMs, Android Developers
- What is OEMConfig?, Jason Bayton
- What are managed configurations?, Jason Bayton
- Knox licenses, Samsung Knox
- Knox Service Plugin minimum requirements, Samsung Knox
- Use and manage Android Enterprise devices with OEMConfig, Microsoft Intune
- OEMConfig setup, Zebra