1

Now that Google has broken android.permission.CHANGE_CONFIGURATION, how are developers and QA techs supposed to test locale-specific behavior?

My 4.4 device offers English, French, Spanish, and Portuguese. I've done some testing in Arabic on older devices, and I'm sure I'll run into another scenario like that sooner or later.

Community
  • 1
  • 1
Kevin Krumwiede
  • 9,868
  • 4
  • 34
  • 82

1 Answers1

2

You can allow locale changing also on newer (4.2+) devices: adb shell pm grant <your_app_package_name> android.permission.CHANGE_CONFIGURATION

I could find no documentation, but there are a couple of issues filed to Google:

Changing the system language via ActivityManagers updateConfiguration() requires the permission android.permission.CHANGE_CONFIGURATION.
Unfortunatelly, the protectionLevel of that permission has changed from 1 ("dangerous", up to Android 4.1) to 0x12 ("signature | system", in Android 4.2).

Juuso Ohtonen
  • 8,826
  • 9
  • 65
  • 98