The method of changing locale changes in Android O.
+ if (Build.VERSION.SDK_INT >= 26) {
+ // getConfiguration moved from ActivityManagerNative to ActivityManagerProxy
+ activityManagerNativeClass = Class.forName(amn.getClass().getName());
+ }
- https://github.com/KazuCocoa/DroidTestHelper/issues/22
- https://github.com/KazuCocoa/DroidTestHelper/commit/eb8346c94a3f9edd87c0ace8e39d886cc92d72d5
Appium has already supported the change.
https://github.com/appium/io.appium.settings/blob/dc2cb22e1a2cb565fa49f0c56d00c604867554b5/app/src/main/java/io/appium/settings/handlers/LocaleSettingHandler.java#L57