moto360怎么在语言中选择中文呢?相信不少用户都会有这个想法,之前小编为大家带来了关于刷去中文包的方法,下面则是帮助亲们在语言选择列表中添加上中文噢,下面,是详细内容介绍!
原理很简单。添加对语言的支持即可。
首先要想办法把你的moto360 解锁并ROOT了。才能修改系统文件。
限制语言的软件为\system\priv-app\ClockworkSetup.apk。此软件定义了包括手机设置、开机初始配置等等。
首先deodex ClockworkSetup.apk,将odex合并进软件,这样才能反编译dex。
而开机语言位于如下:
\smali\com\google\android\clockwork\setup\SupportedLocales.smali
此文件完整的method如下:
.method static constructor <clinit>()V
.locals 5
.prologue
.line 9
const/16 v0, 0xd
new-array v0, v0, [Ljava/util/Locale;
const/4 v1, 0x0
new-instance v2, Ljava/util/Locale;
const-string v3, "de"
const-string v4, "DE"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x1
new-instance v2, Ljava/util/Locale;
const-string v3, "en"
const-string v4, "US"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Ljava/util/Locale;
const-string v3, "en"
const-string v4, "GB"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x3
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "ES"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x4
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "US"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "419"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x6
new-instance v2, Ljava/util/Locale;
const-string v3, "fr"
const-string v4, "FR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x7
new-instance v2, Ljava/util/Locale;
const-string v3, "fr"
const-string v4, "CA"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x8
new-instance v2, Ljava/util/Locale;
const-string v3, "it"
const-string v4, "IT"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x9
new-instance v2, Ljava/util/Locale;
const-string v3, "ja"
const-string v4, "JP"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xa
new-instance v2, Ljava/util/Locale;
const-string v3, "ko"
const-string v4, "KR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xb
new-instance v2, Ljava/util/Locale;
const-string v3, "pt"
const-string v4, "BR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xc
new-instance v2, Ljava/util/Locale;
const-string v3, "ru"
const-string v4, "RU"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
sput-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
.line 25
sget-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
array-length v0, v0
sput v0, Lcom/google/android/clockwork/setup/SupportedLocales;->COUNT:I
return-void
.end method
复制代码
正式修改:
1,
.line 9下的 const/16 v0, 0xd 定义了数组的长度,也就是所添加语言的数目。
这个是用10进制表示的,d就是16进制的13。也就是说,默认有13种语言。接下来如果要添加简体中文和繁体中文,就将d改成f(13+2=15,就是16进制的f)。
2,搜索:
sput-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
复制代码
在上面添加:
const/16 v1, 0xd
new-instance v2, Ljava/util/Locale;
const-string v3, "zh"
const-string v4, "CN"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xe
new-instance v2, Ljava/util/Locale;
const-string v3, "zh"
const-string v4, "TW"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
复制代码
注意换行和空格。保存后回编译。将反编译好的classes.dex替换原版ClockworkSetup.apk中的同名文件,压缩为默认即可。
然后用蓝牙ADB调试导入系统,替换原文件,删掉.odex文件。重置手表后你就可以欣喜的在语言列表中找到中文(中国)和中文(繁体)了。
以上,就是小编要为友友们带来和分享的相关内容,来自用户的心得经验哦!