device_set_device_language
Change the Android device's system language and locale (persistent, affects every app, survives reboot). Uses a bundled locale-change helper with reflection into ActivityManagerNative.updateConfiguration. For per-app testing without changing the whole device, prefer device_launch_app_in_language. Caveats: Samsung One UI / MIUI may re-apply their own locale after a few seconds; Android 14+ requires hidden_api_policy=1 (set automatically); MDM-managed devices may refuse the CHANGE_CONFIGURATION grant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Device serial number (UDID) | |
| script | No | Optional ISO 15924 script tag (e.g. "Hans" / "Hant" for Chinese variants) | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. "FR", "US", "JP" | |
| language | Yes | ISO 639-1 language code, e.g. "fr", "es", "en", "ja" |