Skip to content

Android application to change locale in android device programmatically.

Notifications You must be signed in to change notification settings

jordansilva/Android-ChangeLocaleExample

Repository files navigation

Android-ChangeLocaleExample

Android application to change locale in android device.

This is a very simple sample application showing how to change device's language by programmatically.

Don't work in Android 4.2+ because Google has changed protection_level of CHANGE_CONFIGURATION.

The protection level of CHANGE_CONFIGURATION (used to change language) permission has been changed to "system|signature|development" (v4.2) from "dangerous" (v4.1 and below).

Workaround

  • Root devices;
  • Application signed by same key of ROM;
  • Application native (inside ROM package);
  • Using adb to give access (step-by-step below);

Giving Access to CHANGE_CONFIGURATION with ADB (Android v4.2+):

 adb shell
 // pm grant <package name> android.permission.CHANGE_CONFIGURATION
 pm grant com.jordan.location.app android.permission.CHANGE_CONFIGURATION

About

Android application to change locale in android device programmatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages