Closed
Description
It looks like we need to call hidden policy to modify the location as well?
adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1'
I saw via Appium worked but once I uninstall the settings app and install again, below command did not change the language.
adb -s emulator-5554 shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang ja --es country JP
adb -s emulator-5554 shell am broadcast -a io.appium.settings.locale -n io.appium.settings/.receivers.LocaleSettingReceiver --es lang en --es country US
When I run the app installation after relaxing hidden API policy, it worked. I'll investigate a bit further. We may need to:
- update readme to address the hidden API pocily
- see if we have a way to change locale etc without hidden API policy stuff (if exists)
The emulator version was API level 34.