在Android 6.0更换设备​​的语言(Android版M) [英] Change device language on Android 6.0 (Android M)

查看:1751
本文介绍了在Android 6.0更换设备​​的语言(Android版M)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有应用程序通过ADB命令来更改Android设备语言(区域)。这就要求给予该应用的CHANGE_CONFIGURATION许可语言可以改变了。

There are applications to change Android device language (locale) via an ADB command. This has required granting the CHANGE_CONFIGURATION permission for the app before language can be changed.

在Android 6.0(API级别23,6的Nexus设备),然而,授予所需的权限不再允许,因为该命令亚行外壳下午补助net.sanapeli.adbchangelanguage android.permission.CHANGE_CONFIGURATION从亚行更改语言应用(包名的作为一个例子)的产量

On Android 6.0 (API level 23, Nexus 6 device), however, granting the required permission is no longer allowed, since the command adb shell pm grant net.sanapeli.adbchangelanguage android.permission.CHANGE_CONFIGURATION (package name from ADB Change Language app as an example) yields

不允许操作:java.lang.SecurityException异常:权限android.permission.CHANGE_CONFIGURATION不是一个多变的权限类型

Operation not allowed: java.lang.SecurityException: Permission android.permission.CHANGE_CONFIGURATION is not a changeable permission type

您如何更改语言/区域设置在Android OS 6.0的版本没有生根设备的?可这与助手应用程序,或直接ADB命令,或者通过推出一些意向性VAI亚行办?

How can you change the language/locale on Android OS version 6.0 without rooting the device? Can this be done with a helper app, or a direct ADB command, or by launching some intent vai ADB?

从2010年相关问题:变化的Andr​​oid编程语言

Related question from 2010: Change language programatically in Android

推荐答案

该SecurityException异常不再是Android操作系统6.0(棉花糖)版的公众形象上存在。这被证实了的Nexus 6和Nexus 9设备。结案。

The SecurityException no longer exists on the public image of Android OS 6.0 (Marshmallow) version. This was confirmed on Nexus 6 and Nexus 9 devices. Case closed.

这篇关于在Android 6.0更换设备​​的语言(Android版M)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆